mirror of https://github.com/lukechilds/rollup.git
12 changed files with 108 additions and 2 deletions
@ -0,0 +1,10 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'exports noConflict method for default umd when requested', |
||||
|
options: { |
||||
|
noConflict: true, |
||||
|
moduleName: 'FooBar' |
||||
|
} |
||||
|
}; |
||||
|
|
@ -0,0 +1,15 @@ |
|||||
|
define(['exports'], function (exports) { 'use strict'; |
||||
|
|
||||
|
function doThings() { |
||||
|
console.log( 'doing things...' ); |
||||
|
} |
||||
|
|
||||
|
const number = 42; |
||||
|
|
||||
|
var setting = 'no'; |
||||
|
|
||||
|
exports.doThings = doThings; |
||||
|
exports.number = number; |
||||
|
exports.setting = setting; |
||||
|
|
||||
|
}); |
@ -0,0 +1,13 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
function doThings() { |
||||
|
console.log( 'doing things...' ); |
||||
|
} |
||||
|
|
||||
|
const number = 42; |
||||
|
|
||||
|
var setting = 'no'; |
||||
|
|
||||
|
exports.doThings = doThings; |
||||
|
exports.number = number; |
||||
|
exports.setting = setting; |
@ -0,0 +1,9 @@ |
|||||
|
function doThings() { |
||||
|
console.log( 'doing things...' ); |
||||
|
} |
||||
|
|
||||
|
const number = 42; |
||||
|
|
||||
|
var setting = 'no'; |
||||
|
|
||||
|
export { doThings, number, setting }; |
@ -0,0 +1,16 @@ |
|||||
|
(function (exports) { |
||||
|
'use strict'; |
||||
|
|
||||
|
function doThings() { |
||||
|
console.log( 'doing things...' ); |
||||
|
} |
||||
|
|
||||
|
const number = 42; |
||||
|
|
||||
|
var setting = 'no'; |
||||
|
|
||||
|
exports.doThings = doThings; |
||||
|
exports.number = number; |
||||
|
exports.setting = setting; |
||||
|
|
||||
|
}((this.FooBar = this.FooBar || {}))); |
@ -0,0 +1,24 @@ |
|||||
|
(function (global, factory) { |
||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
||||
|
typeof define === 'function' && define.amd ? define(['exports'], factory) : |
||||
|
(function() { |
||||
|
var current = global.FooBar; |
||||
|
var exports = factory((global.FooBar = global.FooBar || {})); |
||||
|
global.FooBar = exports; |
||||
|
exports.noConflict = function() { global.FooBar = current; return exports; }; |
||||
|
})(); |
||||
|
}(this, function (exports) { 'use strict'; |
||||
|
|
||||
|
function doThings() { |
||||
|
console.log( 'doing things...' ); |
||||
|
} |
||||
|
|
||||
|
const number = 42; |
||||
|
|
||||
|
var setting = 'no'; |
||||
|
|
||||
|
exports.doThings = doThings; |
||||
|
exports.number = number; |
||||
|
exports.setting = setting; |
||||
|
|
||||
|
})); |
@ -0,0 +1,7 @@ |
|||||
|
export function doThings() { |
||||
|
console.log( 'doing things...' ); |
||||
|
} |
||||
|
|
||||
|
export const number = 42; |
||||
|
|
||||
|
export var setting = 'no'; |
Loading…
Reference in new issue