mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
4 changed files with 32 additions and 11 deletions
@ -0,0 +1,12 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'renaming destructured object properties should request the correct property (#527)', |
|||
|
|||
// we must transpile the object destructuring to test it
|
|||
babel: true, |
|||
|
|||
exports: function ( exports ) { |
|||
assert.equal( exports.env, process.env ); |
|||
} |
|||
}; |
@ -0,0 +1,3 @@ |
|||
import { getEnv } from './module.js'; |
|||
|
|||
export var env = getEnv(); |
@ -0,0 +1,5 @@ |
|||
const { env } = process; |
|||
|
|||
export function getEnv() { |
|||
return env; |
|||
} |
Loading…
Reference in new issue