Skip to content

Commit

Permalink
Use a filter for @hyrious/esbuild-plugin-commonjs
Browse files Browse the repository at this point in the history
This should improve the build performance when a project gets bigger.
  • Loading branch information
unstubbable committed Oct 12, 2023
1 parent e9c8717 commit 35c08d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const options = {
bundle: true,
format: 'esm',
external: ['react'],
plugins: [commonjs()],
plugins: [commonjs({filter: /node_modules\/(react-dom)\//})],
sourcemap: true,
minify: process.env.NODE_ENV === 'production',
};
Expand Down

0 comments on commit 35c08d6

Please sign in to comment.