Skip to content

Commit

Permalink
Add react-prod-sourcemaps Webpack plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Sep 7, 2023
1 parent c14a717 commit 3fe4b0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { patchWebpackConfig } = require("next-global-css");
const { RetryChunkLoadPlugin } = require("webpack-retry-chunk-load-plugin");
const { WebpackReactSourcemapsPlugin } = require("@acemarke/react-prod-sourcemaps");

const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
Expand Down Expand Up @@ -138,6 +139,8 @@ const baseNextConfig = {
);
}

config.plugins.push(WebpackReactSourcemapsPlugin({ debug: false }));

// Allow CSS imported from `node_modules`, to work around an error
// from importing `<Editor>` from `@redux-devtools/ui`
patchWebpackConfig(config, { isServer });
Expand Down

0 comments on commit 3fe4b0b

Please sign in to comment.