@nuxt/rspack-builder 3.15.1 → 3.15.2

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.
Files changed (2) hide show
  1. package/dist/index.mjs +12 -12
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -47,7 +47,7 @@ ${options.globalPublicPath} = buildAssetsURL();
47
47
  `);
48
48
  return {
49
49
  code: s.toString(),
50
- map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
50
+ map: options.sourcemap ? s.generateMap({ hires: true }) : undefined
51
51
  };
52
52
  }
53
53
  };
@@ -206,7 +206,7 @@ function baseConfig(ctx) {
206
206
  });
207
207
  }
208
208
  function basePlugins(ctx) {
209
- ctx.config.plugins = ctx.config.plugins || [];
209
+ ctx.config.plugins ||= [];
210
210
  if (ctx.options.dev) {
211
211
  if (ctx.nuxt.options.builder !== "@nuxt/rspack-builder") {
212
212
  ctx.config.plugins.push(new TimeFixPlugin());
@@ -736,7 +736,7 @@ class VueSSRServerPlugin {
736
736
  stats.assets.forEach((asset) => {
737
737
  if (isJS(asset.name)) {
738
738
  const queryPart = extractQueryPartJS(asset.name);
739
- if (queryPart !== void 0) {
739
+ if (queryPart !== undefined) {
740
740
  bundle.files[asset.name] = asset.name.replace(queryPart, "");
741
741
  } else {
742
742
  bundle.files[asset.name] = asset.name;
@@ -836,7 +836,7 @@ function clientNodeCompat(ctx) {
836
836
  return;
837
837
  }
838
838
  ctx.config.plugins.push(new webpack.DefinePlugin({ global: "globalThis" }));
839
- ctx.config.resolve = ctx.config.resolve || {};
839
+ ctx.config.resolve ||= {};
840
840
  ctx.config.resolve.fallback = {
841
841
  ...env(nodeless).alias,
842
842
  ...ctx.config.resolve.fallback
@@ -865,7 +865,7 @@ function clientHMR(ctx) {
865
865
  // https://github.com/glenjamin/webpack-hot-middleware#config
866
866
  `webpack-hot-middleware/client?${hotMiddlewareClientOptionsStr}`
867
867
  );
868
- ctx.config.plugins = ctx.config.plugins || [];
868
+ ctx.config.plugins ||= [];
869
869
  ctx.config.plugins.push(new webpack.HotModuleReplacementPlugin());
870
870
  }
871
871
  function clientOptimization(_ctx) {
@@ -975,19 +975,19 @@ function serverStandalone(ctx) {
975
975
  }
976
976
  ctx.config.externals.push(({ request }, cb) => {
977
977
  if (!request) {
978
- return cb(void 0, false);
978
+ return cb(undefined, false);
979
979
  }
980
980
  if (external.includes(request)) {
981
- return cb(void 0, true);
981
+ return cb(undefined, true);
982
982
  }
983
983
  if (request[0] === "." || isAbsolute(request) || inline.find((prefix) => typeof prefix === "string" && request.startsWith(prefix)) || assetPattern.test(request)) {
984
- return cb(void 0, false);
984
+ return cb(undefined, false);
985
985
  }
986
- return cb(void 0, true);
986
+ return cb(undefined, true);
987
987
  });
988
988
  }
989
989
  function serverPlugins(ctx) {
990
- ctx.config.plugins = ctx.config.plugins || [];
990
+ ctx.config.plugins ||= [];
991
991
  if (ctx.userConfig.serverURLPolyfill) {
992
992
  ctx.config.plugins.push(new webpack.ProvidePlugin({
993
993
  URL: [ctx.userConfig.serverURLPolyfill, "URL"],
@@ -1060,7 +1060,7 @@ async function createDevMiddleware(compiler) {
1060
1060
  const hotHandler = fromNodeMiddleware(hotMiddleware);
1061
1061
  await nuxt.callHook("server:devHandler", defineEventHandler(async (event) => {
1062
1062
  const body = await devHandler(event);
1063
- if (body !== void 0) {
1063
+ if (body !== undefined) {
1064
1064
  return body;
1065
1065
  }
1066
1066
  await hotHandler(event);
@@ -1088,7 +1088,7 @@ function wdmToH3Handler(devMiddleware) {
1088
1088
  if (err) {
1089
1089
  reject(err);
1090
1090
  } else {
1091
- resolve(void 0);
1091
+ resolve(undefined);
1092
1092
  }
1093
1093
  });
1094
1094
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/rspack-builder",
3
- "version": "3.15.1",
3
+ "version": "3.15.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -38,15 +38,15 @@
38
38
  "file-loader": "^6.2.0",
39
39
  "fork-ts-checker-webpack-plugin": "^9.0.2",
40
40
  "globby": "^14.0.2",
41
- "h3": "^1.13.0",
41
+ "h3": "^1.13.1",
42
42
  "jiti": "^2.4.2",
43
43
  "knitwork": "^1.2.0",
44
44
  "magic-string": "^0.30.17",
45
45
  "memfs": "^4.14.1",
46
46
  "ohash": "^1.1.4",
47
- "pathe": "^2.0.0",
47
+ "pathe": "^2.0.1",
48
48
  "pify": "^6.1.0",
49
- "postcss": "^8.4.49",
49
+ "postcss": "^8.5.1",
50
50
  "postcss-import": "^16.1.0",
51
51
  "postcss-import-resolver": "^2.0.0",
52
52
  "postcss-loader": "^8.1.1",
@@ -64,22 +64,22 @@
64
64
  "webpack-dev-middleware": "^7.4.2",
65
65
  "webpack-hot-middleware": "^2.26.1",
66
66
  "webpackbar": "^7.0.0",
67
- "@nuxt/kit": "3.15.1"
67
+ "@nuxt/kit": "3.15.2"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/pify": "5.0.4",
71
71
  "@types/webpack-bundle-analyzer": "4.7.0",
72
72
  "@types/webpack-hot-middleware": "2.25.9",
73
- "rollup": "4.29.1",
73
+ "rollup": "4.30.1",
74
74
  "unbuild": "latest",
75
75
  "vue": "3.5.13",
76
- "@nuxt/schema": "3.15.1"
76
+ "@nuxt/schema": "3.15.2"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "vue": "^3.3.4"
80
80
  },
81
81
  "engines": {
82
- "node": "^18.20.5 || ^20.9.0 || >=22.0.0"
82
+ "node": "^18.12.0 || ^20.9.0 || >=22.0.0"
83
83
  },
84
84
  "scripts": {
85
85
  "test:attw": "attw --pack"