Skip to content

Commit

Permalink
Update extension build for tron
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovNikita committed Jan 8, 2025
1 parent 89f254f commit 9dad02a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/extension/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9dad02a

Please sign in to comment.