mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
10 years ago
6 changed files with 38 additions and 12 deletions
@ -0,0 +1,9 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'avoids SyntaxError with default token (#33)', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports.foo, 42 ); |
||||
|
assert.equal( exports.bar, 42 ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,3 @@ |
|||||
|
import { baz } from './baz'; |
||||
|
|
||||
|
export default baz; |
@ -0,0 +1,5 @@ |
|||||
|
function Baz () {} |
||||
|
|
||||
|
export var baz = 42; |
||||
|
|
||||
|
export default Baz( baz ); |
@ -0,0 +1,3 @@ |
|||||
|
import { baz } from './baz'; |
||||
|
|
||||
|
export default baz; |
@ -0,0 +1,7 @@ |
|||||
|
import foo from './foo'; |
||||
|
import bar from './bar'; |
||||
|
|
||||
|
export { |
||||
|
foo, |
||||
|
bar |
||||
|
}; |
Loading…
Reference in new issue