Skip to content

Commit fa592a9

Browse files
committed
fix: turbopack warning
1 parent 72c75c6 commit fa592a9

2 files changed

Lines changed: 422 additions & 1 deletion

File tree

next.config.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,19 @@ const config = {
110110
destination: 'https://us.i.posthog.com/decide',
111111
},
112112
],
113-
webpack: (config, { dev, isServer }) => {
113+
turbopack: {
114+
rules: {
115+
'*.js': {
116+
loaders: [],
117+
as: '*.js',
118+
},
119+
},
120+
},
121+
webpack: (config, { dev, isServer: _ }) => {
122+
// Only apply webpack config when not using turbopack
123+
if (!dev) {
124+
return config;
125+
}
114126
if (dev) {
115127
config.optimization.minimize = false;
116128
}

0 commit comments

Comments
 (0)