@nuxt/webpack-builder-nightly 4.5.2-29762776.d87d1578 → 4.5.2-29764015.2fb5ee82

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.
package/dist/index.mjs CHANGED
@@ -160,7 +160,9 @@ function normalizeCSSContent(css) {
160
160
  return css.trim().replace(/(--[^:]+):\s*'([^']*)'/g, "$1:\"$2\"").replace(/:\s+/g, ":").replace(/\s*\{\s*/g, "{").replace(/;\s*\}/g, "}").replace(/\s*\}\s*/g, "}");
161
161
  }
162
162
  function getVueLoaderScopeId(filePath, source, rootContext) {
163
- return getVueLoaderHash(`${normalize(relative(rootContext || process.cwd(), filePath).replace(/^(?:\.\.[/\\])+/, "")).replace(/\\/g, "/")}\n${source.replace(/\r\n/g, "\n")}`);
163
+ const rawShortFilePath = relative(rootContext || process.cwd(), filePath).replace(/^(?:\.\.[/\\])+/, "");
164
+ const shortFilePath = normalize(rawShortFilePath).replace(/\\/g, "/");
165
+ return getVueLoaderHash(`${shortFilePath}\n${source.replace(/\r\n/g, "\n")}`);
164
166
  }
165
167
  function extractVueStyles(filePath, rootContext) {
166
168
  try {
@@ -219,7 +221,8 @@ var SSRStylesPlugin = class {
219
221
  for (const dir of nitro.options.publicAssets) {
220
222
  const base = withTrailingSlash(dir.baseURL || "/");
221
223
  if (!url.startsWith(base)) continue;
222
- if (existsSync(cleaned.replace(base, withTrailingSlash(dir.dir)))) return true;
224
+ const path = cleaned.replace(base, withTrailingSlash(dir.dir));
225
+ if (existsSync(path)) return true;
223
226
  }
224
227
  return false;
225
228
  }
@@ -1337,7 +1340,7 @@ function clientDevtool(ctx) {
1337
1340
  }
1338
1341
  function clientPerformance(ctx) {
1339
1342
  ctx.config.performance = {
1340
- maxEntrypointSize: 1e3 * 1024,
1343
+ maxEntrypointSize: 1024e3,
1341
1344
  hints: ctx.isDev ? false : "warning",
1342
1345
  ...ctx.config.performance
1343
1346
  };
@@ -1521,8 +1524,10 @@ function serverStandalone(ctx) {
1521
1524
  }
1522
1525
  if (request[0] === "." || isAbsolute(request) || inline.find((prefix) => typeof prefix === "string" && request.startsWith(prefix)) || assetPattern.test(request)) return cb(void 0, false);
1523
1526
  if (context && request && !request.startsWith("node:") && (isAbsolute(context) || VIRTUAL_RE.test(context))) try {
1524
- const resolved = resolveModulePath(resolveAlias(normalize(request), ctx.nuxt.options.alias), {
1525
- from: [parseNodeModulePath(context).dir || ctx.nuxt.options.rootDir, ...ctx.nuxt.options.modulesDir].map((d) => directoryToURL(d)),
1527
+ const normalisedRequest = resolveAlias(normalize(request), ctx.nuxt.options.alias);
1528
+ const dir = parseNodeModulePath(context).dir || ctx.nuxt.options.rootDir;
1529
+ const resolved = resolveModulePath(normalisedRequest, {
1530
+ from: [dir, ...ctx.nuxt.options.modulesDir].map((d) => directoryToURL(d)),
1526
1531
  suffixes: ["", "index"],
1527
1532
  conditions,
1528
1533
  try: true
@@ -6,7 +6,8 @@ const vueModuleIdentifierLoader = function(source) {
6
6
  const resourcePath = this.resourcePath || this._module?.resource;
7
7
  if (!resourcePath || !source.includes("__exports__")) return source;
8
8
  const context = srcDir || this.rootContext || this.context || this._compiler?.options?.context;
9
- const moduleId = normalize(context ? relative(context, resourcePath) : resourcePath).replace(/^\.\//, "").replace(/\\/g, "/");
9
+ const relativePath = context ? relative(context, resourcePath) : resourcePath;
10
+ const moduleId = normalize(relativePath).replace(/^\.\//, "").replace(/\\/g, "/");
10
11
  return source + `\n;__exports__.__moduleIdentifier = ${JSON.stringify(moduleId)};`;
11
12
  };
12
13
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder-nightly",
3
- "version": "4.5.2-29762776.d87d1578",
3
+ "version": "4.5.2-29764015.2fb5ee82",
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@4.5.2-29762776.d87d1578",
27
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.5.2-29764015.2fb5ee82",
28
28
  "@vue/compiler-sfc": "3.5.40",
29
29
  "autoprefixer": "^10.5.4",
30
30
  "css-loader": "^7.1.4",
@@ -68,7 +68,7 @@
68
68
  "webpackbar": "^7.0.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.5.2-29762776.d87d1578",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.5.2-29764015.2fb5ee82",
72
72
  "@rspack/core": "2.1.7",
73
73
  "@types/hash-sum": "1.0.2",
74
74
  "@types/webpack-bundle-analyzer": "4.7.0",
@@ -80,7 +80,7 @@
80
80
  "vue": "^3.5.40"
81
81
  },
82
82
  "peerDependencies": {
83
- "nuxt": "npm:nuxt-nightly@4.5.2-29762776.d87d1578",
83
+ "nuxt": "npm:nuxt-nightly@4.5.2-29764015.2fb5ee82",
84
84
  "vue": "^3.3.4"
85
85
  },
86
86
  "engines": {