mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
committed by
GitHub
5 changed files with 28 additions and 4 deletions
@ -0,0 +1,4 @@ |
|||||
|
module.exports = { |
||||
|
description: 'respects noConflict option', |
||||
|
command: 'rollup --config rollup.config.js' |
||||
|
}; |
@ -0,0 +1,16 @@ |
|||||
|
(function (global, factory) { |
||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
||||
|
typeof define === 'function' && define.amd ? define(factory) : |
||||
|
(function() { |
||||
|
var current = global.conflictyName; |
||||
|
var exports = factory(); |
||||
|
global.conflictyName = exports; |
||||
|
exports.noConflict = function() { global.conflictyName = current; return exports; }; |
||||
|
})(); |
||||
|
}(this, (function () { 'use strict'; |
||||
|
|
||||
|
var main = {}; |
||||
|
|
||||
|
return main; |
||||
|
|
||||
|
}))); |
@ -0,0 +1 @@ |
|||||
|
export default {}; |
@ -0,0 +1,6 @@ |
|||||
|
module.exports = { |
||||
|
entry: 'main.js', |
||||
|
format: 'umd', |
||||
|
moduleName: 'conflictyName', |
||||
|
noConflict: true |
||||
|
}; |
Loading…
Reference in new issue