@nuxt/rspack-builder 3.19.1 → 3.19.3

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 (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.mjs +10 -4
  3. package/package.json +13 -13
package/README.md CHANGED
@@ -60,7 +60,7 @@ Example of an `app.vue`:
60
60
  <script setup lang="ts">
61
61
  useSeoMeta({
62
62
  title: 'Meet Nuxt',
63
- description: 'The Intuitive Vue Framework.'
63
+ description: 'The Intuitive Vue Framework.',
64
64
  })
65
65
  </script>
66
66
 
package/dist/index.mjs CHANGED
@@ -761,7 +761,13 @@ class VueSSRClientPlugin {
761
761
  continue;
762
762
  }
763
763
  const id = m.identifier.replace(/\s\w+$/, "");
764
- const filesSet = new Set(chunk.files.map(fileToIndex).filter((i) => i !== -1));
764
+ const filesSet = /* @__PURE__ */ new Set();
765
+ for (const file of chunk.files) {
766
+ const index = fileToIndex(file);
767
+ if (index !== -1) {
768
+ filesSet.add(index);
769
+ }
770
+ }
765
771
  for (const chunkName of chunk.names) {
766
772
  if (!entrypoints[chunkName]) {
767
773
  const chunkGroup = namedChunkGroups[chunkName];
@@ -837,7 +843,7 @@ class VueSSRServerPlugin {
837
843
  files: {},
838
844
  maps: {}
839
845
  };
840
- stats.assets.forEach((asset) => {
846
+ for (const asset of stats.assets) {
841
847
  if (isJS(asset.name)) {
842
848
  const queryPart = extractQueryPartJS(asset.name);
843
849
  if (queryPart !== void 0) {
@@ -850,7 +856,7 @@ class VueSSRServerPlugin {
850
856
  } else {
851
857
  delete assets[asset.name];
852
858
  }
853
- });
859
+ }
854
860
  const src = JSON.stringify(bundle, null, 2);
855
861
  assets[this.options.filename] = {
856
862
  source: () => src,
@@ -1232,7 +1238,7 @@ async function compile(compiler) {
1232
1238
  if (nuxt.options.dev) {
1233
1239
  const compilersWatching = [];
1234
1240
  nuxt.hook("close", async () => {
1235
- await Promise.all(compilersWatching.map((watching) => pify(watching.close.bind(watching))()));
1241
+ await Promise.all(compilersWatching.map((watching) => watching && pify(watching.close.bind(watching))()));
1236
1242
  });
1237
1243
  if (compiler.options.name === "client") {
1238
1244
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/rspack-builder",
3
- "version": "3.19.1",
3
+ "version": "3.19.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -27,20 +27,20 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
30
- "@rspack/core": "^1.5.2",
30
+ "@rspack/core": "^1.5.8",
31
31
  "autoprefixer": "^10.4.21",
32
32
  "css-loader": "^7.1.2",
33
33
  "css-minimizer-webpack-plugin": "^7.0.2",
34
34
  "cssnano": "^7.1.1",
35
35
  "defu": "^6.1.4",
36
- "esbuild-loader": "^4.3.0",
36
+ "esbuild-loader": "^4.4.0",
37
37
  "escape-string-regexp": "^5.0.0",
38
38
  "file-loader": "^6.2.0",
39
39
  "h3": "^1.15.4",
40
- "jiti": "^2.5.1",
40
+ "jiti": "^2.6.1",
41
41
  "knitwork": "^1.2.0",
42
- "magic-string": "^0.30.18",
43
- "memfs": "^4.38.2",
42
+ "magic-string": "^0.30.19",
43
+ "memfs": "^4.48.1",
44
44
  "ohash": "^2.0.11",
45
45
  "pathe": "^2.0.3",
46
46
  "pify": "^6.1.0",
@@ -54,25 +54,25 @@
54
54
  "time-fix-plugin": "^2.0.7",
55
55
  "ts-checker-rspack-plugin": "^1.1.5",
56
56
  "ufo": "^1.6.1",
57
- "unenv": "^2.0.0-rc.19",
57
+ "unenv": "^2.0.0-rc.21",
58
58
  "unplugin": "^2.3.10",
59
59
  "url-loader": "^4.1.1",
60
- "vue-bundle-renderer": "^2.1.2",
60
+ "vue-bundle-renderer": "^2.2.0",
61
61
  "vue-loader": "^17.4.2",
62
62
  "webpack-bundle-analyzer": "^4.10.2",
63
- "webpack-dev-middleware": "^7.4.2",
63
+ "webpack-dev-middleware": "^7.4.5",
64
64
  "webpack-hot-middleware": "^2.26.1",
65
65
  "webpackbar": "^7.0.0",
66
- "@nuxt/kit": "3.19.1"
66
+ "@nuxt/kit": "3.19.3"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/pify": "6.1.0",
70
70
  "@types/webpack-bundle-analyzer": "4.7.0",
71
71
  "@types/webpack-hot-middleware": "2.25.10",
72
- "rollup": "4.50.0",
72
+ "rollup": "4.52.4",
73
73
  "unbuild": "3.6.1",
74
- "vue": "3.5.20",
75
- "@nuxt/schema": "3.19.1"
74
+ "vue": "3.5.22",
75
+ "@nuxt/schema": "3.19.3"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "vue": "^3.3.4"