mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
4 changed files with 25 additions and 1 deletions
@ -0,0 +1,9 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'exported values do not mysteriously disappear (#484)', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports.exportedAnswer, 42 ); |
||||
|
assert.equal( exports.foo(), 42 ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,2 @@ |
|||||
|
var answer = 42; |
||||
|
export { answer }; |
@ -0,0 +1,8 @@ |
|||||
|
import { answer as importedAnswer } from './answer.js'; |
||||
|
export { answer as exportedAnswer } from './answer.js'; |
||||
|
|
||||
|
export function foo () { |
||||
|
var value; |
||||
|
value = importedAnswer; |
||||
|
return value; |
||||
|
} |
Loading…
Reference in new issue