mirror of https://github.com/lukechilds/rollup.git
Oskar Segersvärd
10 years ago
7 changed files with 17 additions and 8 deletions
@ -1,6 +1,6 @@ |
|||
module.exports = { |
|||
description: 'prefixes global names with `global.` when creating UMD bundle (#57)', |
|||
options: { |
|||
external: [ 'factory', 'baz', 'alphabet' ] |
|||
external: [ 'factory', 'baz', 'shipping-port', 'alphabet' ] |
|||
} |
|||
}; |
|||
|
@ -1,8 +1,10 @@ |
|||
import factory from 'factory'; |
|||
import { bar, foo } from 'baz'; |
|||
import * as containers from 'shipping-port'; |
|||
import alphabet, { a } from 'alphabet'; |
|||
|
|||
factory( null ); |
|||
foo( bar ); |
|||
containers.forEach( console.log, console ); |
|||
console.log( a ); |
|||
console.log( alphabet.length ); |
|||
|
@ -1,10 +1,11 @@ |
|||
(function (factory,baz,alphabet) { 'use strict'; |
|||
(function (factory,baz,containers,alphabet) { 'use strict'; |
|||
|
|||
var alphabet__default = 'default' in alphabet ? alphabet['default'] : alphabet; |
|||
|
|||
factory( null ); |
|||
baz.foo( baz.bar ); |
|||
containers.forEach( console.log, console ); |
|||
console.log( alphabet.a ); |
|||
console.log( alphabet__default.length ); |
|||
|
|||
})(factory,baz,alphabet); |
|||
})(factory,baz,containers,alphabet); |
|||
|
@ -1,8 +1,10 @@ |
|||
import factory from 'factory'; |
|||
import { foo, bar } from 'baz'; |
|||
import * as containers from 'shipping-port'; |
|||
import alphabet, { a, b } from 'alphabet'; |
|||
|
|||
factory( null ); |
|||
foo( bar ); |
|||
containers.forEach( console.log, console ); |
|||
console.log( a ); |
|||
console.log( alphabet.length ); |
|||
|
Loading…
Reference in new issue