mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
8 changed files with 76 additions and 5 deletions
@ -1,5 +1,18 @@ |
|||
'use strict'; |
|||
|
|||
function foo () { |
|||
var Object = { |
|||
keys: function () { |
|||
console.log( 'side-effect' ); |
|||
} |
|||
}; |
|||
|
|||
var obj = { foo: 1, bar: 2 }; |
|||
var keys = Object.keys( obj ); |
|||
} |
|||
|
|||
foo(); |
|||
|
|||
var main = 42; |
|||
|
|||
module.exports = main; |
|||
|
@ -1,3 +1,16 @@ |
|||
function foo () { |
|||
var Object = { |
|||
keys: function () { |
|||
console.log( 'side-effect' ); |
|||
} |
|||
}; |
|||
|
|||
var obj = { foo: 1, bar: 2 }; |
|||
var keys = Object.keys( obj ); |
|||
} |
|||
|
|||
foo(); |
|||
|
|||
var main = 42; |
|||
|
|||
export default main; |
|||
|
Loading…
Reference in new issue