@nuxt/webpack-builder 3.17.2 → 3.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/builder.mjs CHANGED
@@ -2,3 +2,4 @@ export const builder = 'webpack'
2
2
  export { default as webpack } from 'webpack'
3
3
  export { default as MiniCssExtractPlugin } from 'mini-css-extract-plugin'
4
4
  export { default as WebpackBarPlugin } from 'webpackbar'
5
+ export { default as TsCheckerPlugin } from 'fork-ts-checker-webpack-plugin'
package/dist/index.mjs CHANGED
@@ -7,12 +7,11 @@ import { joinURL } from 'ufo';
7
7
  import { logger, useNuxt } from '@nuxt/kit';
8
8
  import { createUnplugin } from 'unplugin';
9
9
  import MagicString from 'magic-string';
10
- import { webpack, WebpackBarPlugin, builder, MiniCssExtractPlugin } from '#builder';
10
+ import { webpack, WebpackBarPlugin, builder, MiniCssExtractPlugin, TsCheckerPlugin } from '#builder';
11
11
  import { join, resolve, normalize, dirname, isAbsolute } from 'pathe';
12
12
  import { createFsFromVolume, Volume } from 'memfs';
13
13
  import querystring from 'node:querystring';
14
14
  import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
15
- import ForkTSCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
16
15
  import { defineEnv } from 'unenv';
17
16
  import TimeFixPlugin from 'time-fix-plugin';
18
17
  import FriendlyErrorsWebpackPlugin from '@nuxt/friendly-errors-webpack-plugin';
@@ -889,7 +888,7 @@ function clientPlugins(ctx) {
889
888
  }
890
889
  if (!ctx.nuxt.options.ssr) {
891
890
  if (!ctx.nuxt.options.test && (ctx.nuxt.options.typescript.typeCheck === true || ctx.nuxt.options.typescript.typeCheck === "build" && !ctx.nuxt.options.dev)) {
892
- ctx.config.plugins.push(new ForkTSCheckerWebpackPlugin({
891
+ ctx.config.plugins.push(new TsCheckerPlugin({
893
892
  logger
894
893
  }));
895
894
  }
@@ -966,13 +965,14 @@ function serverStandalone(ctx) {
966
965
  "#",
967
966
  ...ctx.options.build.transpile
968
967
  ];
969
- const external = [
968
+ const external = /* @__PURE__ */ new Set([
970
969
  "#internal/nitro",
971
970
  "#shared",
972
971
  resolve(ctx.nuxt.options.rootDir, ctx.nuxt.options.dir.shared)
973
- ];
972
+ ]);
974
973
  if (!ctx.nuxt.options.dev) {
975
- external.push("#internal/nuxt/paths", "#app-manifest");
974
+ external.add("#internal/nuxt/paths");
975
+ external.add("#app-manifest");
976
976
  }
977
977
  if (!Array.isArray(ctx.config.externals)) {
978
978
  return;
@@ -981,7 +981,7 @@ function serverStandalone(ctx) {
981
981
  if (!request) {
982
982
  return cb(void 0, false);
983
983
  }
984
- if (external.includes(request)) {
984
+ if (external.has(request)) {
985
985
  return cb(void 0, true);
986
986
  }
987
987
  if (request[0] === "." || isAbsolute(request) || inline.find((prefix) => typeof prefix === "string" && request.startsWith(prefix)) || assetPattern.test(request)) {
@@ -999,7 +999,7 @@ function serverPlugins(ctx) {
999
999
  }));
1000
1000
  }
1001
1001
  if (!ctx.nuxt.options.test && (ctx.nuxt.options.typescript.typeCheck === true || ctx.nuxt.options.typescript.typeCheck === "build" && !ctx.nuxt.options.dev)) {
1002
- ctx.config.plugins.push(new ForkTSCheckerWebpackPlugin({
1002
+ ctx.config.plugins.push(new TsCheckerPlugin({
1003
1003
  logger
1004
1004
  }));
1005
1005
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder",
3
- "version": "3.17.2",
3
+ "version": "3.17.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -30,7 +30,7 @@
30
30
  "autoprefixer": "^10.4.21",
31
31
  "css-loader": "^7.1.2",
32
32
  "css-minimizer-webpack-plugin": "^7.0.2",
33
- "cssnano": "^7.0.6",
33
+ "cssnano": "^7.0.7",
34
34
  "defu": "^6.1.4",
35
35
  "esbuild-loader": "^4.3.0",
36
36
  "escape-string-regexp": "^5.0.0",
@@ -39,7 +39,7 @@
39
39
  "h3": "^1.15.3",
40
40
  "jiti": "^2.4.2",
41
41
  "magic-string": "^0.30.17",
42
- "memfs": "^4.17.1",
42
+ "memfs": "^4.17.2",
43
43
  "mini-css-extract-plugin": "^2.9.2",
44
44
  "ohash": "^2.0.11",
45
45
  "pathe": "^2.0.3",
@@ -53,26 +53,26 @@
53
53
  "std-env": "^3.9.0",
54
54
  "time-fix-plugin": "^2.0.7",
55
55
  "ufo": "^1.6.1",
56
- "unenv": "^2.0.0-rc.15",
57
- "unplugin": "^2.3.2",
56
+ "unenv": "^2.0.0-rc.17",
57
+ "unplugin": "^2.3.4",
58
58
  "url-loader": "^4.1.1",
59
59
  "vue-bundle-renderer": "^2.1.1",
60
60
  "vue-loader": "^17.4.2",
61
- "webpack": "^5.99.5",
61
+ "webpack": "^5.99.8",
62
62
  "webpack-bundle-analyzer": "^4.10.2",
63
63
  "webpack-dev-middleware": "^7.4.2",
64
64
  "webpack-hot-middleware": "^2.26.1",
65
65
  "webpackbar": "^7.0.0",
66
- "@nuxt/kit": "3.17.2"
66
+ "@nuxt/kit": "3.17.4"
67
67
  },
68
68
  "devDependencies": {
69
- "@rspack/core": "1.3.8",
69
+ "@rspack/core": "1.3.11",
70
70
  "@types/pify": "6.1.0",
71
71
  "@types/webpack-bundle-analyzer": "4.7.0",
72
72
  "@types/webpack-hot-middleware": "2.25.9",
73
73
  "unbuild": "3.5.0",
74
- "vue": "3.5.13",
75
- "@nuxt/schema": "3.17.2"
74
+ "vue": "3.5.14",
75
+ "@nuxt/schema": "3.17.4"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "vue": "^3.3.4"