nitro-nightly 3.0.1-20260121-181105-22bd0c63 → 3.0.1-20260121-183513-28f908a5
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/_build/common.mjs +5 -5
- package/dist/_libs/c12+giget+readdirp+chokidar.d.mts +31 -31
- package/dist/_libs/commondir+is-reference.mjs +1 -1
- package/dist/_libs/compatx.d.mts +2 -2
- package/dist/_libs/hasown+resolve+deepmerge.mjs +1 -1
- package/dist/_libs/magic-string.d.mts +99 -99
- package/dist/_libs/mlly.d.mts +25 -25
- package/dist/_libs/plugin-alias.mjs +1 -1
- package/dist/_libs/plugin-inject.mjs +1 -1
- package/dist/_libs/plugin-json.mjs +1 -1
- package/dist/_libs/pluginutils+plugin-commonjs.d.mts +192 -192
- package/dist/_libs/unplugin+unimport.d.mts +159 -159
- package/dist/_libs/unwasm.d.mts +14 -14
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +1 -2
- package/dist/presets/bun/runtime/bun.mjs +3 -4
- package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +6 -7
- package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +2 -3
- package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +2 -3
- package/dist/presets/deno/runtime/deno-deploy.mjs +2 -3
- package/dist/presets/deno/runtime/deno-server.mjs +1 -2
- package/dist/presets/node/runtime/node-cluster.mjs +1 -2
- package/dist/presets/node/runtime/node-middleware.mjs +1 -2
- package/dist/presets/node/runtime/node-server.mjs +1 -2
- package/dist/runtime/internal/vite/dev-entry.mjs +1 -2
- package/dist/runtime/virtual/feature-flags.d.mts +0 -1
- package/dist/runtime/virtual/feature-flags.mjs +0 -1
- package/dist/types/index.d.mts +828 -827
- package/dist/vite.d.mts +13 -13
- package/package.json +1 -1
package/dist/_build/common.mjs
CHANGED
|
@@ -17408,7 +17408,8 @@ function baseBuildConfig(nitro) {
|
|
|
17408
17408
|
client: false,
|
|
17409
17409
|
baseURL: nitro.options.baseURL,
|
|
17410
17410
|
_asyncContext: nitro.options.experimental.asyncContext,
|
|
17411
|
-
_tasks: nitro.options.experimental.tasks
|
|
17411
|
+
_tasks: nitro.options.experimental.tasks,
|
|
17412
|
+
_websocket: nitro.options.features.websocket ?? nitro.options.experimental.websocket
|
|
17412
17413
|
};
|
|
17413
17414
|
const replacements = {
|
|
17414
17415
|
...Object.fromEntries(Object.entries(importMetaInjections).map(([key, val]) => [`import.meta.${key}`, JSON.stringify(val)])),
|
|
@@ -17571,8 +17572,7 @@ function featureFlags(nitro) {
|
|
|
17571
17572
|
hasRoutedMiddleware: nitro.routing.routedMiddleware.hasRoutes(),
|
|
17572
17573
|
hasGlobalMiddleware: nitro.routing.globalMiddleware.length > 0,
|
|
17573
17574
|
hasPlugins: nitro.options.plugins.length > 0,
|
|
17574
|
-
hasHooks: nitro.options.features?.runtimeHooks ?? nitro.options.plugins.length > 0
|
|
17575
|
-
hasWebSocket: nitro.options.features?.websocket ?? nitro.options.experimental.websocket ?? false
|
|
17575
|
+
hasHooks: nitro.options.features?.runtimeHooks ?? nitro.options.plugins.length > 0
|
|
17576
17576
|
};
|
|
17577
17577
|
return Object.entries(featureFlags).map(([key, value]) => `export const ${key} = ${Boolean(value)};`).join("\n");
|
|
17578
17578
|
}
|
|
@@ -18268,7 +18268,7 @@ function walk(ast, { enter, leave }) {
|
|
|
18268
18268
|
}
|
|
18269
18269
|
|
|
18270
18270
|
//#endregion
|
|
18271
|
-
//#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.55.
|
|
18271
|
+
//#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.55.3/node_modules/@rollup/pluginutils/dist/es/index.js
|
|
18272
18272
|
const extractors = {
|
|
18273
18273
|
ArrayPattern(names, param) {
|
|
18274
18274
|
for (const element of param.elements) if (element) extractors[element.type](names, element);
|
|
@@ -18502,7 +18502,7 @@ const dataToEsm = function dataToEsm(data$1, options = {}) {
|
|
|
18502
18502
|
};
|
|
18503
18503
|
|
|
18504
18504
|
//#endregion
|
|
18505
|
-
//#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.55.
|
|
18505
|
+
//#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.55.3/node_modules/@rollup/plugin-replace/dist/es/index.js
|
|
18506
18506
|
function escape(str) {
|
|
18507
18507
|
return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
18508
18508
|
}
|
|
@@ -68,31 +68,31 @@ interface DownloadTemplateOptions {
|
|
|
68
68
|
//#region src/dotenv.d.ts
|
|
69
69
|
interface DotenvOptions {
|
|
70
70
|
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
75
|
cwd?: string;
|
|
76
76
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
81
|
fileName?: string | string[];
|
|
82
82
|
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
92
|
interpolate?: boolean;
|
|
93
93
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
* An object describing environment variables (key, value pairs).
|
|
95
|
+
*/
|
|
96
96
|
env?: NodeJS.ProcessEnv;
|
|
97
97
|
}
|
|
98
98
|
declare global {
|
|
@@ -118,22 +118,22 @@ interface SourceOptions<T extends UserInputConfig = UserInputConfig, MT extends
|
|
|
118
118
|
overrides?: T;
|
|
119
119
|
[key: string]: any;
|
|
120
120
|
/**
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
* Options for cloning remote sources
|
|
122
|
+
*
|
|
123
|
+
* @see https://giget.unjs.io
|
|
124
|
+
*/
|
|
125
125
|
giget?: DownloadTemplateOptions;
|
|
126
126
|
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
* Install dependencies after cloning
|
|
128
|
+
*
|
|
129
|
+
* @see https://nypm.unjs.io
|
|
130
|
+
*/
|
|
131
131
|
install?: boolean;
|
|
132
132
|
/**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
* Token for cloning private sources
|
|
134
|
+
*
|
|
135
|
+
* @see https://giget.unjs.io#providing-token-for-private-repositories
|
|
136
|
+
*/
|
|
137
137
|
auth?: string;
|
|
138
138
|
}
|
|
139
139
|
interface ConfigLayer<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
|
|
@@ -52,7 +52,7 @@ var require_is_reference = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
52
52
|
}));
|
|
53
53
|
|
|
54
54
|
//#endregion
|
|
55
|
-
//#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.55.
|
|
55
|
+
//#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.55.3/node_modules/@rollup/plugin-commonjs/dist/es/index.js
|
|
56
56
|
var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1);
|
|
57
57
|
var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1);
|
|
58
58
|
var version = "29.0.0";
|
package/dist/_libs/compatx.d.mts
CHANGED
|
@@ -32,8 +32,8 @@ type DateString = "" | "latest" | `${Year}-${Month}-${Day}`;
|
|
|
32
32
|
*/
|
|
33
33
|
type CompatibilityDates = {
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
* Default compatibility date for all unspecified platforms (required)
|
|
36
|
+
*/
|
|
37
37
|
default: DateString;
|
|
38
38
|
} & Partial<Record<PlatformName, DateString>>;
|
|
39
39
|
/**
|
|
@@ -1113,7 +1113,7 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1113
1113
|
}));
|
|
1114
1114
|
|
|
1115
1115
|
//#endregion
|
|
1116
|
-
//#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.55.
|
|
1116
|
+
//#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.55.3/node_modules/@rollup/plugin-node-resolve/dist/es/index.js
|
|
1117
1117
|
var import_cjs = /* @__PURE__ */ __toESM(require_cjs(), 1);
|
|
1118
1118
|
var import_is_module = /* @__PURE__ */ __toESM(require_is_module(), 1);
|
|
1119
1119
|
var import_resolve = /* @__PURE__ */ __toESM(require_resolve(), 1);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
//#region node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts
|
|
2
2
|
interface SourceMapOptions {
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
* Whether the mapping should be high-resolution.
|
|
5
|
+
* Hi-res mappings map every single character, meaning (for example) your devtools will always
|
|
6
|
+
* be able to pinpoint the exact location of function calls and so on.
|
|
7
|
+
* With lo-res mappings, devtools may only be able to identify the correct
|
|
8
|
+
* line - but they're quicker to generate and less bulky.
|
|
9
|
+
* You can also set `"boundary"` to generate a semi-hi-res mappings segmented per word boundary
|
|
10
|
+
* instead of per character, suitable for string semantics that are separated by words.
|
|
11
|
+
* If sourcemap locations have been specified with s.addSourceMapLocation(), they will be used here.
|
|
12
|
+
*/
|
|
13
13
|
hires?: boolean | 'boundary';
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* The filename where you plan to write the sourcemap.
|
|
16
|
+
*/
|
|
17
17
|
file?: string;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* The filename of the file containing the original source.
|
|
20
|
+
*/
|
|
21
21
|
source?: string;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
* Whether to include the original content in the map's sourcesContent array.
|
|
24
|
+
*/
|
|
25
25
|
includeContent?: boolean;
|
|
26
26
|
}
|
|
27
27
|
type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
|
|
@@ -44,13 +44,13 @@ declare class SourceMap {
|
|
|
44
44
|
x_google_ignoreList?: number[];
|
|
45
45
|
debugId?: string;
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
* Returns the equivalent of `JSON.stringify(map)`
|
|
48
|
+
*/
|
|
49
49
|
toString(): string;
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
* Returns a DataURI containing the sourcemap. Useful for doing this sort of thing:
|
|
52
|
+
* `generateMap(options?: SourceMapOptions): SourceMap;`
|
|
53
|
+
*/
|
|
54
54
|
toUrl(): string;
|
|
55
55
|
}
|
|
56
56
|
type ExclusionRange = [number, number];
|
|
@@ -74,145 +74,145 @@ interface UpdateOptions {
|
|
|
74
74
|
declare class MagicString {
|
|
75
75
|
constructor(str: string, options?: MagicStringOptions);
|
|
76
76
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
* Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
|
|
78
|
+
*/
|
|
79
79
|
addSourcemapLocation(char: number): void;
|
|
80
80
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
* Appends the specified content to the end of the string.
|
|
82
|
+
*/
|
|
83
83
|
append(content: string): this;
|
|
84
84
|
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
* Appends the specified content at the index in the original string.
|
|
86
|
+
* If a range *ending* with index is subsequently moved, the insert will be moved with it.
|
|
87
|
+
* See also `s.prependLeft(...)`.
|
|
88
|
+
*/
|
|
89
89
|
appendLeft(index: number, content: string): this;
|
|
90
90
|
/**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
* Appends the specified content at the index in the original string.
|
|
92
|
+
* If a range *starting* with index is subsequently moved, the insert will be moved with it.
|
|
93
|
+
* See also `s.prependRight(...)`.
|
|
94
|
+
*/
|
|
95
95
|
appendRight(index: number, content: string): this;
|
|
96
96
|
/**
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
* Does what you'd expect.
|
|
98
|
+
*/
|
|
99
99
|
clone(): this;
|
|
100
100
|
/**
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
* Generates a version 3 sourcemap.
|
|
102
|
+
*/
|
|
103
103
|
generateMap(options?: SourceMapOptions): SourceMap;
|
|
104
104
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
* Generates a sourcemap object with raw mappings in array form, rather than encoded as a string.
|
|
106
|
+
* Useful if you need to manipulate the sourcemap further, but most of the time you will use `generateMap` instead.
|
|
107
|
+
*/
|
|
108
108
|
generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
|
|
109
109
|
getIndentString(): string;
|
|
110
110
|
/**
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
* Prefixes each line of the string with prefix.
|
|
112
|
+
* If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
|
|
113
|
+
*/
|
|
114
114
|
indent(options?: IndentOptions): this;
|
|
115
115
|
/**
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
116
|
+
* Prefixes each line of the string with prefix.
|
|
117
|
+
* If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
|
|
118
|
+
*
|
|
119
|
+
* The options argument can have an exclude property, which is an array of [start, end] character ranges.
|
|
120
|
+
* These ranges will be excluded from the indentation - useful for (e.g.) multiline strings.
|
|
121
|
+
*/
|
|
122
122
|
indent(indentStr?: string, options?: IndentOptions): this;
|
|
123
123
|
indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
|
|
124
124
|
/**
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
* Moves the characters from `start` and `end` to `index`.
|
|
126
|
+
*/
|
|
127
127
|
move(start: number, end: number, index: number): this;
|
|
128
128
|
/**
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
* Replaces the characters from `start` to `end` with `content`, along with the appended/prepended content in
|
|
130
|
+
* that range. The same restrictions as `s.remove()` apply.
|
|
131
|
+
*
|
|
132
|
+
* The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
|
|
133
|
+
* for later inclusion in a sourcemap's names array — and a contentOnly property which determines whether only
|
|
134
|
+
* the content is overwritten, or anything that was appended/prepended to the range as well.
|
|
135
|
+
*
|
|
136
|
+
* It may be preferred to use `s.update(...)` instead if you wish to avoid overwriting the appended/prepended content.
|
|
137
|
+
*/
|
|
138
138
|
overwrite(start: number, end: number, content: string, options?: boolean | OverwriteOptions): this;
|
|
139
139
|
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
* Replaces the characters from `start` to `end` with `content`. The same restrictions as `s.remove()` apply.
|
|
141
|
+
*
|
|
142
|
+
* The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
|
|
143
|
+
* for later inclusion in a sourcemap's names array — and an overwrite property which determines whether only
|
|
144
|
+
* the content is overwritten, or anything that was appended/prepended to the range as well.
|
|
145
|
+
*/
|
|
146
146
|
update(start: number, end: number, content: string, options?: boolean | UpdateOptions): this;
|
|
147
147
|
/**
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
* Prepends the string with the specified content.
|
|
149
|
+
*/
|
|
150
150
|
prepend(content: string): this;
|
|
151
151
|
/**
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
* Same as `s.appendLeft(...)`, except that the inserted content will go *before* any previous appends or prepends at index
|
|
153
|
+
*/
|
|
154
154
|
prependLeft(index: number, content: string): this;
|
|
155
155
|
/**
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
* Same as `s.appendRight(...)`, except that the inserted content will go *before* any previous appends or prepends at `index`
|
|
157
|
+
*/
|
|
158
158
|
prependRight(index: number, content: string): this;
|
|
159
159
|
/**
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
* Removes the characters from `start` to `end` (of the original string, **not** the generated string).
|
|
161
|
+
* Removing the same content twice, or making removals that partially overlap, will cause an error.
|
|
162
|
+
*/
|
|
163
163
|
remove(start: number, end: number): this;
|
|
164
164
|
/**
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
* Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
|
|
166
|
+
*/
|
|
167
167
|
reset(start: number, end: number): this;
|
|
168
168
|
/**
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
* Returns the content of the generated string that corresponds to the slice between `start` and `end` of the original string.
|
|
170
|
+
* Throws error if the indices are for characters that were already removed.
|
|
171
|
+
*/
|
|
172
172
|
slice(start: number, end: number): string;
|
|
173
173
|
/**
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
* Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
|
|
175
|
+
*/
|
|
176
176
|
snip(start: number, end: number): this;
|
|
177
177
|
/**
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end.
|
|
179
|
+
*/
|
|
180
180
|
trim(charType?: string): this;
|
|
181
181
|
/**
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start.
|
|
183
|
+
*/
|
|
184
184
|
trimStart(charType?: string): this;
|
|
185
185
|
/**
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end.
|
|
187
|
+
*/
|
|
188
188
|
trimEnd(charType?: string): this;
|
|
189
189
|
/**
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
* Removes empty lines from the start and end.
|
|
191
|
+
*/
|
|
192
192
|
trimLines(): this;
|
|
193
193
|
/**
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
* String replacement with RegExp or string.
|
|
195
|
+
*/
|
|
196
196
|
replace(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): this;
|
|
197
197
|
/**
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
* Same as `s.replace`, but replace all matched strings instead of just one.
|
|
199
|
+
*/
|
|
200
200
|
replaceAll(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): this;
|
|
201
201
|
lastChar(): string;
|
|
202
202
|
lastLine(): string;
|
|
203
203
|
/**
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
* Returns true if the resulting source is empty (disregarding white space).
|
|
205
|
+
*/
|
|
206
206
|
isEmpty(): boolean;
|
|
207
207
|
length(): number;
|
|
208
208
|
/**
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
* Indicates if the string has been changed.
|
|
210
|
+
*/
|
|
211
211
|
hasChanged(): boolean;
|
|
212
212
|
original: string;
|
|
213
213
|
/**
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
* Returns the generated string.
|
|
215
|
+
*/
|
|
216
216
|
toString(): string;
|
|
217
217
|
offset: number;
|
|
218
218
|
}
|
package/dist/_libs/mlly.d.mts
CHANGED
|
@@ -4,49 +4,49 @@
|
|
|
4
4
|
*/
|
|
5
5
|
interface ESMExport {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* Optional explicit type for complex scenarios, often used internally.
|
|
8
|
+
* @optional
|
|
9
|
+
*/
|
|
10
10
|
_type?: "declaration" | "named" | "default" | "star";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* The type of export (declaration, named, default or star).
|
|
13
|
+
*/
|
|
14
14
|
type: "declaration" | "named" | "default" | "star";
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
* The specific type of declaration being exported, if applicable.
|
|
17
|
+
* @optional
|
|
18
|
+
*/
|
|
19
19
|
declarationType?: "let" | "var" | "const" | "enum" | "const enum" | "class" | "function" | "async function";
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* The full code snippet of the export statement.
|
|
22
|
+
*/
|
|
23
23
|
code: string;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* The starting position (index) of the export declaration in the source code.
|
|
26
|
+
*/
|
|
27
27
|
start: number;
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
* The end position (index) of the export declaration in the source code.
|
|
30
|
+
*/
|
|
31
31
|
end: number;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
* The name of the variable, function or class being exported, if given explicitly.
|
|
34
|
+
* @optional
|
|
35
|
+
*/
|
|
36
36
|
name?: string;
|
|
37
37
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
* The name used for default exports when a specific identifier isn't given.
|
|
39
|
+
* @optional
|
|
40
|
+
*/
|
|
41
41
|
defaultName?: string;
|
|
42
42
|
/**
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
* An array of names to export, applicable to named and destructured exports.
|
|
44
|
+
*/
|
|
45
45
|
names: string[];
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
* The module specifier, if any, from which exports are being re-exported.
|
|
48
|
+
* @optional
|
|
49
|
+
*/
|
|
50
50
|
specifier?: string;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "../_common.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
|
-
//#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.55.
|
|
4
|
+
//#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.55.3/node_modules/@rollup/plugin-alias/dist/index.js
|
|
5
5
|
var dist_exports = /* @__PURE__ */ __exportAll({ default: () => alias });
|
|
6
6
|
function matches(pattern, importee) {
|
|
7
7
|
if (pattern instanceof RegExp) return pattern.test(importee);
|
|
@@ -2,7 +2,7 @@ import { n as __exportAll } from "../_common.mjs";
|
|
|
2
2
|
import { S as MagicString, c as walk, i as createFilter, r as attachScopes, s as makeLegalIdentifier } from "../_build/common.mjs";
|
|
3
3
|
import { sep } from "path";
|
|
4
4
|
|
|
5
|
-
//#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.55.
|
|
5
|
+
//#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.55.3/node_modules/@rollup/plugin-inject/dist/es/index.js
|
|
6
6
|
var es_exports = /* @__PURE__ */ __exportAll({ default: () => inject });
|
|
7
7
|
var escape = function(str) {
|
|
8
8
|
return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dataToEsm, i as createFilter } from "../_build/common.mjs";
|
|
2
2
|
|
|
3
|
-
//#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.55.
|
|
3
|
+
//#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.55.3/node_modules/@rollup/plugin-json/dist/es/index.js
|
|
4
4
|
function json(options) {
|
|
5
5
|
if (options === void 0) options = {};
|
|
6
6
|
var filter = createFilter(options.include, options.exclude);
|