Skip to content

Commit 16dd913

Browse files
authored
Fix Next docs configuration structure for PostCSS plugins
1 parent c680e4a commit 16dd913

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/website/docs/learn/environment-setup

packages/website/docs/learn/environment-setup/02-next.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,19 @@ export default config;
5454
import babelLoader from "./babelLoader.config.js";
5555

5656
const config = {
57-
plugins: [
57+
plugins: {
5858
"react-strict-dom/postcss-plugin": {
5959
include: [
6060
// Include source files to watch for style changes
61+
// Be specific and avoid a non specific glob like "**/*.{js,jsx}" which could cause major performance issues during build
6162
'src/**/*.{js,jsx,mjs,ts,tsx}',
6263
// List any installed node_modules that include UI built with React Strict DOM
6364
'node_modules/<package-name>/*.js'
6465
],
6566
babelConfig: babelLoader,
6667
useLayers: true,
6768
}
68-
],
69+
},
6970
};
7071

7172
export default config;

0 commit comments

Comments
 (0)