From 6c53c8b55026ce78dddc0d26c9a4d5f79848f993 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 7 Mar 2023 06:25:27 -0800 Subject: [PATCH] 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 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. --- packages/webpack/package.json | 2 +- packages/webpack/src/configs/client.ts | 7 +------ packages/webpack/src/configs/server.ts | 7 +------ pnpm-lock.yaml | 12 ++++-------- 4 files changed, 7 insertions(+), 21 deletions(-) diff --git a/packages/webpack/package.json b/packages/webpack/package.json index c5b0e87fdf..a3dcee0d7f 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -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", diff --git a/packages/webpack/src/configs/client.ts b/packages/webpack/src/configs/client.ts index d7ca8f0fdf..1f1147ce1d 100644 --- a/packages/webpack/src/configs/client.ts +++ b/packages/webpack/src/configs/client.ts @@ -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 })) } } diff --git a/packages/webpack/src/configs/server.ts b/packages/webpack/src/configs/server.ts index 8ae872abe7..f65340722b 100644 --- a/packages/webpack/src/configs/server.ts +++ b/packages/webpack/src/configs/server.ts @@ -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 })) } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 582f1d6e3e..a1a594ff16 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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