Github Issue: rollup/rollup#372
Example Input: https://gist.github.com/shannonmoeller/280dda1f47e222c1ee88e5613bd01897
Github Issue: rollup/rollup#372
Example Input: https://gist.github.com/shannonmoeller/280dda1f47e222c1ee88e5613bd01897
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('./shared'), exports) : | |
typeof define === 'function' && define.amd ? define(['./shared', 'exports'], factory) : | |
(factory((global.shared, global.a = global.a || {}))); | |
}(this, (function (shared, exports) { 'use strict'; | |
const foo = shared.foo; | |
function bar() { | |
return 'bar'; | |
} | |
function a() { | |
return foo() + bar(); | |
} | |
exports.a = a; | |
Object.defineProperty(exports, '__esModule', { value: true }); | |
}); |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('./shared'), exports) : | |
typeof define === 'function' && define.amd ? define(['./shared', 'exports'], factory) : | |
(factory((global.shared, global.b = global.b || {}))); | |
}(this, (function (shared, exports) { 'use strict'; | |
const foo = shared.foo; | |
function baz() { | |
return 'baz'; | |
} | |
function b() { | |
return foo() + baz(); | |
} | |
exports.b = b; | |
Object.defineProperty(exports, '__esModule', { value: true }); | |
}); |