mirror of https://github.com/lukechilds/rollup.git
Rich Harris
10 years ago
8 changed files with 35 additions and 1 deletions
@ -0,0 +1,6 @@ |
|||
module.exports = { |
|||
description: 'prefixes global names with `global.` when creating UMD bundle (#57)', |
|||
options: { |
|||
external: [ 'factory' ] |
|||
} |
|||
}; |
@ -0,0 +1,5 @@ |
|||
define(['factory'], function (factory) { 'use strict'; |
|||
|
|||
factory( null ); |
|||
|
|||
}); |
@ -0,0 +1,6 @@ |
|||
'use strict'; |
|||
|
|||
var factory = require('factory'); |
|||
factory = 'default' in factory ? factory['default'] : factory; |
|||
|
|||
factory( null ); |
@ -0,0 +1 @@ |
|||
factory( null ); |
@ -0,0 +1,5 @@ |
|||
(function (factory) { 'use strict'; |
|||
|
|||
factory( null ); |
|||
|
|||
})(factory); |
@ -0,0 +1,9 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('factory')) : |
|||
typeof define === 'function' && define.amd ? define(['factory'], factory) : |
|||
factory(global.factory); |
|||
}(this, function (factory) { 'use strict'; |
|||
|
|||
factory( null ); |
|||
|
|||
})); |
@ -0,0 +1,2 @@ |
|||
import factory from 'factory'; |
|||
factory( null ); |
Loading…
Reference in new issue