File tree Expand file tree Collapse file tree 3 files changed +2
-1168
lines changed
webpack/plugins/next-types-plugin Expand file tree Collapse file tree 3 files changed +2
-1168
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ import { CopyFilePlugin } from './webpack/plugins/copy-file-plugin'
51
51
import { ClientReferenceManifestPlugin } from './webpack/plugins/flight-manifest-plugin'
52
52
import { FlightClientEntryPlugin as NextFlightClientEntryPlugin } from './webpack/plugins/flight-client-entry-plugin'
53
53
import { RspackFlightClientEntryPlugin } from './webpack/plugins/rspack-flight-client-entry-plugin'
54
- import { NextTypesPlugin } from './webpack/plugins/next-types-plugin'
55
54
import type {
56
55
Feature ,
57
56
SWC_TARGET_TRIPLE ,
@@ -319,8 +318,6 @@ export default async function getBaseWebpackConfig(
319
318
pagesDir,
320
319
reactProductionProfiling = false ,
321
320
rewrites,
322
- originalRewrites,
323
- originalRedirects,
324
321
runWebpackSpan,
325
322
appDir,
326
323
middlewareMatchers,
@@ -389,7 +386,6 @@ export default async function getBaseWebpackConfig(
389
386
390
387
const hasAppDir = ! ! appDir
391
388
const disableOptimizedLoading = true
392
- const enableTypedRoutes = ! ! config . experimental . typedRoutes && hasAppDir
393
389
const bundledReactChannel = needsExperimentalReact ( config )
394
390
? '-experimental'
395
391
: ''
@@ -2143,20 +2139,6 @@ export default async function getBaseWebpackConfig(
2143
2139
isEdgeServer,
2144
2140
encryptionKey,
2145
2141
} ) ) ,
2146
- hasAppDir &&
2147
- ! isClient &&
2148
- new NextTypesPlugin ( {
2149
- dir,
2150
- distDir : config . distDir ,
2151
- appDir,
2152
- dev,
2153
- isEdgeServer,
2154
- pageExtensions : config . pageExtensions ,
2155
- typedRoutes : enableTypedRoutes ,
2156
- cacheLifeConfig : config . experimental . cacheLife ,
2157
- originalRewrites,
2158
- originalRedirects,
2159
- } ) ,
2160
2142
! dev &&
2161
2143
isClient &&
2162
2144
! ! config . experimental . sri ?. algorithm &&
You can’t perform that action at this time.
0 commit comments