@nuxt/webpack-builder-nightly 4.3.2-29531002.97b32ff3 → 4.3.2-29531289.6a3bd23e

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 +15 -0
  2. package/package.json +10 -10
package/dist/index.mjs CHANGED
@@ -417,6 +417,7 @@ function createMFS() {
417
417
  _fs.readFile = pify(_fs.readFile);
418
418
  return _fs;
419
419
  }
420
+ /** @since 3.9.0 */
420
421
  function toArray(value) {
421
422
  return Array.isArray(value) ? value : [value];
422
423
  }
@@ -488,6 +489,10 @@ var WarningIgnorePlugin = class {
488
489
  });
489
490
  }
490
491
  };
492
+ /**
493
+ * This file is based on Vue.js (MIT) webpack plugins
494
+ * https://github.com/vuejs/vue/blob/dev/src/server/webpack-plugin/util.js
495
+ */
491
496
  const validate = (compiler) => {
492
497
  if (compiler.options.target !== "node") logger.warn("webpack config `target` should be \"node\".");
493
498
  if (!compiler.options.externals) logger.info("It is recommended to externalize dependencies in the server build for better build performance.");
@@ -502,6 +507,11 @@ const DYNAMIC_IMPORT_RE = /import\([^)]*\+\s*__webpack_require__[^+]*\)\.then/;
502
507
  const DYNAMIC_IMPORT_REPLACE_RE = /import\([^)]*\+\s*(__webpack_require__[^+]*)\)\.then/g;
503
508
  const HELPER_FILENAME = "_dynamic-import-helper.mjs";
504
509
  const HELPER_IMPORT = `import { _rollupDynamicImport } from "./${HELPER_FILENAME}";\n`;
510
+ /**
511
+ * Webpack plugin that generates rollup-compatible dynamic imports.
512
+ * This plugin uses webpack's native compilation hooks to override dynamic import generation
513
+ * and create rollup-compatible code directly during webpack's compilation process.
514
+ */
505
515
  var RollupCompatDynamicImportPlugin = class {
506
516
  apply(compiler) {
507
517
  compiler.hooks.compilation.tap("RollupCompatDynamicImportPlugin", (compilation) => {
@@ -910,6 +920,10 @@ async function createPostcssLoadersRule(ctx) {
910
920
  options: config
911
921
  };
912
922
  }
923
+ /**
924
+ * This file is based on Vue.js (MIT) webpack plugins
925
+ * https://github.com/vuejs/vue/blob/dev/src/server/webpack-plugin/client.js
926
+ */
913
927
  var VueSSRClientPlugin = class {
914
928
  serverDist;
915
929
  nuxt;
@@ -1311,6 +1325,7 @@ const bundle = async (nuxt) => {
1311
1325
  await applyPresets(ctx, preset);
1312
1326
  return ctx.config;
1313
1327
  }));
1328
+ /** Remove Nitro rollup plugin for handling dynamic imports from webpack chunks */
1314
1329
  if (!nuxt.options.dev) useNitro().hooks.hook("rollup:before", (_nitro, config) => {
1315
1330
  const plugins = config.plugins;
1316
1331
  const existingPlugin = plugins.findIndex((i) => i && "name" in i && i.name === "dynamic-require");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder-nightly",
3
- "version": "4.3.2-29531002.97b32ff3",
3
+ "version": "4.3.2-29531289.6a3bd23e",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -25,8 +25,8 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
28
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.2-29531002.97b32ff3",
29
- "@vue/compiler-sfc": "3.5.27",
28
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.2-29531289.6a3bd23e",
29
+ "@vue/compiler-sfc": "3.5.28",
30
30
  "autoprefixer": "^10.4.24",
31
31
  "css-loader": "^7.1.4",
32
32
  "css-minimizer-webpack-plugin": "^7.0.4",
@@ -69,22 +69,22 @@
69
69
  "webpackbar": "^7.0.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.2-29531002.97b32ff3",
73
- "@rspack/core": "1.7.5",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.2-29531289.6a3bd23e",
73
+ "@rspack/core": "1.7.6",
74
74
  "@types/webpack-bundle-analyzer": "4.7.0",
75
75
  "@types/webpack-hot-middleware": "2.25.12",
76
76
  "h3": "1.15.5",
77
77
  "h3-next": "npm:h3@2.0.1-rc.14",
78
- "obuild": "0.4.27",
79
- "rollup": "4.57.1",
80
- "vue": "3.5.27"
78
+ "obuild": "0.4.31",
79
+ "rollup": "4.59.0",
80
+ "vue": "3.5.28"
81
81
  },
82
82
  "peerDependencies": {
83
- "nuxt": "npm:nuxt-nightly@4.3.2-29531002.97b32ff3",
83
+ "nuxt": "npm:nuxt-nightly@4.3.2-29531289.6a3bd23e",
84
84
  "vue": "^3.3.4"
85
85
  },
86
86
  "engines": {
87
- "node": "^20.19.0 || >=22.12.0"
87
+ "node": ">=22.12.0"
88
88
  },
89
89
  "_name": "@nuxt/webpack-builder",
90
90
  "scripts": {