mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
committed by
GitHub
13 changed files with 69 additions and 40 deletions
@ -1,12 +1,15 @@ |
|||
var foo = (function () { |
|||
var foo = (function (a) { |
|||
'use strict'; |
|||
|
|||
/* this is an intro */ |
|||
console.log( 'hello world' ); |
|||
var a__default = 'default' in a ? a['default'] : a; |
|||
|
|||
console.log( a__default ); |
|||
console.log( a.b ); |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
/* this is an outro */ |
|||
|
|||
}()); |
|||
}(a)); |
|||
|
@ -1,3 +1,6 @@ |
|||
console.log( 'hello world' ); |
|||
import a, { b } from 'external' |
|||
|
|||
console.log( a ); |
|||
console.log( b ); |
|||
|
|||
export default 42; |
|||
|
Loading…
Reference in new issue