From 9dad02af3a394bf9d1b78d0013cf25e1e88c139e Mon Sep 17 00:00:00 2001 From: Nikita Kuznetsov Date: Wed, 8 Jan 2025 15:25:29 +0100 Subject: [PATCH] Update extension build for tron --- apps/extension/config-overrides.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/extension/config-overrides.js b/apps/extension/config-overrides.js index ceb61b58..fc321f99 100644 --- a/apps/extension/config-overrides.js +++ b/apps/extension/config-overrides.js @@ -31,6 +31,12 @@ module.exports = function override(config, env) { }; config.resolve.extensions = [...config.resolve.extensions, '.ts', '.js']; + + config.module.rules[1].oneOf.splice(2, 0, { + test: /\.cjs$/, + type: 'javascript/auto' + }); + config.plugins = [ ...config.plugins, new webpack.ProvidePlugin({