Skip to content

Commit 617f143

Browse files
committed
Apply recommended configuration to next config
1 parent c7547c7 commit 617f143

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test/frameworks/next/next.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
module.exports = {
1+
const withTM = require('next-transpile-modules')(['@codegouvfr/react-dsfr']);
2+
3+
module.exports = withTM({
24
reactStrictMode: true,
35
webpack: config => {
46

@@ -8,5 +10,5 @@ module.exports = {
810
});
911

1012
return config;
11-
},
12-
}
13+
}
14+
});

test/frameworks/next/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"next": "12.3.1",
1313
"react": "18.2.0",
1414
"react-dom": "^18.2.0",
15+
"next-transpile-modules": "^10.0.0",
1516
"@codegouvfr/react-dsfr": "file:../../../dist"
1617
},
1718
"devDependencies": {

0 commit comments

Comments
 (0)