mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
7 changed files with 48 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||
module.exports = { |
|||
solo: true, |
|||
description: 'disregards side-effects that are contained within a function', |
|||
options: { |
|||
moduleName: 'myBundle' |
|||
} |
|||
}; |
@ -0,0 +1,7 @@ |
|||
define(function () { 'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
}); |
@ -0,0 +1,5 @@ |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
module.exports = main; |
@ -0,0 +1,3 @@ |
|||
var main = 42; |
|||
|
|||
export default main; |
@ -0,0 +1,7 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
@ -0,0 +1,11 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
global.myBundle = factory(); |
|||
}(this, function () { 'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})); |
@ -0,0 +1,8 @@ |
|||
function foo () { |
|||
var a, b, c; |
|||
b = 1; |
|||
} |
|||
|
|||
foo(); |
|||
|
|||
export default 42; |
Loading…
Reference in new issue