@nuxt/kit-nightly 4.2.0-29331084.23aa59d6 → 4.2.0-29331188.9ad35781

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.d.mts CHANGED
@@ -501,6 +501,8 @@ interface ResolveModuleOptions {
501
501
  /** @deprecated use `url` with URLs pointing at a file - never a directory */
502
502
  paths?: string | string[];
503
503
  url?: URL | URL[];
504
+ /** @default ['.js', '.mjs', '.cjs', '.ts', '.mts', '.cts'] */
505
+ extensions?: string[];
504
506
  }
505
507
  declare function directoryToURL(dir: string): URL;
506
508
  /**
package/dist/index.d.ts CHANGED
@@ -501,6 +501,8 @@ interface ResolveModuleOptions {
501
501
  /** @deprecated use `url` with URLs pointing at a file - never a directory */
502
502
  paths?: string | string[];
503
503
  url?: URL | URL[];
504
+ /** @default ['.js', '.mjs', '.cjs', '.ts', '.mts', '.cts'] */
505
+ extensions?: string[];
504
506
  }
505
507
  declare function directoryToURL(dir: string): URL;
506
508
  /**
package/dist/index.mjs CHANGED
@@ -235,7 +235,7 @@ function resolveModule(id, options) {
235
235
  return resolveModulePath(id, {
236
236
  // eslint-disable-next-line @typescript-eslint/no-deprecated
237
237
  from: options?.url ?? options?.paths ?? [import.meta.url],
238
- extensions: [".js", ".mjs", ".cjs", ".ts", ".mts", ".cts"]
238
+ extensions: options?.extensions ?? [".js", ".mjs", ".cjs", ".ts", ".mts", ".cts"]
239
239
  });
240
240
  }
241
241
  async function importModule(id, opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit-nightly",
3
- "version": "4.2.0-29331084.23aa59d6",
3
+ "version": "4.2.0-29331188.9ad35781",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -47,7 +47,7 @@
47
47
  "untyped": "^2.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29331084.23aa59d6",
50
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29331188.9ad35781",
51
51
  "@rspack/core": "1.5.8",
52
52
  "@types/semver": "7.7.1",
53
53
  "hookable": "5.5.3",