nuxt-nightly 4.2.0-29355117.904d4f6e → 4.2.0-29355156.c88e8bc6

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 +31 -22
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -3831,7 +3831,7 @@ function addDeclarationTemplates(ctx, options) {
3831
3831
  });
3832
3832
  }
3833
3833
 
3834
- const version = "4.2.0-29355117.904d4f6e";
3834
+ const version = "4.2.0-29355156.c88e8bc6";
3835
3835
 
3836
3836
  function createImportProtectionPatterns(nuxt, options) {
3837
3837
  const patterns = [];
@@ -4654,10 +4654,7 @@ function ResolveExternalsPlugin(nuxt) {
4654
4654
  return {
4655
4655
  name: "nuxt:resolve-externals",
4656
4656
  enforce: "pre",
4657
- async applyToEnvironment(environment) {
4658
- if (nuxt.options.dev || environment.name !== "ssr") {
4659
- return false;
4660
- }
4657
+ async config() {
4661
4658
  const { runtimeDependencies: runtimeNitroDependencies = [] } = await tryImportModule("nitropack/runtime/meta", {
4662
4659
  url: new URL(import.meta.url)
4663
4660
  }) || {};
@@ -4674,26 +4671,38 @@ function ResolveExternalsPlugin(nuxt) {
4674
4671
  // dependencies we might share with nitro - these can be inlined (if necessary) in the nitro build
4675
4672
  ...runtimeNitroDependencies
4676
4673
  ]);
4677
- return true;
4674
+ return {
4675
+ optimizeDeps: {
4676
+ exclude: Array.from(external)
4677
+ }
4678
+ };
4678
4679
  },
4679
- async resolveId(id, importer) {
4680
- if (!external.has(id)) {
4681
- return;
4680
+ applyToEnvironment(environment) {
4681
+ if (nuxt.options.dev || environment.name !== "ssr") {
4682
+ return false;
4682
4683
  }
4683
- const res = await this.resolve?.(id, importer, { skipSelf: true });
4684
- if (res !== void 0 && res !== null) {
4685
- if (res.id === id) {
4686
- res.id = resolveModulePath(res.id, {
4687
- try: true,
4688
- from: importer,
4689
- extensions: nuxt.options.extensions
4690
- }) || res.id;
4684
+ return {
4685
+ name: "nuxt:resolve-externals:external",
4686
+ async resolveId(id, importer) {
4687
+ if (!external.has(id)) {
4688
+ return;
4689
+ }
4690
+ const res = await this.resolve?.(id, importer, { skipSelf: true });
4691
+ if (res !== void 0 && res !== null) {
4692
+ if (res.id === id) {
4693
+ res.id = resolveModulePath(res.id, {
4694
+ try: true,
4695
+ from: importer,
4696
+ extensions: nuxt.options.extensions
4697
+ }) || res.id;
4698
+ }
4699
+ return {
4700
+ ...res,
4701
+ external: "absolute"
4702
+ };
4703
+ }
4691
4704
  }
4692
- return {
4693
- ...res,
4694
- external: "absolute"
4695
- };
4696
- }
4705
+ };
4697
4706
  }
4698
4707
  };
4699
4708
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.2.0-29355117.904d4f6e",
3
+ "version": "4.2.0-29355156.c88e8bc6",
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.0",
68
68
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
69
69
  "@nuxt/devtools": "^2.6.5",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29355117.904d4f6e",
71
- "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.0-29355117.904d4f6e",
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29355117.904d4f6e",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29355156.c88e8bc6",
71
+ "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.0-29355156.c88e8bc6",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29355156.c88e8bc6",
73
73
  "@nuxt/telemetry": "^2.6.6",
74
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29355117.904d4f6e",
74
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29355156.c88e8bc6",
75
75
  "@unhead/vue": "^2.0.19",
76
76
  "@vue/shared": "^3.5.22",
77
77
  "c12": "^3.3.1",