mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
8 changed files with 51 additions and 1 deletions
@ -0,0 +1,6 @@ |
|||
module.exports = { |
|||
description: 'excludes non-top-level throw statements', |
|||
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,9 @@ |
|||
function foo ( ok ) { |
|||
if ( !ok ) { |
|||
throw new Error( 'this will be ignored' ); |
|||
} |
|||
} |
|||
|
|||
foo(); |
|||
|
|||
export default 42; |
Loading…
Reference in new issue