rolldown 1.0.0-beta.51 → 1.0.0-beta.52
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/cli-setup.mjs +1 -1
- package/dist/cli.mjs +9 -9
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +7 -7
- package/dist/experimental-index.d.mts +16 -6
- package/dist/experimental-index.mjs +9 -11
- package/dist/filter-index.d.mts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +7 -7
- package/dist/parallel-plugin-worker.mjs +4 -4
- package/dist/parallel-plugin.d.mts +3 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -3
- package/dist/shared/{binding-lSvYApx7.d.mts → binding-BKL2JHoJ.d.mts} +15 -10
- package/dist/shared/{binding-JavE2bkj.mjs → binding-kg77KQCQ.mjs} +31 -34
- package/dist/shared/{bindingify-input-options-C8RwNEVu.mjs → bindingify-input-options-6nBAYjYP.mjs} +3 -3
- package/dist/shared/{constructors-DgFF472b.d.mts → constructors-BvaMwihu.d.mts} +4 -3
- package/dist/shared/{constructors-D1fHJKvO.mjs → constructors-CwAnOHmv.mjs} +5 -2
- package/dist/shared/{define-config-CXCkQG1z.d.mts → define-config-9CiSl0uo.d.mts} +23 -10
- package/dist/shared/{load-config-WNwAzWN-.mjs → load-config-DS8fzWF9.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-Bu88lzEx.mjs → normalize-string-or-regex-VlPkMWXA.mjs} +3 -3
- package/dist/shared/{parse-ast-index-DPVqqR9w.mjs → parse-ast-index-C44ewaWh.mjs} +21 -7
- package/dist/shared/{rolldown-Do5qEfGl.mjs → rolldown-CpwN72kC.mjs} +1 -1
- package/dist/shared/{rolldown-build-MAIadGaX.mjs → rolldown-build-D2CkFbcq.mjs} +4 -4
- package/dist/shared/{utils-BJWI2OzT.d.mts → utils-DKydZ4iH.d.mts} +1 -1
- package/dist/shared/{watch-CUl9f7JR.mjs → watch-BWN40jw1.mjs} +4 -4
- package/package.json +21 -21
package/dist/cli-setup.mjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import "./shared/binding-kg77KQCQ.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BWN40jw1.mjs";
|
|
3
3
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
4
4
|
import { t as arraify } from "./shared/misc-CxyvWjTr.mjs";
|
|
5
|
-
import { v as description, y as version } from "./shared/normalize-string-or-regex-
|
|
6
|
-
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-
|
|
7
|
-
import "./shared/bindingify-input-options-
|
|
8
|
-
import "./shared/parse-ast-index-
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
5
|
+
import { v as description, y as version } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
6
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-D2CkFbcq.mjs";
|
|
7
|
+
import "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
8
|
+
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-CpwN72kC.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-DS8fzWF9.mjs";
|
|
11
11
|
import path, { sep } from "node:path";
|
|
12
12
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
13
13
|
import process$1 from "node:process";
|
|
@@ -1239,7 +1239,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
1241
|
//#endregion
|
|
1242
|
-
//#region \0@oxc-project+runtime@0.
|
|
1242
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/usingCtx.js
|
|
1243
1243
|
function _usingCtx() {
|
|
1244
1244
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1245
1245
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/utils-
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-9CiSl0uo.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/load-config.d.ts
|
|
6
6
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
1
|
+
import "./shared/binding-kg77KQCQ.mjs";
|
|
2
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
3
3
|
import "./shared/misc-CxyvWjTr.mjs";
|
|
4
|
-
import { y as version } from "./shared/normalize-string-or-regex-
|
|
5
|
-
import "./shared/rolldown-build-
|
|
6
|
-
import "./shared/bindingify-input-options-
|
|
7
|
-
import "./shared/parse-ast-index-
|
|
8
|
-
import "./shared/rolldown-
|
|
4
|
+
import { y as version } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import "./shared/rolldown-build-D2CkFbcq.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
8
|
+
import "./shared/rolldown-CpwN72kC.mjs";
|
|
9
9
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-DS8fzWF9.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/config.ts
|
|
13
13
|
const VERSION = version;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
2
|
-
import { B as
|
|
3
|
-
import { Ct as RolldownOutput, H as defineParallelPlugin, M as SourceMapInput, P as OutputBundle, Tt as freeExternalMemory, U as MinimalPluginContext, _t as OutputOptions, bt as OutputChunk, o as InputOptions } from "./shared/define-config-
|
|
4
|
-
import { _ as
|
|
1
|
+
import { t as BuiltinPlugin } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { B as ParserOptions, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as minify, K as isolatedDeclaration, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transformSync, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as moduleRunnerTransform, Y as minifySync, Z as transform, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclarationSync, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { Ct as RolldownOutput, H as defineParallelPlugin, M as SourceMapInput, P as OutputBundle, Tt as freeExternalMemory, U as MinimalPluginContext, _t as OutputOptions, bt as OutputChunk, o as InputOptions } from "./shared/define-config-9CiSl0uo.mjs";
|
|
4
|
+
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./shared/constructors-BvaMwihu.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -70,7 +70,7 @@ declare class DevEngine {
|
|
|
70
70
|
private constructor();
|
|
71
71
|
run(): Promise<void>;
|
|
72
72
|
ensureCurrentBuildFinish(): Promise<void>;
|
|
73
|
-
|
|
73
|
+
getBundleState(): Promise<BindingBundleState>;
|
|
74
74
|
ensureLatestBuildOutput(): Promise<void>;
|
|
75
75
|
invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
|
|
76
76
|
registerModules(clientId: string, modules: string[]): void;
|
|
@@ -99,6 +99,16 @@ declare const dev: typeof DevEngine.create;
|
|
|
99
99
|
*/
|
|
100
100
|
declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
|
|
101
101
|
//#endregion
|
|
102
|
+
//#region src/utils/parse.d.ts
|
|
103
|
+
/**
|
|
104
|
+
* Parse asynchronously.
|
|
105
|
+
*
|
|
106
|
+
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
107
|
+
*/
|
|
108
|
+
declare function parse(filename: string, sourceText: string, options?: ParserOptions | null): Promise<ParseResult>;
|
|
109
|
+
/** Parse synchronously. */
|
|
110
|
+
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | null): ParseResult;
|
|
111
|
+
//#endregion
|
|
102
112
|
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
103
113
|
type ViteAliasPluginConfig = {
|
|
104
114
|
entries: {
|
|
@@ -170,4 +180,4 @@ interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "trans
|
|
|
170
180
|
}
|
|
171
181
|
declare function viteHtmlPlugin(config?: ViteHtmlPluginOptions): BuiltinPlugin;
|
|
172
182
|
//#endregion
|
|
173
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
183
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as require_binding } from "./shared/binding-
|
|
1
|
+
import { t as require_binding } from "./shared/binding-kg77KQCQ.mjs";
|
|
2
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
3
3
|
import "./shared/misc-CxyvWjTr.mjs";
|
|
4
|
-
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
5
|
-
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-
|
|
6
|
-
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-
|
|
7
|
-
import "./shared/parse-ast-index-
|
|
8
|
-
import { _ as
|
|
4
|
+
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-D2CkFbcq.mjs";
|
|
6
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
7
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
8
|
+
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./shared/constructors-CwAnOHmv.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
|
|
11
11
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -67,8 +67,8 @@ var DevEngine = class DevEngine {
|
|
|
67
67
|
this.#cachedBuildFinishPromise = promise;
|
|
68
68
|
return promise;
|
|
69
69
|
}
|
|
70
|
-
async
|
|
71
|
-
return this.#inner.
|
|
70
|
+
async getBundleState() {
|
|
71
|
+
return this.#inner.getBundleState();
|
|
72
72
|
}
|
|
73
73
|
async ensureLatestBuildOutput() {
|
|
74
74
|
await this.#inner.ensureLatestBuildOutput();
|
|
@@ -243,8 +243,6 @@ var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
|
243
243
|
var minify = import_binding.minify;
|
|
244
244
|
var minifySync = import_binding.minifySync;
|
|
245
245
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
246
|
-
var parse = import_binding.parse;
|
|
247
|
-
var parseSync = import_binding.parseSync;
|
|
248
246
|
var transform = import_binding.transform;
|
|
249
247
|
var transformSync = import_binding.transformSync;
|
|
250
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
248
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/utils-
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { k as withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { k as withFilter } from "./shared/define-config-9CiSl0uo.mjs";
|
|
4
4
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, i as WarningHandlerWithDefault, l as PartialNull, m as RollupError, n as LoggingFunction, p as LogOrStringHandler } from "./shared/utils-
|
|
2
|
-
import {
|
|
3
|
-
import { $ as NormalizedOutputOptions, A as VERSION, B as PluginContext, C as ResolveIdResult, Ct as RolldownOutput, D as SourceDescription, Dt as SourcemapIgnoreListOption, E as RolldownPluginOption, Et as ModuleInfo, F as TreeshakingOptions, G as GeneralHookFilter, I as TransformPluginContext, J as BufferEncoding, K as HookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, P as OutputBundle, Q as InternalModuleFormat, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedModule, T as RolldownPlugin, U as MinimalPluginContext, V as DefineParallelPluginResult, W as PluginContextMeta, X as RolldownFileStats, Y as RolldownDirectoryEntry, Z as RolldownFsModule, _ as ModuleType, _t as OutputOptions, a as InputOption, at as rolldown, b as PartialResolvedId, bt as OutputChunk, c as OptimizationOptions, ct as build, d as CustomPluginOptions, dt as ChunkingContext, et as NormalizedInputOptions, f as FunctionPluginHooks, ft as GeneratedCodeOptions, g as ModuleOptions, gt as ModuleFormat, h as LoadResult, ht as MinifyOptions, i as ExternalOption, it as WatchOptions, j as ExistingRawSourceMap, l as WatcherOptions, lt as AddonFunction, m as ImportKind, mt as GlobalsFunction, n as ConfigExport, nt as RolldownWatcher, o as InputOptions, ot as RolldownBuild, p as HookFilterExtension, pt as GeneratedCodePreset, q as ModuleTypeFilter, r as RolldownOptions, rt as RolldownWatcherEvent, s as ModuleTypes, st as BuildOptions, t as defineConfig, tt as watch, u as AsyncPluginHooks, ut as ChunkFileNamesFunction, v as ObjectHook, vt as PreRenderedAsset, w as ResolvedId, wt as SourceMap, x as Plugin, xt as RenderedChunk, y as ParallelPluginHooks, yt as OutputAsset, z as GetModuleInfo } from "./shared/define-config-
|
|
1
|
+
import { d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, i as WarningHandlerWithDefault, l as PartialNull, m as RollupError, n as LoggingFunction, p as LogOrStringHandler } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { $ as NormalizedOutputOptions, A as VERSION, B as PluginContext, C as ResolveIdResult, Ct as RolldownOutput, D as SourceDescription, Dt as SourcemapIgnoreListOption, E as RolldownPluginOption, Et as ModuleInfo, F as TreeshakingOptions, G as GeneralHookFilter, I as TransformPluginContext, J as BufferEncoding, K as HookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, P as OutputBundle, Q as InternalModuleFormat, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedModule, T as RolldownPlugin, U as MinimalPluginContext, V as DefineParallelPluginResult, W as PluginContextMeta, X as RolldownFileStats, Y as RolldownDirectoryEntry, Z as RolldownFsModule, _ as ModuleType, _t as OutputOptions, a as InputOption, at as rolldown, b as PartialResolvedId, bt as OutputChunk, c as OptimizationOptions, ct as build, d as CustomPluginOptions, dt as ChunkingContext, et as NormalizedInputOptions, f as FunctionPluginHooks, ft as GeneratedCodeOptions, g as ModuleOptions, gt as ModuleFormat, h as LoadResult, ht as MinifyOptions, i as ExternalOption, it as WatchOptions, j as ExistingRawSourceMap, l as WatcherOptions, lt as AddonFunction, m as ImportKind, mt as GlobalsFunction, n as ConfigExport, nt as RolldownWatcher, o as InputOptions, ot as RolldownBuild, p as HookFilterExtension, pt as GeneratedCodePreset, q as ModuleTypeFilter, r as RolldownOptions, rt as RolldownWatcherEvent, s as ModuleTypes, st as BuildOptions, t as defineConfig, tt as watch, u as AsyncPluginHooks, ut as ChunkFileNamesFunction, v as ObjectHook, vt as PreRenderedAsset, w as ResolvedId, wt as SourceMap, x as Plugin, xt as RenderedChunk, y as ParallelPluginHooks, yt as OutputAsset, z as GetModuleInfo } from "./shared/define-config-9CiSl0uo.mjs";
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, 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, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import { t as require_binding } from "./shared/binding-kg77KQCQ.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BWN40jw1.mjs";
|
|
3
3
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
4
4
|
import "./shared/misc-CxyvWjTr.mjs";
|
|
5
|
-
import { _ as VERSION } from "./shared/normalize-string-or-regex-
|
|
6
|
-
import "./shared/rolldown-build-
|
|
7
|
-
import "./shared/bindingify-input-options-
|
|
8
|
-
import "./shared/parse-ast-index-
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
5
|
+
import { _ as VERSION } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
6
|
+
import "./shared/rolldown-build-D2CkFbcq.mjs";
|
|
7
|
+
import "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
8
|
+
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-CpwN72kC.mjs";
|
|
10
10
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
11
11
|
import { isMainThread } from "node:worker_threads";
|
|
12
12
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as require_binding } from "./shared/binding-
|
|
1
|
+
import { t as require_binding } from "./shared/binding-kg77KQCQ.mjs";
|
|
2
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
3
3
|
import "./shared/misc-CxyvWjTr.mjs";
|
|
4
|
-
import "./shared/normalize-string-or-regex-
|
|
5
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
6
|
-
import "./shared/parse-ast-index-
|
|
4
|
+
import "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
7
7
|
import { parentPort, workerData } from "node:worker_threads";
|
|
8
8
|
|
|
9
9
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as MaybePromise } from "./shared/utils-
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { x as Plugin } from "./shared/define-config-
|
|
1
|
+
import { s as MaybePromise } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { x as Plugin } from "./shared/define-config-9CiSl0uo.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
6
6
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
1
|
+
import "./shared/binding-kg77KQCQ.mjs";
|
|
2
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
3
|
-
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-
|
|
3
|
+
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
4
4
|
|
|
5
5
|
export { parseAst, parseAstAsync };
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { t as BuiltinPlugin } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BvaMwihu.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
1
|
+
import "./shared/binding-kg77KQCQ.mjs";
|
|
2
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
3
3
|
import "./shared/misc-CxyvWjTr.mjs";
|
|
4
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
5
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
4
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CwAnOHmv.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
8
8
|
/**
|
|
@@ -271,12 +271,6 @@ type ImportNameKind = /** `import { x } from "mod"` */
|
|
|
271
271
|
'Name' | /** `import * as ns from "mod"` */
|
|
272
272
|
'NamespaceObject' | /** `import defaultExport from "mod"` */
|
|
273
273
|
'Default';
|
|
274
|
-
/**
|
|
275
|
-
* Parse asynchronously.
|
|
276
|
-
*
|
|
277
|
-
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
278
|
-
*/
|
|
279
|
-
declare function parse(filename: string, sourceText: string, options?: ParserOptions | undefined | null): Promise<ParseResult>;
|
|
280
274
|
interface ParserOptions {
|
|
281
275
|
/** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
|
|
282
276
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
@@ -317,8 +311,6 @@ interface ParserOptions {
|
|
|
317
311
|
*/
|
|
318
312
|
showSemanticErrors?: boolean;
|
|
319
313
|
}
|
|
320
|
-
/** Parse synchronously. */
|
|
321
|
-
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): ParseResult;
|
|
322
314
|
interface Span {
|
|
323
315
|
start: number;
|
|
324
316
|
end: number;
|
|
@@ -1344,6 +1336,10 @@ interface BindingAssetSource {
|
|
|
1344
1336
|
inner: string | Uint8Array;
|
|
1345
1337
|
}
|
|
1346
1338
|
type BindingBuiltinPluginName = 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-asset' | 'builtin:vite-asset-import-meta-url' | 'builtin:vite-build-import-analysis' | 'builtin:vite-css' | 'builtin:vite-css-post' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-html' | 'builtin:vite-html-inline-proxy' | '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-wasm-helper' | 'builtin:vite-web-worker-post';
|
|
1339
|
+
interface BindingBundleState {
|
|
1340
|
+
lastFullBuildFailed: boolean;
|
|
1341
|
+
hasStaleOutput: boolean;
|
|
1342
|
+
}
|
|
1347
1343
|
interface BindingClientHmrUpdate {
|
|
1348
1344
|
clientId: string;
|
|
1349
1345
|
update: BindingHmrUpdate;
|
|
@@ -1446,6 +1442,15 @@ interface BindingSourcemap {
|
|
|
1446
1442
|
interface BindingTransformHookExtraArgs {
|
|
1447
1443
|
moduleType: string;
|
|
1448
1444
|
}
|
|
1445
|
+
interface BindingViteAssetImportMetaUrlPluginConfig {
|
|
1446
|
+
root: string;
|
|
1447
|
+
isLib: boolean;
|
|
1448
|
+
publicDir: string;
|
|
1449
|
+
clientEntry: string;
|
|
1450
|
+
tryFsResolve: (id: string) => string | undefined;
|
|
1451
|
+
assetResolver: (id: string, importer: string) => Promise<string | undefined>;
|
|
1452
|
+
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1453
|
+
}
|
|
1449
1454
|
interface BindingViteAssetPluginConfig {
|
|
1450
1455
|
root: string;
|
|
1451
1456
|
isLib: boolean;
|
|
@@ -1500,7 +1505,7 @@ interface BindingViteCssPostPluginConfig {
|
|
|
1500
1505
|
decodedBase: string;
|
|
1501
1506
|
libCssFilename?: string;
|
|
1502
1507
|
isLegacy?: () => boolean;
|
|
1503
|
-
cssMinify?: (css: string) => Promise<string>;
|
|
1508
|
+
cssMinify?: (css: string, inline: boolean) => Promise<string>;
|
|
1504
1509
|
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1505
1510
|
}
|
|
1506
1511
|
interface BindingViteDynamicImportVarsPluginConfig {
|
|
@@ -1624,4 +1629,4 @@ interface PreRenderedChunk {
|
|
|
1624
1629
|
exports: Array<string>;
|
|
1625
1630
|
}
|
|
1626
1631
|
//#endregion
|
|
1627
|
-
export {
|
|
1632
|
+
export { BindingWatcherBundler as A, ParserOptions as B, BindingViteManifestPluginConfig as C, BindingViteResolvePluginConfig as D, BindingViteReporterPluginConfig as E, JsxOptions as F, TransformResult as G, ResolveResult as H, MinifyOptions as I, minify as J, isolatedDeclaration as K, MinifyResult as L, ExternalMemoryStatus as M, IsolatedDeclarationsOptions as N, BindingViteTransformPluginConfig as O, IsolatedDeclarationsResult as P, transformSync as Q, NapiResolveOptions as R, BindingViteJsonPluginConfig as S, BindingViteReactRefreshWrapperPluginConfig as T, ResolverFactory as U, PreRenderedChunk as V, TransformOptions as W, moduleRunnerTransform as X, minifySync as Y, transform as Z, BindingViteCssPostPluginConfig as _, BindingHookResolveIdExtraArgs as a, BindingViteHtmlPluginConfig as b, BindingRebuildStrategy as c, BindingTransformHookExtraArgs as d, BindingUrlResolver as f, BindingViteCssPluginConfig as g, BindingViteBuildImportAnalysisPluginConfig as h, BindingEsmExternalRequirePluginConfig as i, BindingWatcherEvent as j, BindingViteWasmHelperPluginConfig as k, BindingRenderedChunk as l, BindingViteAssetPluginConfig as m, BindingBundleState as n, BindingIsolatedDeclarationPluginConfig as o, BindingViteAssetImportMetaUrlPluginConfig as p, isolatedDeclarationSync as q, BindingClientHmrUpdate as r, BindingMagicString as s, BindingBuiltinPluginName as t, BindingReplacePluginConfig as u, BindingViteDynamicImportVarsPluginConfig as v, BindingViteModulePreloadPolyfillPluginConfig as w, BindingViteImportGlobPluginConfig as x, BindingViteHtmlInlineProxyPluginConfig as y, ParseResult as z };
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
|
|
3
3
|
//#region rolldown:runtime
|
|
4
|
-
var
|
|
5
|
-
var __commonJS = (cb, mod) => function() {
|
|
6
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
7
|
-
};
|
|
4
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
8
5
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
9
6
|
|
|
10
7
|
//#endregion
|
|
11
8
|
//#region src/webcontainer-fallback.cjs
|
|
12
|
-
var require_webcontainer_fallback = /* @__PURE__ */
|
|
9
|
+
var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13
10
|
const fs = __require("node:fs");
|
|
14
11
|
const childProcess = __require("node:child_process");
|
|
15
12
|
const version = JSON.parse(fs.readFileSync(__require.resolve("rolldown/package.json"), "utf-8")).version;
|
|
@@ -29,11 +26,11 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJS({ "src/webcontain
|
|
|
29
26
|
});
|
|
30
27
|
}
|
|
31
28
|
module.exports = __require(bindingEntry);
|
|
32
|
-
})
|
|
29
|
+
}));
|
|
33
30
|
|
|
34
31
|
//#endregion
|
|
35
32
|
//#region src/binding.cjs
|
|
36
|
-
var require_binding = /* @__PURE__ */
|
|
33
|
+
var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
37
34
|
const { readFileSync } = __require("node:fs");
|
|
38
35
|
let nativeBinding = null;
|
|
39
36
|
const loadErrors = [];
|
|
@@ -89,7 +86,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
89
86
|
try {
|
|
90
87
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
91
88
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
92
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
89
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
93
90
|
return binding;
|
|
94
91
|
} catch (e) {
|
|
95
92
|
loadErrors.push(e);
|
|
@@ -103,7 +100,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
103
100
|
try {
|
|
104
101
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
105
102
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
106
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
103
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
107
104
|
return binding;
|
|
108
105
|
} catch (e) {
|
|
109
106
|
loadErrors.push(e);
|
|
@@ -118,7 +115,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
118
115
|
try {
|
|
119
116
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
120
117
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
121
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
118
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
122
119
|
return binding;
|
|
123
120
|
} catch (e) {
|
|
124
121
|
loadErrors.push(e);
|
|
@@ -132,7 +129,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
132
129
|
try {
|
|
133
130
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
134
131
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
132
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
133
|
return binding;
|
|
137
134
|
} catch (e) {
|
|
138
135
|
loadErrors.push(e);
|
|
@@ -147,7 +144,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
147
144
|
try {
|
|
148
145
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
149
146
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
150
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
147
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
151
148
|
return binding;
|
|
152
149
|
} catch (e) {
|
|
153
150
|
loadErrors.push(e);
|
|
@@ -161,7 +158,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
161
158
|
try {
|
|
162
159
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
163
160
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
164
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
161
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
165
162
|
return binding;
|
|
166
163
|
} catch (e) {
|
|
167
164
|
loadErrors.push(e);
|
|
@@ -176,7 +173,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
176
173
|
try {
|
|
177
174
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
178
175
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
179
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
176
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
180
177
|
return binding;
|
|
181
178
|
} catch (e) {
|
|
182
179
|
loadErrors.push(e);
|
|
@@ -190,7 +187,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
190
187
|
try {
|
|
191
188
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
192
189
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
193
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
190
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
191
|
return binding;
|
|
195
192
|
} catch (e) {
|
|
196
193
|
loadErrors.push(e);
|
|
@@ -204,7 +201,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
204
201
|
try {
|
|
205
202
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
206
203
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
207
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
204
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
208
205
|
return binding;
|
|
209
206
|
} catch (e) {
|
|
210
207
|
loadErrors.push(e);
|
|
@@ -219,7 +216,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
219
216
|
try {
|
|
220
217
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
221
218
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
222
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
219
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
223
220
|
return binding;
|
|
224
221
|
} catch (e) {
|
|
225
222
|
loadErrors.push(e);
|
|
@@ -233,7 +230,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
233
230
|
try {
|
|
234
231
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
235
232
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
236
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
233
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
237
234
|
return binding;
|
|
238
235
|
} catch (e) {
|
|
239
236
|
loadErrors.push(e);
|
|
@@ -248,7 +245,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
248
245
|
try {
|
|
249
246
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
250
247
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
251
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
248
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
252
249
|
return binding;
|
|
253
250
|
} catch (e) {
|
|
254
251
|
loadErrors.push(e);
|
|
@@ -262,7 +259,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
262
259
|
try {
|
|
263
260
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
264
261
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
265
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
262
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
266
263
|
return binding;
|
|
267
264
|
} catch (e) {
|
|
268
265
|
loadErrors.push(e);
|
|
@@ -277,7 +274,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
277
274
|
try {
|
|
278
275
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
279
276
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
280
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
277
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
281
278
|
return binding;
|
|
282
279
|
} catch (e) {
|
|
283
280
|
loadErrors.push(e);
|
|
@@ -291,7 +288,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
291
288
|
try {
|
|
292
289
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
293
290
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
294
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
291
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
295
292
|
return binding;
|
|
296
293
|
} catch (e) {
|
|
297
294
|
loadErrors.push(e);
|
|
@@ -306,7 +303,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
306
303
|
try {
|
|
307
304
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
308
305
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
309
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
306
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
310
307
|
return binding;
|
|
311
308
|
} catch (e) {
|
|
312
309
|
loadErrors.push(e);
|
|
@@ -320,7 +317,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
320
317
|
try {
|
|
321
318
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
322
319
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
323
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
320
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
324
321
|
return binding;
|
|
325
322
|
} catch (e) {
|
|
326
323
|
loadErrors.push(e);
|
|
@@ -335,7 +332,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
335
332
|
try {
|
|
336
333
|
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
337
334
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
338
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
335
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
339
336
|
return binding;
|
|
340
337
|
} catch (e) {
|
|
341
338
|
loadErrors.push(e);
|
|
@@ -349,7 +346,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
349
346
|
try {
|
|
350
347
|
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
351
348
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
352
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
349
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
353
350
|
return binding;
|
|
354
351
|
} catch (e) {
|
|
355
352
|
loadErrors.push(e);
|
|
@@ -364,7 +361,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
364
361
|
try {
|
|
365
362
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
366
363
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
367
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
364
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
368
365
|
return binding;
|
|
369
366
|
} catch (e) {
|
|
370
367
|
loadErrors.push(e);
|
|
@@ -378,7 +375,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
378
375
|
try {
|
|
379
376
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
380
377
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
381
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
378
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
382
379
|
return binding;
|
|
383
380
|
} catch (e) {
|
|
384
381
|
loadErrors.push(e);
|
|
@@ -393,7 +390,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
393
390
|
try {
|
|
394
391
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
395
392
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
396
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
393
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
397
394
|
return binding;
|
|
398
395
|
} catch (e) {
|
|
399
396
|
loadErrors.push(e);
|
|
@@ -407,7 +404,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
407
404
|
try {
|
|
408
405
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
409
406
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
410
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
407
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
411
408
|
return binding;
|
|
412
409
|
} catch (e) {
|
|
413
410
|
loadErrors.push(e);
|
|
@@ -422,7 +419,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
422
419
|
try {
|
|
423
420
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
424
421
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
425
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
422
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
426
423
|
return binding;
|
|
427
424
|
} catch (e) {
|
|
428
425
|
loadErrors.push(e);
|
|
@@ -436,7 +433,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
436
433
|
try {
|
|
437
434
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
438
435
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
439
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
436
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
440
437
|
return binding;
|
|
441
438
|
} catch (e) {
|
|
442
439
|
loadErrors.push(e);
|
|
@@ -450,7 +447,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
450
447
|
try {
|
|
451
448
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
452
449
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
450
|
+
if (bindingPackageVersion !== "1.0.0-beta.52" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.52 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
454
451
|
return binding;
|
|
455
452
|
} catch (e) {
|
|
456
453
|
loadErrors.push(e);
|
|
@@ -556,7 +553,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
556
553
|
module.exports.registerPlugins = nativeBinding.registerPlugins;
|
|
557
554
|
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
558
555
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
559
|
-
})
|
|
556
|
+
}));
|
|
560
557
|
|
|
561
558
|
//#endregion
|
|
562
559
|
export { require_binding as t };
|
package/dist/shared/{bindingify-input-options-C8RwNEVu.mjs → bindingify-input-options-6nBAYjYP.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
1
|
+
import { t as require_binding } from "./binding-kg77KQCQ.mjs";
|
|
2
2
|
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-CSQ_UMWp.mjs";
|
|
3
3
|
import { a as unreachable, i as unimplemented, o as unsupported, t as arraify } from "./misc-CxyvWjTr.mjs";
|
|
4
|
-
import { b as normalizeLog, d as __decorate, f as bindingAssetSource, g as MinimalPluginContextImpl, h as PlainObjectLike, i as bindingifyViteHtmlPlugin, l as bindingifySourcemap, m as lazyProp, n as BuiltinPlugin, o as collectChangedBundle, r as bindingifyBuiltInPlugin, s as transformToOutputBundle, t as normalizedStringOrRegex, u as transformRenderedChunk, w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
5
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
4
|
+
import { b as normalizeLog, d as __decorate, f as bindingAssetSource, g as MinimalPluginContextImpl, h as PlainObjectLike, i as bindingifyViteHtmlPlugin, l as bindingifySourcemap, m as lazyProp, n as BuiltinPlugin, o as collectChangedBundle, r as bindingifyBuiltInPlugin, s as transformToOutputBundle, t as normalizedStringOrRegex, u as transformRenderedChunk, w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { t as parseAst } from "./parse-ast-index-C44ewaWh.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import * as filter from "@rolldown/pluginutils";
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-
|
|
2
|
-
import { C as
|
|
1
|
+
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-DKydZ4iH.mjs";
|
|
2
|
+
import { C as BindingViteManifestPluginConfig, D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, _ as BindingViteCssPostPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-BKL2JHoJ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -27,5 +27,6 @@ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPl
|
|
|
27
27
|
declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
28
28
|
declare function viteCSSPostPlugin(config?: BindingViteCssPostPluginConfig): BuiltinPlugin;
|
|
29
29
|
declare function viteHtmlInlineProxyPlugin(config: BindingViteHtmlInlineProxyPluginConfig): BuiltinPlugin;
|
|
30
|
+
declare function viteAssetImportMetaUrlPlugin(config: BindingViteAssetImportMetaUrlPluginConfig): BuiltinPlugin;
|
|
30
31
|
//#endregion
|
|
31
|
-
export {
|
|
32
|
+
export { viteWasmHelperPlugin as _, viteCSSPostPlugin as a, viteImportGlobPlugin as c, viteManifestPlugin as d, viteModulePreloadPolyfillPlugin as f, viteWasmFallbackPlugin as g, viteResolvePlugin as h, viteBuildImportAnalysisPlugin as i, viteJsonPlugin as l, viteReporterPlugin as m, isolatedDeclarationPlugin as n, viteDynamicImportVarsPlugin as o, viteReactRefreshWrapperPlugin as p, viteAssetImportMetaUrlPlugin as r, viteHtmlInlineProxyPlugin as s, esmExternalRequirePlugin as t, viteLoadFallbackPlugin as u, viteWebWorkerPostPlugin as v };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-VlPkMWXA.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -60,6 +60,9 @@ function viteCSSPostPlugin(config) {
|
|
|
60
60
|
function viteHtmlInlineProxyPlugin(config) {
|
|
61
61
|
return new BuiltinPlugin("builtin:vite-html-inline-proxy", config);
|
|
62
62
|
}
|
|
63
|
+
function viteAssetImportMetaUrlPlugin(config) {
|
|
64
|
+
return new BuiltinPlugin("builtin:vite-asset-import-meta-url", config);
|
|
65
|
+
}
|
|
63
66
|
|
|
64
67
|
//#endregion
|
|
65
|
-
export {
|
|
68
|
+
export { viteWasmHelperPlugin as _, viteCSSPostPlugin as a, viteImportGlobPlugin as c, viteManifestPlugin as d, viteModulePreloadPolyfillPlugin as f, viteWasmFallbackPlugin as g, viteResolvePlugin as h, viteBuildImportAnalysisPlugin as i, viteJsonPlugin as l, viteReporterPlugin as m, isolatedDeclarationPlugin as n, viteDynamicImportVarsPlugin as o, viteReactRefreshWrapperPlugin as p, viteAssetImportMetaUrlPlugin as r, viteHtmlInlineProxyPlugin as s, esmExternalRequirePlugin as t, viteLoadFallbackPlugin as u, viteWebWorkerPostPlugin as v };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as MakeAsync, c as NullValue, d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, l as PartialNull, m as RollupError, n as LoggingFunction, o as MaybeArray, p as LogOrStringHandler, r as LoggingFunctionWithPosition, s as MaybePromise, t as BuiltinPlugin, u as StringOrRegExp } from "./utils-
|
|
2
|
-
import { A as
|
|
1
|
+
import { a as MakeAsync, c as NullValue, d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, l as PartialNull, m as RollupError, n as LoggingFunction, o as MaybeArray, p as LogOrStringHandler, r as LoggingFunctionWithPosition, s as MaybePromise, t as BuiltinPlugin, u as StringOrRegExp } from "./utils-DKydZ4iH.mjs";
|
|
2
|
+
import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString } from "./binding-BKL2JHoJ.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -173,7 +173,9 @@ interface GeneratedCodeOptions {
|
|
|
173
173
|
* When enabled, generated code will use descriptive variable names that correspond
|
|
174
174
|
* to the original module names, making it easier to profile and debug the bundled code.
|
|
175
175
|
*
|
|
176
|
-
*
|
|
176
|
+
* Note: Enabling this option makes the output more difficult to minify effectively.
|
|
177
|
+
*
|
|
178
|
+
* @default false
|
|
177
179
|
*/
|
|
178
180
|
profilerNames?: boolean;
|
|
179
181
|
}
|
|
@@ -1576,16 +1578,27 @@ interface InputOptions {
|
|
|
1576
1578
|
optimization?: OptimizationOptions;
|
|
1577
1579
|
context?: string;
|
|
1578
1580
|
/**
|
|
1579
|
-
*
|
|
1581
|
+
* Configures TypeScript configuration file resolution and usage.
|
|
1582
|
+
*
|
|
1583
|
+
* ## Options
|
|
1584
|
+
*
|
|
1585
|
+
* - `true`: Auto-discovery mode (similar to Vite). For each module, both resolver and transformer
|
|
1586
|
+
* will find the nearest tsconfig.json. If the tsconfig has `references`, the file extension is
|
|
1587
|
+
* allowed, and the tsconfig's `include`/`exclude` patterns don't match the file, the referenced
|
|
1588
|
+
* tsconfigs will be searched for a match. Falls back to the original tsconfig if no match is found.
|
|
1589
|
+
* - `string`: Path to a specific tsconfig.json file (relative to cwd or absolute path).
|
|
1590
|
+
*
|
|
1591
|
+
* ## What's used from tsconfig
|
|
1592
|
+
*
|
|
1593
|
+
* - **Resolver**: Uses `compilerOptions.paths` and `compilerOptions.baseUrl` for path mapping
|
|
1594
|
+
* - **Transformer**: Uses select compiler options (jsx, decorators, typescript, etc.)
|
|
1580
1595
|
*
|
|
1581
|
-
*
|
|
1582
|
-
*
|
|
1583
|
-
* - an absolute path to the configuration file.
|
|
1596
|
+
* > [!NOTE]
|
|
1597
|
+
* > Priority: Top-level `transform` options always take precedence over tsconfig settings.
|
|
1584
1598
|
*
|
|
1585
|
-
*
|
|
1586
|
-
* and the tsconfig options will be merged with the top-level `transform` options, with the `transform` options taking precedence.
|
|
1599
|
+
* @default undefined (no tsconfig resolution)
|
|
1587
1600
|
*/
|
|
1588
|
-
tsconfig?: string;
|
|
1601
|
+
tsconfig?: true | string;
|
|
1589
1602
|
}
|
|
1590
1603
|
//#endregion
|
|
1591
1604
|
//#region src/types/rolldown-options.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
1
|
+
import { t as require_binding } from "./binding-kg77KQCQ.mjs";
|
|
2
2
|
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-CSQ_UMWp.mjs";
|
|
3
3
|
import { r as noop } from "./misc-CxyvWjTr.mjs";
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "1.0.0-beta.
|
|
35
|
+
var version = "1.0.0-beta.52";
|
|
36
36
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
@@ -190,7 +190,7 @@ function bindingAssetSource(source) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region \0@oxc-project+runtime@0.
|
|
193
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/decorate.js
|
|
194
194
|
function __decorate(decorators, target, key, desc) {
|
|
195
195
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
196
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
1
|
+
import { t as require_binding } from "./binding-kg77KQCQ.mjs";
|
|
2
2
|
import { l as locate, n as error, s as logParseError, u as getCodeFrame } from "./logs-CSQ_UMWp.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.99.0/node_modules/oxc-parser/src-js/wrap.js
|
|
5
5
|
function wrap$1(result) {
|
|
6
6
|
let program, module, comments, errors;
|
|
7
7
|
return {
|
|
@@ -38,10 +38,24 @@ function applyFix(program, fixPath) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region src/parse
|
|
41
|
+
//#region src/utils/parse.ts
|
|
42
42
|
var import_binding = require_binding();
|
|
43
|
+
/**
|
|
44
|
+
* Parse asynchronously.
|
|
45
|
+
*
|
|
46
|
+
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
47
|
+
*/
|
|
48
|
+
async function parse(filename, sourceText, options) {
|
|
49
|
+
return wrap$1(await (0, import_binding.parse)(filename, sourceText, options));
|
|
50
|
+
}
|
|
51
|
+
/** Parse synchronously. */
|
|
52
|
+
function parseSync(filename, sourceText, options) {
|
|
53
|
+
return wrap$1((0, import_binding.parseSync)(filename, sourceText, options));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/parse-ast-index.ts
|
|
43
58
|
function wrap(result, sourceText) {
|
|
44
|
-
result = wrap$1(result);
|
|
45
59
|
if (result.errors.length > 0) return normalizeParseError(sourceText, result.errors);
|
|
46
60
|
return result.program;
|
|
47
61
|
}
|
|
@@ -66,17 +80,17 @@ const defaultParserOptions = {
|
|
|
66
80
|
preserveParens: false
|
|
67
81
|
};
|
|
68
82
|
function parseAst(sourceText, options, filename) {
|
|
69
|
-
return wrap(
|
|
83
|
+
return wrap(parseSync(filename ?? "file.js", sourceText, {
|
|
70
84
|
...defaultParserOptions,
|
|
71
85
|
...options
|
|
72
86
|
}), sourceText);
|
|
73
87
|
}
|
|
74
88
|
async function parseAstAsync(sourceText, options, filename) {
|
|
75
|
-
return wrap(await
|
|
89
|
+
return wrap(await parse(filename ?? "file.js", sourceText, {
|
|
76
90
|
...defaultParserOptions,
|
|
77
91
|
...options
|
|
78
92
|
}), sourceText);
|
|
79
93
|
}
|
|
80
94
|
|
|
81
95
|
//#endregion
|
|
82
|
-
export { parseAstAsync as n, parseAst as t };
|
|
96
|
+
export { parseSync as i, parseAstAsync as n, parse as r, parseAst as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-
|
|
1
|
+
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-D2CkFbcq.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/rolldown/index.ts
|
|
4
4
|
const rolldown = async (input) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
1
|
+
import { t as require_binding } from "./binding-kg77KQCQ.mjs";
|
|
2
2
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-CSQ_UMWp.mjs";
|
|
3
3
|
import { i as unimplemented } from "./misc-CxyvWjTr.mjs";
|
|
4
|
-
import { C as LOG_LEVEL_INFO, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as VERSION, b as normalizeLog, c as transformToRollupOutput, d as __decorate, g as MinimalPluginContextImpl, h as PlainObjectLike, m as lazyProp, n as BuiltinPlugin, p as transformAssetSource, u as transformRenderedChunk, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG } from "./normalize-string-or-regex-
|
|
5
|
-
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-
|
|
4
|
+
import { C as LOG_LEVEL_INFO, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as VERSION, b as normalizeLog, c as transformToRollupOutput, d as __decorate, g as MinimalPluginContextImpl, h as PlainObjectLike, m as lazyProp, n as BuiltinPlugin, p as transformAssetSource, u as transformRenderedChunk, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG } from "./normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-6nBAYjYP.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { styleText } from "node:util";
|
|
@@ -1605,7 +1605,7 @@ const InputOptionsSchema = strictObject({
|
|
|
1605
1605
|
literal("exports-only"),
|
|
1606
1606
|
literal(false)
|
|
1607
1607
|
]))),
|
|
1608
|
-
tsconfig: pipe(optional(string()), description("Path to the tsconfig.json file."))
|
|
1608
|
+
tsconfig: pipe(optional(union([literal(true), string()])), description("Path to the tsconfig.json file."))
|
|
1609
1609
|
});
|
|
1610
1610
|
const InputCliOverrideSchema = strictObject({
|
|
1611
1611
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
1
|
+
import { t as require_binding } from "./binding-kg77KQCQ.mjs";
|
|
2
2
|
import { o as logMultiplyNotifyOption } from "./logs-CSQ_UMWp.mjs";
|
|
3
3
|
import { t as arraify } from "./misc-CxyvWjTr.mjs";
|
|
4
|
-
import { w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
5
|
-
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-
|
|
6
|
-
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-
|
|
4
|
+
import { w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-D2CkFbcq.mjs";
|
|
6
|
+
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-6nBAYjYP.mjs";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
9
9
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.52",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\ntype BindingResult<T> = { errors: BindingError[], isBindingErrors: boolean } | T\n\n"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@oxc-project/types": "=0.
|
|
83
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
82
|
+
"@oxc-project/types": "=0.99.0",
|
|
83
|
+
"@rolldown/pluginutils": "1.0.0-beta.52"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@napi-rs/cli": "^3.4.1",
|
|
@@ -90,36 +90,36 @@
|
|
|
90
90
|
"buble": "^0.20.0",
|
|
91
91
|
"consola": "^3.4.2",
|
|
92
92
|
"execa": "^9.2.0",
|
|
93
|
-
"glob": "^
|
|
94
|
-
"oxc-parser": "=0.
|
|
93
|
+
"glob": "^13.0.0",
|
|
94
|
+
"oxc-parser": "=0.99.0",
|
|
95
95
|
"pathe": "^2.0.3",
|
|
96
96
|
"remeda": "^2.10.0",
|
|
97
|
-
"rolldown-plugin-dts": "^0.
|
|
97
|
+
"rolldown-plugin-dts": "^0.18.0",
|
|
98
98
|
"rollup": "^4.18.0",
|
|
99
99
|
"signal-exit": "4.1.0",
|
|
100
100
|
"source-map": "^0.7.4",
|
|
101
101
|
"typescript": "^5.8.3",
|
|
102
102
|
"valibot": "1.1.0",
|
|
103
|
-
"rolldown": "1.0.0-beta.
|
|
103
|
+
"rolldown": "1.0.0-beta.52"
|
|
104
104
|
},
|
|
105
105
|
"engines": {
|
|
106
106
|
"node": "^20.19.0 || >=22.12.0"
|
|
107
107
|
},
|
|
108
108
|
"optionalDependencies": {
|
|
109
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.
|
|
110
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
111
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.
|
|
112
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.
|
|
113
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.
|
|
114
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.
|
|
115
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.
|
|
116
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.
|
|
117
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
118
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
119
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.
|
|
120
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
121
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.
|
|
122
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
109
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.52",
|
|
110
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.52",
|
|
111
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.52",
|
|
112
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.52",
|
|
113
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.52",
|
|
114
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.52",
|
|
115
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.52",
|
|
116
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.52",
|
|
117
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.52",
|
|
118
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.52",
|
|
119
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.52",
|
|
120
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.52",
|
|
121
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.52",
|
|
122
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.52"
|
|
123
123
|
},
|
|
124
124
|
"scripts": {
|
|
125
125
|
"# Scrips for binding #": "_",
|