mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
9 changed files with 66 additions and 1 deletions
@ -0,0 +1,6 @@ |
|||
module.exports = { |
|||
description: 'includes top-level throw statements', |
|||
options: { |
|||
moduleName: 'myBundle' |
|||
} |
|||
}; |
@ -0,0 +1,11 @@ |
|||
define(function () { 'use strict'; |
|||
|
|||
if ( !ok ) { |
|||
throw new Error( 'this will be included' ); |
|||
} |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
}); |
@ -0,0 +1,9 @@ |
|||
'use strict'; |
|||
|
|||
if ( !ok ) { |
|||
throw new Error( 'this will be included' ); |
|||
} |
|||
|
|||
var main = 42; |
|||
|
|||
module.exports = main; |
@ -0,0 +1,7 @@ |
|||
if ( !ok ) { |
|||
throw new Error( 'this will be included' ); |
|||
} |
|||
|
|||
var main = 42; |
|||
|
|||
export default main; |
@ -0,0 +1,11 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
|
|||
if ( !ok ) { |
|||
throw new Error( 'this will be included' ); |
|||
} |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
@ -0,0 +1,15 @@ |
|||
(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'; |
|||
|
|||
if ( !ok ) { |
|||
throw new Error( 'this will be included' ); |
|||
} |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})); |
@ -0,0 +1,5 @@ |
|||
if ( !ok ) { |
|||
throw new Error( 'this will be included' ); |
|||
} |
|||
|
|||
export default 42; |
Loading…
Reference in new issue