Skip to content

Instantly share code, notes, and snippets.

@shannonmoeller
Last active Apr 18, 2017
Embed
What would you like to do?
Rollup code-splitting outputs.
(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 });
});
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.shared = global.shared || {})));
}(this, (function (exports) { 'use strict';
function foo() {
return 'foo';
}
exports.foo = foo;
Object.defineProperty(exports, '__esModule', { value: true });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment