@nuxt/vite-builder-nightly 4.2.3-29430410.6b7fc747 → 4.2.3-29430444.708dbe51

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 -22
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -569,7 +569,6 @@ async function writeDevServer(nuxt) {
569
569
  }
570
570
 
571
571
  const PREFIX = "virtual:public?";
572
- const PREFIX_RE = /^virtual:public\?/;
573
572
  const CSS_URL_RE = /url\((\/[^)]+)\)/g;
574
573
  const CSS_URL_SINGLE_RE = /url\(\/[^)]+\)/;
575
574
  const RENDER_CHUNK_RE = /(?<= = )['"`]/;
@@ -607,21 +606,18 @@ const PublicDirsPlugin = (options) => {
607
606
  },
608
607
  load: {
609
608
  order: "pre",
610
- filter: {
611
- id: PREFIX_RE
612
- },
613
609
  handler(id) {
614
- return `import { publicAssetsURL } from '#internal/nuxt/paths';export default publicAssetsURL(${JSON.stringify(decodeURIComponent(id.slice(PREFIX.length)))})`;
610
+ if (id.startsWith(PREFIX)) {
611
+ return `import { publicAssetsURL } from '#internal/nuxt/paths';export default publicAssetsURL(${JSON.stringify(decodeURIComponent(id.slice(PREFIX.length)))})`;
612
+ }
615
613
  }
616
614
  },
617
615
  resolveId: {
618
616
  order: "post",
619
- filter: {
620
- id: {
621
- exclude: [/^\/__skip_vite$/, /^[^/]/, /^\/@fs/]
622
- }
623
- },
624
617
  handler(id) {
618
+ if (id === "/__skip_vite" || id[0] !== "/" || id.startsWith("/@fs")) {
619
+ return;
620
+ }
625
621
  if (resolveFromPublicAssets(id)) {
626
622
  return PREFIX + encodeURIComponent(id);
627
623
  }
@@ -1661,12 +1657,14 @@ function SSRStylesPlugin(nuxt) {
1661
1657
  if (options.shouldInline === false || typeof options.shouldInline === "function" && !options.shouldInline(importer)) {
1662
1658
  return;
1663
1659
  }
1664
- const res = await this.resolve(id, importer, { ..._options, skipSelf: true });
1665
- if (res) {
1666
- return {
1667
- ...res,
1668
- moduleSideEffects: false
1669
- };
1660
+ if (id === "#build/css" || id.endsWith(".vue") || isCSS(id)) {
1661
+ const res = await this.resolve(id, importer, { ..._options, skipSelf: true });
1662
+ if (res) {
1663
+ return {
1664
+ ...res,
1665
+ moduleSideEffects: false
1666
+ };
1667
+ }
1670
1668
  }
1671
1669
  }
1672
1670
  },
@@ -1989,12 +1987,7 @@ function EnvironmentsPlugin(nuxt) {
1989
1987
  {
1990
1988
  name: "nuxt:client:aliases",
1991
1989
  enforce: "post",
1992
- resolveId: {
1993
- filter: {
1994
- id: Object.keys(clientAliases).map((id) => new RegExp("^" + escapeStringRegexp(id) + "$"))
1995
- },
1996
- handler: (source) => clientAliases[source]
1997
- }
1990
+ resolveId: (source) => clientAliases[source]
1998
1991
  }
1999
1992
  ];
2000
1993
  } else if (environment.name === "ssr") ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/vite-builder-nightly",
3
- "version": "4.2.3-29430410.6b7fc747",
3
+ "version": "4.2.3-29430444.708dbe51",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -21,7 +21,7 @@
21
21
  "dist"
22
22
  ],
23
23
  "devDependencies": {
24
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.3-29430410.6b7fc747",
24
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.3-29430444.708dbe51",
25
25
  "nitropack": "2.12.9",
26
26
  "rolldown": "1.0.0-beta.53",
27
27
  "rollup": "4.53.3",
@@ -29,7 +29,7 @@
29
29
  "vue": "3.5.25"
30
30
  },
31
31
  "dependencies": {
32
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.3-29430410.6b7fc747",
32
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.3-29430444.708dbe51",
33
33
  "@rollup/plugin-replace": "^6.0.3",
34
34
  "@vitejs/plugin-vue": "^6.0.2",
35
35
  "@vitejs/plugin-vue-jsx": "^5.1.2",
@@ -61,7 +61,7 @@
61
61
  "vue-bundle-renderer": "^2.2.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "nuxt": "npm:nuxt-nightly@4.2.3-29430410.6b7fc747",
64
+ "nuxt": "npm:nuxt-nightly@4.2.3-29430444.708dbe51",
65
65
  "rolldown": "^1.0.0-beta.38",
66
66
  "vue": "^3.3.4"
67
67
  },