We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba9c199 commit 719ad2bCopy full SHA for 719ad2b
1 file changed
packages/docs/next.config.js
@@ -26,6 +26,27 @@ module.exports = {
26
compiler: {
27
styledComponents: true,
28
},
29
+ // Turbopack configuration (used by default in Next.js 16+)
30
+ turbopack: {
31
+ rules: {
32
+ '*.{ts,tsx}': {
33
+ condition: {
34
+ all: [
35
+ { not: 'foreign' }, // Exclude node_modules
36
+ {
37
+ any: [
38
+ { path: /^packages\/docs\/pages\// },
39
+ { path: /^packages\/docs\/components\// },
40
+ { path: /^packages\/docs\/PropTables\// },
41
+ ],
42
+ },
43
44
45
+ loaders: ['jsx-to-string-loader'],
46
47
48
49
+ // Webpack configuration (fallback when using --webpack flag)
50
webpack: (config) => {
51
return {
52
...config,
0 commit comments