UNPKG

721 BJavaScriptView Raw
1export const HELPERS_ID = '\0commonjsHelpers';
2
3export const HELPERS = `
4export var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
6export function commonjsRequire () {
7 throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
8}
9
10export function unwrapExports (x) {
11 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
12}
13
14export function createCommonjsModule(fn, module) {
15 return module = { exports: {} }, fn(module, module.exports), module.exports;
16}`;
17
18export const PREFIX = '\0commonjs-proxy:';
19export const EXTERNAL = '\0commonjs-external:';