@nuxt/webpack-builder 3.20.2 → 3.21.1

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 (33) hide show
  1. package/README.md +5 -3
  2. package/dist/THIRD-PARTY-LICENSES.md +3847 -0
  3. package/dist/_chunks/libs/@babel/parser.d.mts +1536 -0
  4. package/dist/_chunks/libs/@jridgewell/trace-mapping.d.mts +82 -0
  5. package/dist/_chunks/libs/@types/estree.d.mts +525 -0
  6. package/dist/_chunks/libs/@types/pug.d.mts +123 -0
  7. package/dist/_chunks/libs/@unhead/vue.d.mts +1096 -0
  8. package/dist/_chunks/libs/@vitejs/plugin-vue-jsx.d.mts +5297 -0
  9. package/dist/_chunks/libs/@vitejs/plugin-vue.d.mts +83 -0
  10. package/dist/_chunks/libs/@volar/language-core.d.mts +56 -0
  11. package/dist/_chunks/libs/@volar/source-map.d.mts +10 -0
  12. package/dist/_chunks/libs/@vue/compiler-core.d.mts +1213 -0
  13. package/dist/_chunks/libs/@vue/compiler-dom.d.mts +45 -0
  14. package/dist/_chunks/libs/@vue/language-core.d.mts +11387 -0
  15. package/dist/_chunks/libs/c12.d.mts +147 -0
  16. package/dist/_chunks/libs/compatx.d.mts +47 -0
  17. package/dist/_chunks/libs/h3.d.mts +45 -0
  18. package/dist/_chunks/libs/ofetch.d.mts +870 -0
  19. package/dist/_chunks/libs/open.d.mts +1 -0
  20. package/dist/_chunks/libs/oxc-transform.d.mts +422 -0
  21. package/dist/_chunks/libs/pkg-types.d.mts +23 -0
  22. package/dist/_chunks/libs/rollup-plugin-visualizer.d.mts +90 -0
  23. package/dist/_chunks/libs/scule.d.mts +15 -0
  24. package/dist/_chunks/libs/unctx.d.mts +28 -0
  25. package/dist/_chunks/libs/unimport.d.mts +386 -0
  26. package/dist/_chunks/libs/untyped.d.mts +44 -0
  27. package/dist/_chunks/libs/vue-router.d.mts +1413 -0
  28. package/dist/_chunks/rolldown-runtime.mjs +12 -0
  29. package/dist/index.d.mts +3150 -4
  30. package/dist/index.mjs +1310 -1155
  31. package/dist/loaders/vue-module-identifier.mjs +11 -0
  32. package/package.json +31 -27
  33. package/dist/index.d.ts +0 -5
@@ -0,0 +1,147 @@
1
+ import { Stats } from "node:fs";
2
+ import "jiti";
3
+ import { EventEmitter } from "node:events";
4
+ import { Readable } from "node:stream";
5
+ import "ohash/utils";
6
+
7
+ //#region ../../node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.ts
8
+ type AWF = {
9
+ stabilityThreshold: number;
10
+ pollInterval: number;
11
+ };
12
+ type BasicOpts = {
13
+ persistent: boolean;
14
+ ignoreInitial: boolean;
15
+ followSymlinks: boolean;
16
+ cwd?: string;
17
+ usePolling: boolean;
18
+ interval: number;
19
+ binaryInterval: number;
20
+ alwaysStat?: boolean;
21
+ depth?: number;
22
+ ignorePermissionErrors: boolean;
23
+ atomic: boolean | number;
24
+ };
25
+ type ChokidarOptions = Partial<BasicOpts & {
26
+ ignored: Matcher | Matcher[];
27
+ awaitWriteFinish: boolean | Partial<AWF>;
28
+ }>;
29
+ type MatchFunction = (val: string, stats?: Stats) => boolean;
30
+ interface MatcherObject {
31
+ path: string;
32
+ recursive?: boolean;
33
+ }
34
+ type Matcher = string | RegExp | MatchFunction | MatcherObject;
35
+ //#endregion
36
+ //#region ../../node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.d.mts
37
+ interface TemplateInfo {
38
+ name: string;
39
+ tar: string;
40
+ version?: string;
41
+ subdir?: string;
42
+ url?: string;
43
+ defaultDir?: string;
44
+ headers?: Record<string, string | undefined>;
45
+ source?: never;
46
+ dir?: never;
47
+ [key: string]: any;
48
+ }
49
+ type TemplateProvider = (input: string, options: {
50
+ auth?: string;
51
+ }) => TemplateInfo | Promise<TemplateInfo> | null;
52
+ interface DownloadTemplateOptions {
53
+ provider?: string;
54
+ force?: boolean;
55
+ forceClean?: boolean;
56
+ offline?: boolean;
57
+ preferOffline?: boolean;
58
+ providers?: Record<string, TemplateProvider>;
59
+ dir?: string;
60
+ registry?: false | string;
61
+ cwd?: string;
62
+ auth?: string;
63
+ install?: boolean;
64
+ silent?: boolean;
65
+ }
66
+ //#endregion
67
+ //#region ../../node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.d.mts
68
+ //#region src/dotenv.d.ts
69
+ interface DotenvOptions {
70
+ /**
71
+ * The project root directory (either absolute or relative to the current working directory).
72
+ *
73
+ * Defaults to `options.cwd` in `loadConfig` context, or `process.cwd()` when used as standalone.
74
+ */
75
+ cwd?: string;
76
+ /**
77
+ * What file or files to look in for environment variables (either absolute or relative
78
+ * to the current working directory). For example, `.env`.
79
+ * With the array type, the order enforce the env loading priority (last one overrides).
80
+ */
81
+ fileName?: string | string[];
82
+ /**
83
+ * Whether to interpolate variables within .env.
84
+ *
85
+ * @example
86
+ * ```env
87
+ * BASE_DIR="/test"
88
+ * # resolves to "/test/further"
89
+ * ANOTHER_DIR="${BASE_DIR}/further"
90
+ * ```
91
+ */
92
+ interpolate?: boolean;
93
+ /**
94
+ * An object describing environment variables (key, value pairs).
95
+ */
96
+ env?: NodeJS.ProcessEnv;
97
+ }
98
+ declare global {
99
+ var __c12_dotenv_vars__: Map<Record<string, any>, Set<string>>;
100
+ } //#endregion
101
+ //#region src/types.d.ts
102
+ interface ConfigLayerMeta {
103
+ name?: string;
104
+ [key: string]: any;
105
+ }
106
+ type UserInputConfig = Record<string, any>;
107
+ interface SourceOptions<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
108
+ /** Custom meta for layer */
109
+ meta?: MT;
110
+ /** Layer config overrides */
111
+ overrides?: T;
112
+ [key: string]: any;
113
+ /**
114
+ * Options for cloning remote sources
115
+ *
116
+ * @see https://giget.unjs.io
117
+ */
118
+ giget?: DownloadTemplateOptions;
119
+ /**
120
+ * Install dependencies after cloning
121
+ *
122
+ * @see https://nypm.unjs.io
123
+ */
124
+ install?: boolean;
125
+ /**
126
+ * Token for cloning private sources
127
+ *
128
+ * @see https://giget.unjs.io#providing-token-for-private-repositories
129
+ */
130
+ auth?: string;
131
+ }
132
+ interface ConfigLayer<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
133
+ config: T | null;
134
+ source?: string;
135
+ sourceOptions?: SourceOptions<T, MT>;
136
+ meta?: MT;
137
+ cwd?: string;
138
+ configFile?: string;
139
+ }
140
+ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> extends ConfigLayer<T, MT> {
141
+ config: T;
142
+ layers?: ConfigLayer<T, MT>[];
143
+ cwd?: string;
144
+ _configFile?: string;
145
+ }
146
+ //#endregion
147
+ export { ChokidarOptions as i, ResolvedConfig as n, SourceOptions as r, DotenvOptions as t };
@@ -0,0 +1,47 @@
1
+ //#region ../../node_modules/.pnpm/compatx@0.2.0/node_modules/compatx/dist/index.d.mts
2
+ /**
3
+ * Known platform names
4
+ */
5
+ declare const platforms: readonly ["aws", "azure", "cloudflare", "deno", "firebase", "netlify", "vercel"];
6
+ /**
7
+ * Known platform name
8
+ */
9
+ type PlatformName = (typeof platforms)[number] | (string & {});
10
+ /**
11
+ * Normalize the compatibility dates from input config and defaults.
12
+ */
13
+ type Year = `${number}${number}${number}${number}`;
14
+ type Month = `${"0" | "1"}${number}`;
15
+ type Day = `${"0" | "1" | "2" | "3"}${number}`;
16
+ /**
17
+ * Typed date string in `YYYY-MM-DD` format
18
+ *
19
+ * Empty string is used to represent an "unspecified" date.
20
+ *
21
+ * "latest" is used to represent the latest date available (date of today).
22
+ */
23
+ type DateString = "" | "latest" | `${Year}-${Month}-${Day}`;
24
+ /**
25
+ * Last known compatibility dates for platforms
26
+ *
27
+ * @example
28
+ * {
29
+ * "default": "2024-01-01",
30
+ * "cloudflare": "2024-03-01",
31
+ * }
32
+ */
33
+ type CompatibilityDates = {
34
+ /**
35
+ * Default compatibility date for all unspecified platforms (required)
36
+ */
37
+ default: DateString;
38
+ } & Partial<Record<PlatformName, DateString>>;
39
+ /**
40
+ * Last known compatibility date for the used platform
41
+ */
42
+ type CompatibilityDateSpec = DateString | Partial<CompatibilityDates>;
43
+ /**
44
+ * Get compatibility updates applicable for the user given platform and date range.
45
+ */
46
+ //#endregion
47
+ export { CompatibilityDateSpec as t };
@@ -0,0 +1,45 @@
1
+ import "ufo";
2
+ import { IncomingMessage, ServerResponse } from "node:http";
3
+ import { Readable } from "node:stream";
4
+
5
+ //#region ../../node_modules/.pnpm/h3@1.15.5/node_modules/h3/dist/index.d.ts
6
+ type HTTPMethod = "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE";
7
+ interface H3CorsOptions {
8
+ origin?: "*" | "null" | (string | RegExp)[] | ((origin: string) => boolean);
9
+ methods?: "*" | HTTPMethod[];
10
+ allowHeaders?: "*" | string[];
11
+ exposeHeaders?: "*" | string[];
12
+ credentials?: boolean;
13
+ maxAge?: string | false;
14
+ preflight?: {
15
+ statusCode?: number;
16
+ };
17
+ }
18
+ /**
19
+ * Handle CORS for the incoming request.
20
+ *
21
+ * If the incoming request is a CORS preflight request, it will append the CORS preflight headers and send a 204 response.
22
+ *
23
+ * If return value is `true`, the request is handled and no further action is needed.
24
+ *
25
+ * @example
26
+ * const app = createApp();
27
+ * const router = createRouter();
28
+ * router.use('/',
29
+ * defineEventHandler(async (event) => {
30
+ * const didHandleCors = handleCors(event, {
31
+ * origin: '*',
32
+ * preflight: {
33
+ * statusCode: 204,
34
+ * },
35
+ * methods: '*',
36
+ * });
37
+ * if (didHandleCors) {
38
+ * return;
39
+ * }
40
+ * // Your code here
41
+ * })
42
+ * );
43
+ */
44
+ //#endregion
45
+ export { H3CorsOptions as t };