@nuxt/webpack-builder-nightly 5.0.0-29784606.774ee8f9 → 5.0.0-29785708.8701ff30

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 +3 -2
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -136,10 +136,11 @@ function parseModuleId(id) {
136
136
  search: id.slice(qIndex)
137
137
  };
138
138
  }
139
+ /** Matches module IDs for Vue files (ignoring query strings). */
140
+ const VUE_ID_RE = /\.vue(?:\?|$)/;
139
141
  //#endregion
140
142
  //#region src/plugins/ssr-styles.ts
141
143
  const CSS_URL_RE = /url\((['"]?)(\/[^)]+?)\1\)/g;
142
- const isVueFile = (id) => /\.vue(?:\?|$)/.test(id);
143
144
  const isCSSLike = (name) => /\.(?:css|scss|sass|less|styl(?:us)?|postcss|pcss)(?:\?|$)/.test(name);
144
145
  function normalizePath(nuxt, id) {
145
146
  if (!id) return null;
@@ -321,7 +322,7 @@ var SSRStylesPlugin = class {
321
322
  }
322
323
  for (const module of compilation.modules) {
323
324
  const resource = module.resource;
324
- if (!resource || !isVueFile(resource)) continue;
325
+ if (!resource || !VUE_ID_RE.test(resource)) continue;
325
326
  const rel = normalizePath(this.nuxt, resource);
326
327
  if (!rel) continue;
327
328
  if (collected.has(rel)) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder-nightly",
3
- "version": "5.0.0-29784606.774ee8f9",
3
+ "version": "5.0.0-29785708.8701ff30",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
27
- "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29784606.774ee8f9",
27
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29785708.8701ff30",
28
28
  "@vue/compiler-sfc": "3.5.41",
29
29
  "autoprefixer": "^10.5.4",
30
30
  "css-loader": "^7.1.4",
@@ -65,7 +65,7 @@
65
65
  "webpackbar": "^7.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29784606.774ee8f9",
68
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29785708.8701ff30",
69
69
  "@rspack/core": "2.1.10",
70
70
  "@types/hash-sum": "1.0.2",
71
71
  "@types/webpack-bundle-analyzer": "4.7.0",
@@ -77,7 +77,7 @@
77
77
  "vue": "^3.5.41"
78
78
  },
79
79
  "peerDependencies": {
80
- "nuxt": "npm:nuxt-nightly@5.0.0-29784606.774ee8f9",
80
+ "nuxt": "npm:nuxt-nightly@5.0.0-29785708.8701ff30",
81
81
  "vue": "^3.3.4"
82
82
  },
83
83
  "engines": {