mirror of https://github.com/lukechilds/rollup.git
4 changed files with 26 additions and 5 deletions
@ -0,0 +1,9 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'does not move default export statement above earlier statements', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports.bar, 42 ); |
||||
|
}, |
||||
|
// solo: true
|
||||
|
}; |
@ -0,0 +1,10 @@ |
|||||
|
var Foo = function () { |
||||
|
this.bar = bar(); |
||||
|
} |
||||
|
|
||||
|
export default Foo; |
||||
|
Foo = 'something else'; |
||||
|
|
||||
|
function bar() { |
||||
|
return 42; |
||||
|
} |
@ -0,0 +1,3 @@ |
|||||
|
import Foo from './Foo'; |
||||
|
|
||||
|
export default new Foo(); |
Loading…
Reference in new issue