mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore(deps)!: update dependency fork-ts-checker-webpack-plugin to v8 (main) (#19468)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev> BREAKING CHANGE: Using the webpack builder, `typescript.typeCheck` has not been properly type-checking vue files _anyway_, so this shouldn't be a breaking change. But the underlying plugin we have been using (`fork-ts-checker-webpack-plugin`) has now formally removed support for type-checking `.vue` files to make this clearer.
This commit is contained in:
parent
06b9233b18
commit
6c53c8b550
@ -27,7 +27,7 @@
|
||||
"escape-string-regexp": "^5.0.0",
|
||||
"estree-walker": "^3.0.3",
|
||||
"file-loader": "^6.2.0",
|
||||
"fork-ts-checker-webpack-plugin": "^7.3.0",
|
||||
"fork-ts-checker-webpack-plugin": "^8.0.0",
|
||||
"fs-extra": "^11.1.0",
|
||||
"hash-sum": "^2.0.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
|
@ -104,12 +104,7 @@ function clientPlugins (ctx: WebpackConfigContext) {
|
||||
if (!ctx.nuxt.options.ssr) {
|
||||
if (ctx.nuxt.options.typescript.typeCheck === true || (ctx.nuxt.options.typescript.typeCheck === 'build' && !ctx.nuxt.options.dev)) {
|
||||
config.plugins!.push(new ForkTSCheckerWebpackPlugin({
|
||||
logger,
|
||||
typescript: {
|
||||
extensions: {
|
||||
vue: { compiler: '@vue/compiler-sfc' }
|
||||
}
|
||||
}
|
||||
logger
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
@ -91,12 +91,7 @@ function serverPlugins (ctx: WebpackConfigContext) {
|
||||
// Add type-checking
|
||||
if (ctx.nuxt.options.typescript.typeCheck === true || (ctx.nuxt.options.typescript.typeCheck === 'build' && !ctx.nuxt.options.dev)) {
|
||||
config.plugins!.push(new ForkTSCheckerWebpackPlugin({
|
||||
logger,
|
||||
typescript: {
|
||||
extensions: {
|
||||
vue: { compiler: '@vue/compiler-sfc' }
|
||||
}
|
||||
}
|
||||
logger
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
@ -684,7 +684,7 @@ importers:
|
||||
escape-string-regexp: ^5.0.0
|
||||
estree-walker: ^3.0.3
|
||||
file-loader: ^6.2.0
|
||||
fork-ts-checker-webpack-plugin: ^7.3.0
|
||||
fork-ts-checker-webpack-plugin: ^8.0.0
|
||||
fs-extra: ^11.1.0
|
||||
hash-sum: ^2.0.0
|
||||
lodash-es: ^4.17.21
|
||||
@ -726,7 +726,7 @@ importers:
|
||||
escape-string-regexp: 5.0.0
|
||||
estree-walker: 3.0.3
|
||||
file-loader: 6.2.0_webpack@5.75.0
|
||||
fork-ts-checker-webpack-plugin: 7.3.0_webpack@5.75.0
|
||||
fork-ts-checker-webpack-plugin: 8.0.0_webpack@5.75.0
|
||||
fs-extra: 11.1.0
|
||||
hash-sum: 2.0.0
|
||||
lodash-es: 4.17.21
|
||||
@ -4902,16 +4902,12 @@ packages:
|
||||
resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==}
|
||||
dev: true
|
||||
|
||||
/fork-ts-checker-webpack-plugin/7.3.0_webpack@5.75.0:
|
||||
resolution: {integrity: sha512-IN+XTzusCjR5VgntYFgxbxVx3WraPRnKehBFrf00cMSrtUuW9MsG9dhL6MWpY6MkjC3wVwoujfCDgZZCQwbswA==}
|
||||
/fork-ts-checker-webpack-plugin/8.0.0_webpack@5.75.0:
|
||||
resolution: {integrity: sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==}
|
||||
engines: {node: '>=12.13.0', yarn: '>=1.0.0'}
|
||||
peerDependencies:
|
||||
typescript: '>3.6.0'
|
||||
vue-template-compiler: '*'
|
||||
webpack: ^5.11.0
|
||||
peerDependenciesMeta:
|
||||
vue-template-compiler:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@babel/code-frame': 7.18.6
|
||||
chalk: 4.1.2
|
||||
|
Loading…
Reference in New Issue
Block a user