mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
8 changed files with 67 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||
|
module.exports = { |
||||
|
description: 'correctly handles multiple export * declarations (#1252)', |
||||
|
options: { |
||||
|
external: [ 'foo', 'bar', 'baz' ], |
||||
|
globals: { foo: 'foo', bar: 'bar', baz: 'baz' }, |
||||
|
moduleName: 'myBundle' |
||||
|
} |
||||
|
}; |
@ -0,0 +1,11 @@ |
|||||
|
define(['exports', 'foo', 'bar', 'baz'], function (exports, foo, bar, baz) { 'use strict'; |
||||
|
|
||||
|
|
||||
|
|
||||
|
Object.keys(foo).forEach(function (key) { exports[key] = foo[key]; }); |
||||
|
Object.keys(bar).forEach(function (key) { exports[key] = bar[key]; }); |
||||
|
Object.keys(baz).forEach(function (key) { exports[key] = baz[key]; }); |
||||
|
|
||||
|
Object.defineProperty(exports, '__esModule', { value: true }); |
||||
|
|
||||
|
}); |
@ -0,0 +1,13 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
Object.defineProperty(exports, '__esModule', { value: true }); |
||||
|
|
||||
|
var foo = require('foo'); |
||||
|
var bar = require('bar'); |
||||
|
var baz = require('baz'); |
||||
|
|
||||
|
|
||||
|
|
||||
|
Object.keys(foo).forEach(function (key) { exports[key] = foo[key]; }); |
||||
|
Object.keys(bar).forEach(function (key) { exports[key] = bar[key]; }); |
||||
|
Object.keys(baz).forEach(function (key) { exports[key] = baz[key]; }); |
@ -0,0 +1,3 @@ |
|||||
|
export * from 'foo'; |
||||
|
export * from 'bar'; |
||||
|
export * from 'baz'; |
@ -0,0 +1,10 @@ |
|||||
|
(function (exports,foo,bar,baz) { |
||||
|
'use strict'; |
||||
|
|
||||
|
|
||||
|
|
||||
|
Object.keys(foo).forEach(function (key) { exports[key] = foo[key]; }); |
||||
|
Object.keys(bar).forEach(function (key) { exports[key] = bar[key]; }); |
||||
|
Object.keys(baz).forEach(function (key) { exports[key] = baz[key]; }); |
||||
|
|
||||
|
}((this.myBundle = this.myBundle || {}),foo,bar,baz)); |
@ -0,0 +1,13 @@ |
|||||
|
(function (global, factory) { |
||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('foo'), require('bar'), require('baz')) : |
||||
|
typeof define === 'function' && define.amd ? define(['exports', 'foo', 'bar', 'baz'], factory) : |
||||
|
(factory((global.myBundle = global.myBundle || {}),global.foo,global.bar,global.baz)); |
||||
|
}(this, (function (exports,foo,bar,baz) { 'use strict'; |
||||
|
|
||||
|
Object.keys(foo).forEach(function (key) { exports[key] = foo[key]; }); |
||||
|
Object.keys(bar).forEach(function (key) { exports[key] = bar[key]; }); |
||||
|
Object.keys(baz).forEach(function (key) { exports[key] = baz[key]; }); |
||||
|
|
||||
|
Object.defineProperty(exports, '__esModule', { value: true }); |
||||
|
|
||||
|
}))); |
@ -0,0 +1,3 @@ |
|||||
|
export * from 'foo'; |
||||
|
export * from 'bar'; |
||||
|
export * from 'baz'; |
Loading…
Reference in new issue