nuxt-nightly 4.2.3-29425737.7fd6b729 → 4.2.3-29426963.691e6887

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 +27 -31
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -3837,7 +3837,7 @@ function addDeclarationTemplates(ctx, options) {
3837
3837
  });
3838
3838
  }
3839
3839
 
3840
- const version = "4.2.3-29425737.7fd6b729";
3840
+ const version = "4.2.3-29426963.691e6887";
3841
3841
 
3842
3842
  function createImportProtectionPatterns(nuxt, options) {
3843
3843
  const patterns = [];
@@ -4026,6 +4026,30 @@ const LayerAliasingPlugin = (options) => createUnplugin((_options, meta) => {
4026
4026
  };
4027
4027
  }
4028
4028
  const layers = Object.keys(aliases).sort((a, b) => b.length - a.length);
4029
+ const nonViteTransformIncludes = (id) => {
4030
+ const _id = normalize(id);
4031
+ return layers.some((dir) => _id.startsWith(dir));
4032
+ };
4033
+ const nonViteTransform = {
4034
+ filter: {
4035
+ code: { include: ALIAS_RE_SINGLE }
4036
+ },
4037
+ handler(code, id) {
4038
+ const _id = normalize(id);
4039
+ const layer = layers.find((l) => _id.startsWith(l));
4040
+ if (!layer) {
4041
+ return;
4042
+ }
4043
+ const s = new MagicString(code);
4044
+ s.replace(ALIAS_RE, (r) => aliases[layer]?.[r] || r);
4045
+ if (s.hasChanged()) {
4046
+ return {
4047
+ code: s.toString(),
4048
+ map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
4049
+ };
4050
+ }
4051
+ }
4052
+ };
4029
4053
  return {
4030
4054
  name: "nuxt:layer-aliasing",
4031
4055
  enforce: "pre",
@@ -4048,36 +4072,8 @@ const LayerAliasingPlugin = (options) => createUnplugin((_options, meta) => {
4048
4072
  }
4049
4073
  },
4050
4074
  // webpack-only transform
4051
- transformInclude: (id) => {
4052
- if (meta.framework === "vite") {
4053
- return false;
4054
- }
4055
- const _id = normalize(id);
4056
- return layers.some((dir) => _id.startsWith(dir));
4057
- },
4058
- transform: {
4059
- filter: {
4060
- code: { include: ALIAS_RE_SINGLE }
4061
- },
4062
- handler(code, id) {
4063
- if (meta.framework === "vite") {
4064
- return;
4065
- }
4066
- const _id = normalize(id);
4067
- const layer = layers.find((l) => _id.startsWith(l));
4068
- if (!layer) {
4069
- return;
4070
- }
4071
- const s = new MagicString(code);
4072
- s.replace(ALIAS_RE, (r) => aliases[layer]?.[r] || r);
4073
- if (s.hasChanged()) {
4074
- return {
4075
- code: s.toString(),
4076
- map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
4077
- };
4078
- }
4079
- }
4080
- }
4075
+ transformInclude: meta.framework !== "vite" ? nonViteTransformIncludes : void 0,
4076
+ transform: meta.framework !== "vite" ? nonViteTransform : void 0
4081
4077
  };
4082
4078
  });
4083
4079
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.2.3-29425737.7fd6b729",
3
+ "version": "4.2.3-29426963.691e6887",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -67,11 +67,11 @@
67
67
  "@dxup/nuxt": "^0.2.2",
68
68
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
69
69
  "@nuxt/devtools": "^3.1.1",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.3-29425737.7fd6b729",
71
- "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.3-29425737.7fd6b729",
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.3-29425737.7fd6b729",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.3-29426963.691e6887",
71
+ "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.3-29426963.691e6887",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.3-29426963.691e6887",
73
73
  "@nuxt/telemetry": "^2.6.6",
74
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.3-29425737.7fd6b729",
74
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.3-29426963.691e6887",
75
75
  "@unhead/vue": "^2.0.19",
76
76
  "@vue/shared": "^3.5.25",
77
77
  "c12": "^3.3.2",