@nuxt/webpack-builder 4.1.1 → 4.1.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 +5 -5
  2. package/dist/index.mjs +10 -4
  3. package/package.json +15 -15
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
 
@@ -93,13 +93,13 @@ Discover our [list of modules](https://nuxt.com/modules) to supercharge your Nux
93
93
  We invite you to contribute and help improve Nuxt 💚
94
94
 
95
95
  Here are a few ways you can get involved:
96
- - **Reporting Bugs:** If you come across any bugs or issues, please check out the [reporting bugs guide](https://nuxt.com/docs/community/reporting-bugs) to learn how to submit a bug report.
97
- - **Suggestions:** Have ideas to enhance Nuxt? We'd love to hear them! Check out the [contribution guide](https://nuxt.com/docs/community/contribution) to share your suggestions.
98
- - **Questions:** If you have questions or need assistance, the [getting help guide](https://nuxt.com/docs/community/getting-help) provides resources to help you out.
96
+ - **Reporting Bugs:** If you come across any bugs or issues, please check out the [reporting bugs guide](https://nuxt.com/docs/4.x/community/reporting-bugs) to learn how to submit a bug report.
97
+ - **Suggestions:** Have ideas to enhance Nuxt? We'd love to hear them! Check out the [contribution guide](https://nuxt.com/docs/4.x/community/contribution) to share your suggestions.
98
+ - **Questions:** If you have questions or need assistance, the [getting help guide](https://nuxt.com/docs/4.x/community/getting-help) provides resources to help you out.
99
99
 
100
100
  ## <a name="local-development">🏠 Local Development</a>
101
101
 
102
- Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/docs/community/framework-contribution#setup) to contribute to the framework and documentation.
102
+ Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/docs/4.x/community/framework-contribution#setup) to contribute to the framework and documentation.
103
103
 
104
104
  ## <a name="professional-support">🛟 Professional Support</a>
105
105
 
package/dist/index.mjs CHANGED
@@ -764,7 +764,13 @@ class VueSSRClientPlugin {
764
764
  continue;
765
765
  }
766
766
  const id = m.identifier.replace(/\s\w+$/, "");
767
- const filesSet = new Set(chunk.files.map(fileToIndex).filter((i) => i !== -1));
767
+ const filesSet = /* @__PURE__ */ new Set();
768
+ for (const file of chunk.files) {
769
+ const index = fileToIndex(file);
770
+ if (index !== -1) {
771
+ filesSet.add(index);
772
+ }
773
+ }
768
774
  for (const chunkName of chunk.names) {
769
775
  if (!entrypoints[chunkName]) {
770
776
  const chunkGroup = namedChunkGroups[chunkName];
@@ -840,7 +846,7 @@ class VueSSRServerPlugin {
840
846
  files: {},
841
847
  maps: {}
842
848
  };
843
- stats.assets.forEach((asset) => {
849
+ for (const asset of stats.assets) {
844
850
  if (isJS(asset.name)) {
845
851
  const queryPart = extractQueryPartJS(asset.name);
846
852
  if (queryPart !== void 0) {
@@ -853,7 +859,7 @@ class VueSSRServerPlugin {
853
859
  } else {
854
860
  delete assets[asset.name];
855
861
  }
856
- });
862
+ }
857
863
  const src = JSON.stringify(bundle, null, 2);
858
864
  assets[this.options.filename] = {
859
865
  source: () => src,
@@ -1239,7 +1245,7 @@ async function compile(compiler) {
1239
1245
  if (nuxt.options.dev) {
1240
1246
  const compilersWatching = [];
1241
1247
  nuxt.hook("close", async () => {
1242
- await Promise.all(compilersWatching.map((watching) => pify(watching.close.bind(watching))()));
1248
+ await Promise.all(compilersWatching.map((watching) => watching && pify(watching.close.bind(watching))()));
1243
1249
  });
1244
1250
  if (compiler.options.name === "client") {
1245
1251
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -32,15 +32,15 @@
32
32
  "css-minimizer-webpack-plugin": "^7.0.2",
33
33
  "cssnano": "^7.1.1",
34
34
  "defu": "^6.1.4",
35
- "esbuild-loader": "^4.3.0",
35
+ "esbuild-loader": "^4.4.0",
36
36
  "escape-string-regexp": "^5.0.0",
37
37
  "file-loader": "^6.2.0",
38
38
  "fork-ts-checker-webpack-plugin": "^9.1.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
  "mini-css-extract-plugin": "^2.9.4",
45
45
  "ohash": "^2.0.11",
46
46
  "pathe": "^2.0.3",
@@ -53,28 +53,28 @@
53
53
  "pug-plain-loader": "^1.1.0",
54
54
  "std-env": "^3.9.0",
55
55
  "time-fix-plugin": "^2.0.7",
56
- "tinyglobby": "^0.2.14",
56
+ "tinyglobby": "^0.2.15",
57
57
  "ufo": "^1.6.1",
58
- "unenv": "^2.0.0-rc.19",
58
+ "unenv": "^2.0.0-rc.21",
59
59
  "unplugin": "^2.3.10",
60
60
  "url-loader": "^4.1.1",
61
- "vue-bundle-renderer": "^2.1.2",
61
+ "vue-bundle-renderer": "^2.2.0",
62
62
  "vue-loader": "^17.4.2",
63
- "webpack": "^5.101.3",
63
+ "webpack": "^5.102.0",
64
64
  "webpack-bundle-analyzer": "^4.10.2",
65
- "webpack-dev-middleware": "^7.4.2",
65
+ "webpack-dev-middleware": "^7.4.5",
66
66
  "webpack-hot-middleware": "^2.26.1",
67
67
  "webpackbar": "^7.0.0",
68
- "@nuxt/kit": "4.1.1"
68
+ "@nuxt/kit": "4.1.3"
69
69
  },
70
70
  "devDependencies": {
71
- "@rspack/core": "1.5.2",
71
+ "@rspack/core": "1.5.8",
72
72
  "@types/webpack-bundle-analyzer": "4.7.0",
73
73
  "@types/webpack-hot-middleware": "2.25.10",
74
- "rollup": "4.50.0",
74
+ "rollup": "4.52.4",
75
75
  "unbuild": "3.6.1",
76
- "vue": "3.5.20",
77
- "@nuxt/schema": "4.1.1"
76
+ "vue": "3.5.22",
77
+ "@nuxt/schema": "4.1.3"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "vue": "^3.3.4"