From 3ccc77b9e002d5f51dd7c34f22c4771a0cbc8640 Mon Sep 17 00:00:00 2001 From: Chris James Date: Tue, 27 Feb 2024 16:46:08 +1100 Subject: [PATCH] for browser bundle, ensure `process` is not defined --- sdk/rollup.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/rollup.config.js b/sdk/rollup.config.js index 9d36fa9aed..a513fa306a 100644 --- a/sdk/rollup.config.js +++ b/sdk/rollup.config.js @@ -132,7 +132,8 @@ export default [ __SDK_VERSION__: pkg.version, // This breaks in a dex dependency, so manually replacing it. - 'process.env.NODE_ENV': '"production"' + 'process.env.NODE_ENV': '"production"', + 'process': 'undefined' }), terser(), ],