Skip to content

Commit 13fc670

Browse files
committed
feat: remove old TS plugin
1 parent ff21b8e commit 13fc670

File tree

3 files changed

+2
-1168
lines changed

3 files changed

+2
-1168
lines changed

packages/next/src/build/webpack-config.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import { CopyFilePlugin } from './webpack/plugins/copy-file-plugin'
5151
import { ClientReferenceManifestPlugin } from './webpack/plugins/flight-manifest-plugin'
5252
import { FlightClientEntryPlugin as NextFlightClientEntryPlugin } from './webpack/plugins/flight-client-entry-plugin'
5353
import { RspackFlightClientEntryPlugin } from './webpack/plugins/rspack-flight-client-entry-plugin'
54-
import { NextTypesPlugin } from './webpack/plugins/next-types-plugin'
5554
import type {
5655
Feature,
5756
SWC_TARGET_TRIPLE,
@@ -319,8 +318,6 @@ export default async function getBaseWebpackConfig(
319318
pagesDir,
320319
reactProductionProfiling = false,
321320
rewrites,
322-
originalRewrites,
323-
originalRedirects,
324321
runWebpackSpan,
325322
appDir,
326323
middlewareMatchers,
@@ -389,7 +386,6 @@ export default async function getBaseWebpackConfig(
389386

390387
const hasAppDir = !!appDir
391388
const disableOptimizedLoading = true
392-
const enableTypedRoutes = !!config.experimental.typedRoutes && hasAppDir
393389
const bundledReactChannel = needsExperimentalReact(config)
394390
? '-experimental'
395391
: ''
@@ -2143,20 +2139,6 @@ export default async function getBaseWebpackConfig(
21432139
isEdgeServer,
21442140
encryptionKey,
21452141
})),
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-
}),
21602142
!dev &&
21612143
isClient &&
21622144
!!config.experimental.sri?.algorithm &&

0 commit comments

Comments
 (0)