@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.esm.js
CHANGED
|
@@ -33607,10 +33607,18 @@ function evaluateBundle(source, widgetName) {
|
|
|
33607
33607
|
}
|
|
33608
33608
|
throw new Error("[widgetBundleLoader] Widget \"".concat(widgetName, "\" requires unknown module: \"").concat(name, "\""));
|
|
33609
33609
|
};
|
|
33610
|
+
|
|
33611
|
+
// Provide a process shim so bundles that reference process.env.NODE_ENV
|
|
33612
|
+
// (common in React libraries) don't throw ReferenceError in the sandbox.
|
|
33613
|
+
var process = {
|
|
33614
|
+
env: {
|
|
33615
|
+
NODE_ENV: "production"
|
|
33616
|
+
}
|
|
33617
|
+
};
|
|
33610
33618
|
try {
|
|
33611
33619
|
// eslint-disable-next-line no-new-func
|
|
33612
|
-
var fn = new Function("module", "exports", "require", source);
|
|
33613
|
-
fn(module, exports, require);
|
|
33620
|
+
var fn = new Function("module", "exports", "require", "process", source);
|
|
33621
|
+
fn(module, exports, require, process);
|
|
33614
33622
|
} catch (error) {
|
|
33615
33623
|
throw error;
|
|
33616
33624
|
}
|