@trops/dash-core 0.1.253 → 0.1.254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +10 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33625,10 +33625,18 @@ function evaluateBundle(source, widgetName) {
|
|
|
33625
33625
|
}
|
|
33626
33626
|
throw new Error("[widgetBundleLoader] Widget \"".concat(widgetName, "\" requires unknown module: \"").concat(name, "\""));
|
|
33627
33627
|
};
|
|
33628
|
+
|
|
33629
|
+
// Provide a process shim so bundles that reference process.env.NODE_ENV
|
|
33630
|
+
// (common in React libraries) don't throw ReferenceError in the sandbox.
|
|
33631
|
+
var process = {
|
|
33632
|
+
env: {
|
|
33633
|
+
NODE_ENV: "production"
|
|
33634
|
+
}
|
|
33635
|
+
};
|
|
33628
33636
|
try {
|
|
33629
33637
|
// eslint-disable-next-line no-new-func
|
|
33630
|
-
var fn = new Function("module", "exports", "require", source);
|
|
33631
|
-
fn(module, exports, require);
|
|
33638
|
+
var fn = new Function("module", "exports", "require", "process", source);
|
|
33639
|
+
fn(module, exports, require, process);
|
|
33632
33640
|
} catch (error) {
|
|
33633
33641
|
throw error;
|
|
33634
33642
|
}
|