mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
10 years ago
7 changed files with 48 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
module.exports = { |
|||
description: 'multiple named exports', |
|||
options: { |
|||
moduleName: 'myBundle' |
|||
} |
|||
}; |
@ -0,0 +1,9 @@ |
|||
define(['exports'], function (exports) { 'use strict'; |
|||
|
|||
var foo = 1; |
|||
var bar = 2; |
|||
|
|||
exports.foo = foo; |
|||
exports.bar = bar; |
|||
|
|||
}); |
@ -0,0 +1,7 @@ |
|||
'use strict'; |
|||
|
|||
var foo = 1; |
|||
var bar = 2; |
|||
|
|||
exports.foo = foo; |
|||
exports.bar = bar; |
@ -0,0 +1,5 @@ |
|||
var foo = 1; |
|||
var bar = 2; |
|||
|
|||
export { foo }; |
|||
export { bar }; |
@ -0,0 +1,6 @@ |
|||
(function (exports) { 'use strict'; |
|||
|
|||
var foo = 1; |
|||
var bar = 2; |
|||
|
|||
})((this.myBundle = {})); |
@ -0,0 +1,13 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
|||
typeof define === 'function' && define.amd ? define(['exports'], factory) : |
|||
factory((global.myBundle = {})); |
|||
}(this, function (exports) { 'use strict'; |
|||
|
|||
var foo = 1; |
|||
var bar = 2; |
|||
|
|||
exports.foo = foo; |
|||
exports.bar = bar; |
|||
|
|||
})); |
@ -0,0 +1,2 @@ |
|||
export var foo = 1; |
|||
export var bar = 2; |
Loading…
Reference in new issue