Skip to content

Commit 719ad2b

Browse files
committed
chore(deps): add turbpack configuration
1 parent ba9c199 commit 719ad2b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

packages/docs/next.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,27 @@ module.exports = {
2626
compiler: {
2727
styledComponents: true,
2828
},
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)
2950
webpack: (config) => {
3051
return {
3152
...config,

0 commit comments

Comments
 (0)