@voidzero-dev/vite-plus-core 0.1.2 → 0.1.4
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/rolldown/cli.mjs +619 -197
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +10 -11
- package/dist/rolldown/experimental-index.d.mts +20 -6
- package/dist/rolldown/experimental-index.mjs +24 -22
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/filter-index.mjs +2 -8
- package/dist/rolldown/get-log-filter.mjs +1 -2
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +10 -13
- package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parallel-plugin.mjs +1 -2
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +4 -6
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +4 -6
- package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-BSVL02lq.mjs} +7 -16
- package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
- package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DkwIzK4F.mjs} +36 -56
- package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-Bnr_ApVf.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-D91FHkmz.mjs} +2 -4
- package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-B1jccsL9.d.mts} +84 -30
- package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-tpgdcGrK.mjs} +3 -8
- package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-Dapgaecf.mjs} +2 -4
- package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
- package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-BCllTl21.mjs} +3 -6
- package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-DFYpKkKl.mjs} +2 -5
- package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
- package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-DK6iIJl8.mjs} +2 -4
- package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-rw0HCMhn.mjs} +427 -473
- package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-BSCulZAO.mjs} +3 -6
- package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-CVufTfok.mjs → watch-D8uEZyLj.mjs} +71 -77
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +9 -18
- package/dist/tsdown/{build-TmLngPCw-I7MHSf0I.js → build-BG-XbM6V-hoyhQqI3.js} +87 -292
- package/dist/tsdown/build-DHPfiKA--CvTonTfC.js +5 -0
- package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
- package/dist/tsdown/{debug-tOJ_PtrM-DITcI9An.js → debug-C4FmgzkJ-B6m_gRpz.js} +4 -6
- package/dist/tsdown/{detect-DK-FDZQ9-CALXiuJa.js → detect-J1_Vd1yf-BWDiPZkP.js} +2 -4
- package/dist/tsdown/{dist-uzMTIu3J.js → dist-C9Oecl0H.js} +24 -56
- package/dist/tsdown/{dist-DVPyDO-_.js → dist-Dx-jtFHM.js} +5 -10
- package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
- package/dist/tsdown/{filename-C2azOotK.js → filename-tIvGuRvQ.js} +1 -3
- package/dist/tsdown/{index-node-Djp92Gzb-fgHTblzo.js → index-node-Bpsmc0eX-jMz9gD3P.js} +2 -4
- package/dist/tsdown/index-types.d.ts +8561 -180
- package/dist/tsdown/index.js +7 -9
- package/dist/tsdown/{main-BWoReXjl.js → main-DN-_H9u2.js} +8 -23
- package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
- package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
- package/dist/tsdown/npm_cjs_chunk_lt.cjs +13 -16
- package/dist/tsdown/npm_cjs_chunk_range.cjs +16 -28
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +40 -52
- package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +3 -5
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -8
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -8
- package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
- package/dist/tsdown/{resolver-CdD-yT15-OWjlgV0D.js → resolver-CdD-yT15-3eaymYLw.js} +2 -4
- package/dist/tsdown/run.js +6 -12
- package/dist/tsdown/{tsc-D6YfZJBZ.js → tsc-OwK9UHsV.js} +4 -6
- package/dist/tsdown/{tsc-context-CGmk4Cps.js → tsc-context-DiIjfXAG.js} +2 -4
- package/dist/vite/client/client.mjs +116 -19
- package/dist/vite/client/env.mjs +1 -2
- package/dist/vite/node/chunks/build.js +2 -3
- package/dist/vite/node/chunks/build2.js +91 -243
- package/dist/vite/node/chunks/chunk.js +7 -13
- package/dist/vite/node/chunks/config.js +2 -3
- package/dist/vite/node/chunks/dist.js +27 -61
- package/dist/vite/node/chunks/dist2.js +11 -95
- package/dist/vite/node/chunks/lib.js +1 -7
- package/dist/vite/node/chunks/logger.js +4 -9
- package/dist/vite/node/chunks/node.js +956 -918
- package/dist/vite/node/chunks/optimizer.js +2 -3
- package/dist/vite/node/chunks/postcss-import.js +1 -13
- package/dist/vite/node/chunks/preview.js +2 -3
- package/dist/vite/node/chunks/server.js +2 -3
- package/dist/vite/node/cli.js +202 -67
- package/dist/vite/node/index.d.ts +17 -14
- package/dist/vite/node/index.js +2 -3
- package/dist/vite/node/internal.js +1 -2
- package/dist/vite/node/module-runner.d.ts +5 -1
- package/dist/vite/node/module-runner.js +44 -3
- package/dist/vite/types/customEvent.d.ts +27 -0
- package/package.json +10 -10
- package/dist/rolldown/cli-setup.d.mts +0 -1
- package/dist/rolldown/cli-setup.mjs +0 -17
- package/dist/tsdown/build-gOkJM1H9-BRI3DQle.js +0 -6
package/dist/rolldown/config.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import { b as VERSION } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/rolldown-build-
|
|
5
|
-
import "./shared/error-
|
|
6
|
-
import "./shared/parse-
|
|
7
|
-
import "./shared/rolldown-
|
|
8
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
10
|
-
|
|
11
|
-
export { VERSION, defineConfig, loadConfig };
|
|
1
|
+
import "./shared/binding-BSVL02lq.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-BCllTl21.mjs";
|
|
3
|
+
import { b as VERSION } from "./shared/bindingify-input-options-DkwIzK4F.mjs";
|
|
4
|
+
import "./shared/rolldown-build-rw0HCMhn.mjs";
|
|
5
|
+
import "./shared/error-tpgdcGrK.mjs";
|
|
6
|
+
import "./shared/parse-DFYpKkKl.mjs";
|
|
7
|
+
import "./shared/rolldown-DK6iIJl8.mjs";
|
|
8
|
+
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-Dapgaecf.mjs";
|
|
10
|
+
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as IsolatedDeclarationsOptions, B as ResolverFactory, D as BindingViteTransformPluginConfig, F as NapiResolveOptions, G as
|
|
2
|
-
import { Gt as
|
|
3
|
-
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-
|
|
4
|
-
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, n as TransformResult$1, o as MinifyResult$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-
|
|
1
|
+
import { A as IsolatedDeclarationsOptions, B as ResolverFactory, D as BindingViteTransformPluginConfig, F as NapiResolveOptions, G as isolatedDeclarationSync, K as moduleRunnerTransform, S as BindingViteManifestPluginConfig, U as TsconfigCache$1, W as isolatedDeclaration, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsResult, n as BindingBundleAnalyzerPluginConfig, q as resolveTsconfig, r as BindingBundleState, z as ResolveResult } from "./shared/binding-BohGL_65.mjs";
|
|
2
|
+
import { Gt as RolldownOutput, It as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, qt as freeExternalMemory, st as NormalizedOutputOptions } from "./shared/define-config-B1jccsL9.mjs";
|
|
3
|
+
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-Bnr_ApVf.mjs";
|
|
4
|
+
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, n as TransformResult$1, o as MinifyResult$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-BoJxrM-e.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -124,7 +124,7 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
124
124
|
/**
|
|
125
125
|
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
126
126
|
*
|
|
127
|
-
* The plugin outputs a
|
|
127
|
+
* The plugin outputs a file containing detailed information about:
|
|
128
128
|
* - All chunks and their relationships
|
|
129
129
|
* - Modules bundled in each chunk
|
|
130
130
|
* - Import dependencies between chunks
|
|
@@ -154,6 +154,20 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
154
154
|
* ]
|
|
155
155
|
* }
|
|
156
156
|
* ```
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* **LLM-friendly markdown output**
|
|
160
|
+
* ```js
|
|
161
|
+
* import { chunkVisualizePlugin } from 'rolldown/experimental';
|
|
162
|
+
*
|
|
163
|
+
* export default {
|
|
164
|
+
* plugins: [
|
|
165
|
+
* chunkVisualizePlugin({
|
|
166
|
+
* format: 'md'
|
|
167
|
+
* })
|
|
168
|
+
* ]
|
|
169
|
+
* }
|
|
170
|
+
* ```
|
|
157
171
|
*/
|
|
158
172
|
declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
|
|
159
173
|
//#endregion
|
|
@@ -236,4 +250,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
|
236
250
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
237
251
|
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
238
252
|
//#endregion
|
|
239
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin,
|
|
253
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { a as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
4
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-
|
|
8
|
-
import { a as minifySync$1, i as minify$1, n as transform$1, r as transformSync$1, t as import_binding$1 } from "./shared/transform-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BSVL02lq.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BCllTl21.mjs";
|
|
3
|
+
import { a as transformToRollupOutput } from "./shared/bindingify-input-options-DkwIzK4F.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-rw0HCMhn.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-tpgdcGrK.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-DFYpKkKl.mjs";
|
|
7
|
+
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-D91FHkmz.mjs";
|
|
8
|
+
import { a as minifySync$1, i as minify$1, n as transform$1, r as transformSync$1, t as import_binding$1 } from "./shared/transform-BSCulZAO.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
|
-
|
|
11
10
|
//#region src/api/dev/dev-engine.ts
|
|
12
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
13
12
|
var DevEngine = class DevEngine {
|
|
@@ -100,11 +99,9 @@ var DevEngine = class DevEngine {
|
|
|
100
99
|
return this.#inner.compileEntry(moduleId, clientId);
|
|
101
100
|
}
|
|
102
101
|
};
|
|
103
|
-
|
|
104
102
|
//#endregion
|
|
105
103
|
//#region src/api/dev/index.ts
|
|
106
104
|
const dev = (...args) => DevEngine.create(...args);
|
|
107
|
-
|
|
108
105
|
//#endregion
|
|
109
106
|
//#region src/types/external-memory-handle.ts
|
|
110
107
|
const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
|
|
@@ -145,7 +142,6 @@ const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
|
|
|
145
142
|
function freeExternalMemory(handle, keepDataAlive = false) {
|
|
146
143
|
return handle[symbolForExternalMemoryHandle](keepDataAlive);
|
|
147
144
|
}
|
|
148
|
-
|
|
149
145
|
//#endregion
|
|
150
146
|
//#region src/api/experimental.ts
|
|
151
147
|
/**
|
|
@@ -186,7 +182,6 @@ const scan = async (rawInputOptions, rawOutputOptions = {}) => {
|
|
|
186
182
|
}
|
|
187
183
|
return cleanupPromise;
|
|
188
184
|
};
|
|
189
|
-
|
|
190
185
|
//#endregion
|
|
191
186
|
//#region src/plugin/parallel-plugin.ts
|
|
192
187
|
function defineParallelPlugin(pluginPath) {
|
|
@@ -197,19 +192,17 @@ function defineParallelPlugin(pluginPath) {
|
|
|
197
192
|
} };
|
|
198
193
|
};
|
|
199
194
|
}
|
|
200
|
-
|
|
201
195
|
//#endregion
|
|
202
196
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
203
197
|
function viteAliasPlugin(config) {
|
|
204
198
|
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
205
199
|
}
|
|
206
|
-
|
|
207
200
|
//#endregion
|
|
208
201
|
//#region src/builtin-plugin/bundle-analyzer-plugin.ts
|
|
209
202
|
/**
|
|
210
203
|
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
211
204
|
*
|
|
212
|
-
* The plugin outputs a
|
|
205
|
+
* The plugin outputs a file containing detailed information about:
|
|
213
206
|
* - All chunks and their relationships
|
|
214
207
|
* - Modules bundled in each chunk
|
|
215
208
|
* - Import dependencies between chunks
|
|
@@ -239,11 +232,24 @@ function viteAliasPlugin(config) {
|
|
|
239
232
|
* ]
|
|
240
233
|
* }
|
|
241
234
|
* ```
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* **LLM-friendly markdown output**
|
|
238
|
+
* ```js
|
|
239
|
+
* import { chunkVisualizePlugin } from 'rolldown/experimental';
|
|
240
|
+
*
|
|
241
|
+
* export default {
|
|
242
|
+
* plugins: [
|
|
243
|
+
* chunkVisualizePlugin({
|
|
244
|
+
* format: 'md'
|
|
245
|
+
* })
|
|
246
|
+
* ]
|
|
247
|
+
* }
|
|
248
|
+
* ```
|
|
242
249
|
*/
|
|
243
250
|
function bundleAnalyzerPlugin(config) {
|
|
244
251
|
return new BuiltinPlugin("builtin:bundle-analyzer", config);
|
|
245
252
|
}
|
|
246
|
-
|
|
247
253
|
//#endregion
|
|
248
254
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
249
255
|
function viteTransformPlugin(config) {
|
|
@@ -256,13 +262,11 @@ function viteTransformPlugin(config) {
|
|
|
256
262
|
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
257
263
|
});
|
|
258
264
|
}
|
|
259
|
-
|
|
260
265
|
//#endregion
|
|
261
266
|
//#region src/builtin-plugin/vite-manifest-plugin.ts
|
|
262
267
|
function viteManifestPlugin(config) {
|
|
263
268
|
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
264
269
|
}
|
|
265
|
-
|
|
266
270
|
//#endregion
|
|
267
271
|
//#region src/experimental-index.ts
|
|
268
272
|
/**
|
|
@@ -307,13 +311,11 @@ const transform = transform$1;
|
|
|
307
311
|
const transformSync = transformSync$1;
|
|
308
312
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
309
313
|
const TsconfigCache = import_binding$1.TsconfigCache;
|
|
310
|
-
|
|
311
314
|
//#endregion
|
|
312
315
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
313
316
|
var ResolverFactory = import_binding.ResolverFactory;
|
|
314
|
-
var createTokioRuntime = import_binding.createTokioRuntime;
|
|
315
317
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
316
318
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
317
319
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
318
320
|
var resolveTsconfig = import_binding.resolveTsconfig;
|
|
319
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin,
|
|
321
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as isPromiseLike, t as arraify } from "./shared/misc-
|
|
2
|
-
|
|
1
|
+
import { n as isPromiseLike, t as arraify } from "./shared/misc-DJYbNKZX.mjs";
|
|
3
2
|
//#region ../pluginutils/dist/utils.js
|
|
4
3
|
const postfixRE = /[?#].*$/;
|
|
5
4
|
function cleanUrl(url) {
|
|
@@ -12,7 +11,6 @@ function extractQueryWithoutFragment(url) {
|
|
|
12
11
|
if (fragmentIndex === -1) return url.substring(questionMarkIndex);
|
|
13
12
|
else return url.substring(questionMarkIndex, fragmentIndex);
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
15
|
//#region ../pluginutils/dist/filter/composable-filters.js
|
|
18
16
|
var And = class {
|
|
@@ -203,7 +201,6 @@ function exprInterpreter(expr, code, id, moduleType, importerId, ctx = {}) {
|
|
|
203
201
|
default: throw new Error(`Expression ${JSON.stringify(expr)} is not expected.`);
|
|
204
202
|
}
|
|
205
203
|
}
|
|
206
|
-
|
|
207
204
|
//#endregion
|
|
208
205
|
//#region ../pluginutils/dist/filter/filter-vite-plugins.js
|
|
209
206
|
/**
|
|
@@ -260,7 +257,6 @@ function filterVitePlugins(plugins) {
|
|
|
260
257
|
}
|
|
261
258
|
return result;
|
|
262
259
|
}
|
|
263
|
-
|
|
264
260
|
//#endregion
|
|
265
261
|
//#region ../pluginutils/dist/filter/simple-filters.js
|
|
266
262
|
/**
|
|
@@ -324,7 +320,6 @@ function makeIdFilterToMatchWithQuery(input) {
|
|
|
324
320
|
function makeRegexIdFilterToMatchWithQuery(input) {
|
|
325
321
|
return new RegExp(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
|
|
326
322
|
}
|
|
327
|
-
|
|
328
323
|
//#endregion
|
|
329
324
|
//#region src/plugin/with-filter.ts
|
|
330
325
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
@@ -387,6 +382,5 @@ function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
|
387
382
|
}
|
|
388
383
|
return -1;
|
|
389
384
|
}
|
|
390
|
-
|
|
391
385
|
//#endregion
|
|
392
|
-
export { and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
|
|
386
|
+
export { and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-C6h4g8dA.mjs";
|
|
2
|
-
import { R as PreRenderedChunk, u as BindingMagicString } from "./shared/binding-
|
|
3
|
-
import { $ as
|
|
4
|
-
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
|
2
|
+
import { R as PreRenderedChunk, u as BindingMagicString } from "./shared/binding-BohGL_65.mjs";
|
|
3
|
+
import { $ as GeneralHookFilter, A as SourceDescription, At as CommentsOptions, B as TreeshakingOptions, C as PartialResolvedId, Ct as AdvancedChunksGroup, D as ResolvedId, Dt as CodeSplittingGroup, E as ResolveIdResult, Et as ChunkingContext, F as VERSION, Ft as ModuleFormat, G as EmittedPrebuiltChunk, Gt as RolldownOutput, H as EmittedAsset, Ht as OutputChunk, I as BundleError, It as OutputOptions, J as PluginContextResolveOptions, Jt as ModuleInfo, K as GetModuleInfo, Kt as SourceMap, L as ExistingRawSourceMap, Lt as PreRenderedAsset, Mt as GeneratedCodePreset, Nt as GlobalsFunction, O as RolldownPlugin, Ot as CodeSplittingNameFunction, P as RUNTIME_MODULE_ID, Pt as MinifyOptions, Q as PluginContextMeta, R as SourceMapInput, S as ParallelPluginHooks, St as AddonFunction, T as ResolveIdExtraOptions, Tt as ChunkFileNamesFunction, U as EmittedChunk, Ut as RenderedChunk, V as TransformPluginContext, Vt as OutputAsset, W as EmittedFile, Wt as RenderedModule, Y as DefineParallelPluginResult, Yt as SourcemapIgnoreListOption, Z as MinimalPluginContext, _ as ImportKind, _t as WatchOptions, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as BuildOptions, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherWatcherEventMap, h as FunctionPluginHooks, ht as RolldownWatcherEvent, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as GeneratedCodeOptions, k as RolldownPluginOption, kt as CodeSplittingOptions, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as RolldownWatcher, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as watch, q as PluginContext, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as rolldown, w as Plugin, wt as AdvancedChunksOptions, x as ObjectHook, xt as build, y as ModuleOptions, yt as RolldownBuild, z as OutputBundle, zt as PartialNull } from "./shared/define-config-B1jccsL9.mjs";
|
|
4
|
+
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/rolldown/index.mjs
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import "./shared/normalize-string-or-regex-
|
|
4
|
-
import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-
|
|
5
|
-
import "./shared/rolldown-build-
|
|
6
|
-
import "./shared/error-
|
|
7
|
-
import "./shared/parse-
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
9
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BSVL02lq.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-D8uEZyLj.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-BCllTl21.mjs";
|
|
4
|
+
import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-DkwIzK4F.mjs";
|
|
5
|
+
import "./shared/rolldown-build-rw0HCMhn.mjs";
|
|
6
|
+
import "./shared/error-tpgdcGrK.mjs";
|
|
7
|
+
import "./shared/parse-DFYpKkKl.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-DK6iIJl8.mjs";
|
|
9
|
+
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
10
10
|
import { isMainThread } from "node:worker_threads";
|
|
11
|
-
|
|
12
11
|
//#region src/setup.ts
|
|
13
12
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
14
13
|
if (isMainThread) {
|
|
@@ -17,7 +16,6 @@ if (isMainThread) {
|
|
|
17
16
|
subscriberGuard?.close();
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
20
|
//#region src/api/build.ts
|
|
23
21
|
/**
|
|
@@ -52,7 +50,6 @@ async function build(options) {
|
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
|
-
|
|
56
53
|
//#endregion
|
|
57
54
|
var BindingMagicString = import_binding.BindingMagicString;
|
|
58
|
-
export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
|
|
55
|
+
export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/error-
|
|
5
|
-
import "./shared/parse-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BSVL02lq.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-BCllTl21.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-DkwIzK4F.mjs";
|
|
4
|
+
import "./shared/error-tpgdcGrK.mjs";
|
|
5
|
+
import "./shared/parse-DFYpKkKl.mjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
|
-
|
|
8
7
|
//#region src/parallel-plugin-worker.ts
|
|
9
8
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
10
9
|
const { registryId, pluginInfos, threadNumber } = workerData;
|
|
@@ -15,7 +14,7 @@ const { registryId, pluginInfos, threadNumber } = workerData;
|
|
|
15
14
|
const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
|
|
16
15
|
return {
|
|
17
16
|
index: pluginInfo.index,
|
|
18
|
-
plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(() => {}, {}, []), [], () => {}, "info", false)
|
|
17
|
+
plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(() => {}, {}, [], []), [], () => {}, "info", false)
|
|
19
18
|
};
|
|
20
19
|
})));
|
|
21
20
|
parentPort.postMessage({ type: "success" });
|
|
@@ -28,6 +27,5 @@ const { registryId, pluginInfos, threadNumber } = workerData;
|
|
|
28
27
|
parentPort.unref();
|
|
29
28
|
}
|
|
30
29
|
})();
|
|
31
|
-
|
|
32
30
|
//#endregion
|
|
33
|
-
export {
|
|
31
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Rt as MaybePromise, w as Plugin } from "./shared/define-config-B1jccsL9.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
4
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-
|
|
3
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
4
|
-
|
|
1
|
+
import "./shared/binding-BSVL02lq.mjs";
|
|
2
|
+
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
|
|
3
|
+
import { n as parseSync, t as parse } from "./shared/parse-DFYpKkKl.mjs";
|
|
5
4
|
//#region src/parse-ast-index.ts
|
|
6
5
|
function wrap(result, filename, sourceText) {
|
|
7
6
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -58,6 +57,5 @@ async function parseAstAsync(sourceText, options, filename) {
|
|
|
58
57
|
...options
|
|
59
58
|
}), filename, sourceText);
|
|
60
59
|
}
|
|
61
|
-
|
|
62
60
|
//#endregion
|
|
63
|
-
export { parseAst, parseAstAsync };
|
|
61
|
+
export { parseAst, parseAstAsync };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-BohGL_65.mjs";
|
|
2
|
+
import { N as BuiltinPlugin } from "./shared/define-config-B1jccsL9.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-Bnr_ApVf.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
4
|
-
|
|
1
|
+
import "./shared/binding-BSVL02lq.mjs";
|
|
2
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BCllTl21.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-D91FHkmz.mjs";
|
|
5
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
6
5
|
/**
|
|
7
6
|
* Replaces targeted strings in files while bundling.
|
|
@@ -38,6 +37,5 @@ function replacePlugin(values = {}, options = {}) {
|
|
|
38
37
|
values
|
|
39
38
|
}));
|
|
40
39
|
}
|
|
41
|
-
|
|
42
40
|
//#endregion
|
|
43
|
-
export { esmExternalRequirePlugin, replacePlugin };
|
|
41
|
+
export { esmExternalRequirePlugin, replacePlugin };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
2
|
//#region \0rolldown/runtime.js
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
@@ -9,16 +8,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
9
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
9
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
10
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
22
17
|
}
|
|
23
18
|
return to;
|
|
24
19
|
};
|
|
@@ -27,7 +22,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
22
|
enumerable: true
|
|
28
23
|
}) : target, mod));
|
|
29
24
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
|
-
|
|
31
25
|
//#endregion
|
|
32
26
|
//#region src/webcontainer-fallback.cjs
|
|
33
27
|
var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -51,7 +45,6 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
51
45
|
}
|
|
52
46
|
module.exports = __require(bindingEntry);
|
|
53
47
|
}));
|
|
54
|
-
|
|
55
48
|
//#endregion
|
|
56
49
|
//#region src/binding.cjs
|
|
57
50
|
var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -576,7 +569,6 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
576
569
|
module.exports.BindingPropertyWriteSideEffects = nativeBinding.BindingPropertyWriteSideEffects;
|
|
577
570
|
module.exports.BindingRebuildStrategy = nativeBinding.BindingRebuildStrategy;
|
|
578
571
|
module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
|
|
579
|
-
module.exports.createTokioRuntime = nativeBinding.createTokioRuntime;
|
|
580
572
|
module.exports.enhancedTransform = nativeBinding.enhancedTransform;
|
|
581
573
|
module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
|
|
582
574
|
module.exports.FilterTokenKind = nativeBinding.FilterTokenKind;
|
|
@@ -586,6 +578,5 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
586
578
|
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
587
579
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
588
580
|
}));
|
|
589
|
-
|
|
590
581
|
//#endregion
|
|
591
|
-
export { __toESM as n, require_binding as t };
|
|
582
|
+
export { __toESM as n, require_binding as t };
|
|
@@ -1200,7 +1200,10 @@ declare class BindingDecodedMap {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
declare class BindingMagicString {
|
|
1202
1202
|
constructor(source: string, options?: BindingMagicStringOptions | undefined | null);
|
|
1203
|
+
get original(): string;
|
|
1203
1204
|
get filename(): string | null;
|
|
1205
|
+
get offset(): number;
|
|
1206
|
+
set offset(offset: number);
|
|
1204
1207
|
replace(from: string, to: string): this;
|
|
1205
1208
|
replaceAll(from: string, to: string): this;
|
|
1206
1209
|
prepend(content: string): this;
|
|
@@ -1343,8 +1346,8 @@ declare class BindingSourceMap {
|
|
|
1343
1346
|
toUrl(): string;
|
|
1344
1347
|
}
|
|
1345
1348
|
/**
|
|
1346
|
-
* Minimal wrapper around
|
|
1347
|
-
* This is returned from watcher event data to allow
|
|
1349
|
+
* Minimal wrapper around a `BundleHandle` for watcher events.
|
|
1350
|
+
* This is returned from watcher event data to allow calling `result.close()`.
|
|
1348
1351
|
*/
|
|
1349
1352
|
declare class BindingWatcherBundler {
|
|
1350
1353
|
close(): Promise<void>;
|
|
@@ -1373,8 +1376,10 @@ declare class TsconfigCache {
|
|
|
1373
1376
|
}
|
|
1374
1377
|
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post';
|
|
1375
1378
|
interface BindingBundleAnalyzerPluginConfig {
|
|
1376
|
-
/** Output filename for the analysis data (default: "analyze-data.json") */
|
|
1379
|
+
/** Output filename for the bundle analysis data (default: "analyze-data.json") */
|
|
1377
1380
|
fileName?: string;
|
|
1381
|
+
/** Output format: "json" (default) or "md" for LLM-friendly markdown */
|
|
1382
|
+
format?: 'json' | 'md';
|
|
1378
1383
|
}
|
|
1379
1384
|
interface BindingBundleState {
|
|
1380
1385
|
lastFullBuildFailed: boolean;
|
|
@@ -1586,6 +1591,7 @@ interface BindingLogLocation {
|
|
|
1586
1591
|
}
|
|
1587
1592
|
interface BindingMagicStringOptions {
|
|
1588
1593
|
filename?: string;
|
|
1594
|
+
offset?: number;
|
|
1589
1595
|
}
|
|
1590
1596
|
interface BindingModulePreloadOptions {
|
|
1591
1597
|
polyfill: boolean;
|
|
@@ -1808,7 +1814,6 @@ interface BindingViteTransformPluginConfig {
|
|
|
1808
1814
|
transformOptions?: TransformOptions;
|
|
1809
1815
|
yarnPnp?: boolean;
|
|
1810
1816
|
}
|
|
1811
|
-
declare function createTokioRuntime(blockingThreads?: number | undefined | null): void;
|
|
1812
1817
|
interface ExternalMemoryStatus {
|
|
1813
1818
|
freed: boolean;
|
|
1814
1819
|
reason?: string;
|
|
@@ -1846,4 +1851,4 @@ interface ViteImportGlobMeta {
|
|
|
1846
1851
|
isSubImportsPattern?: boolean;
|
|
1847
1852
|
}
|
|
1848
1853
|
//#endregion
|
|
1849
|
-
export { IsolatedDeclarationsOptions as A, ResolverFactory as B, BindingViteModulePreloadPolyfillPluginConfig as C, BindingViteTransformPluginConfig as D, BindingViteResolvePluginConfig as E, NapiResolveOptions as F,
|
|
1854
|
+
export { IsolatedDeclarationsOptions as A, ResolverFactory as B, BindingViteModulePreloadPolyfillPluginConfig as C, BindingViteTransformPluginConfig as D, BindingViteResolvePluginConfig as E, NapiResolveOptions as F, isolatedDeclarationSync as G, TransformOptions as H, ParseResult as I, moduleRunnerTransform as K, ParserOptions as L, JsxOptions as M, MinifyOptions as N, BindingWatcherBundler as O, MinifyResult as P, PreRenderedChunk as R, BindingViteManifestPluginConfig as S, BindingViteReporterPluginConfig as T, TsconfigCache as U, SourceMap as V, isolatedDeclaration as W, BindingTsconfigRawOptions as _, BindingEnhancedTransformOptions as a, BindingViteImportGlobPluginConfig as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingTsconfigCompilerOptions as g, BindingTransformHookExtraArgs as h, BindingClientHmrUpdate as i, IsolatedDeclarationsResult as j, ExternalMemoryStatus as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, resolveTsconfig as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingViteBuildImportAnalysisPluginConfig as v, BindingViteReactRefreshWrapperPluginConfig as w, BindingViteJsonPluginConfig as x, BindingViteDynamicImportVarsPluginConfig as y, ResolveResult as z };
|