We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7547c7 commit 617f143Copy full SHA for 617f143
test/frameworks/next/next.config.js
@@ -1,4 +1,6 @@
1
-module.exports = {
+const withTM = require('next-transpile-modules')(['@codegouvfr/react-dsfr']);
2
+
3
+module.exports = withTM({
4
reactStrictMode: true,
5
webpack: config => {
6
@@ -8,5 +10,5 @@ module.exports = {
8
10
});
9
11
12
return config;
- },
-}
13
+ }
14
+});
test/frameworks/next/package.json
@@ -12,6 +12,7 @@
"next": "12.3.1",
"react": "18.2.0",
"react-dom": "^18.2.0",
15
+ "next-transpile-modules": "^10.0.0",
16
"@codegouvfr/react-dsfr": "file:../../../dist"
17
},
18
"devDependencies": {
0 commit comments