mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
committed by
GitHub
13 changed files with 37 additions and 18 deletions
@ -1,3 +1,7 @@ |
|||
/* this is an intro */ |
|||
console.log( 'hello world' ); |
|||
|
|||
var main = 42; |
|||
|
|||
export default main; |
|||
/* this is an outro */ |
|||
|
@ -1,8 +1,12 @@ |
|||
(function () { |
|||
var foo = (function () { |
|||
'use strict'; |
|||
|
|||
/* this is an intro */ |
|||
console.log( 'hello world' ); |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
/* this is an outro */ |
|||
|
|||
}()); |
|||
|
@ -1,11 +1,15 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory() : |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
(factory()); |
|||
(global.foo = factory()); |
|||
}(this, (function () { 'use strict'; |
|||
|
|||
/* this is an intro */ |
|||
console.log( 'hello world' ); |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
/* this is an outro */ |
|||
|
|||
}))); |
|||
}))); |
|||
|
@ -1 +1,3 @@ |
|||
console.log( 'hello world' ); |
|||
|
|||
export default 42; |
|||
|
Loading…
Reference in new issue