rolldown 1.0.0-beta.46 → 1.0.0-beta.47
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 +4 -4
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +4 -4
- package/dist/experimental-index.d.mts +3 -3
- package/dist/experimental-index.mjs +5 -4
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/shared/{binding-CCMrV5an.d.mts → binding-BHtM7anm.d.mts} +31 -10
- package/dist/shared/{binding-DOZoR4bu.mjs → binding-DBWhurrz.mjs} +26 -26
- package/dist/shared/{define-config-Czc1YEBi.d.mts → define-config-DdWK1ZyG.d.mts} +1 -1
- package/dist/shared/{load-config-Brje6-4J.mjs → load-config-CQKld1Y8.mjs} +1 -1
- package/dist/shared/{parse-ast-index-oPgrkdqc.mjs → parse-ast-index-B4DJl5-M.mjs} +1 -1
- package/dist/shared/{src-D1weNlnG.mjs → src-BwxUhqZU.mjs} +10 -5
- package/package.json +17 -17
package/dist/cli-setup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-DBWhurrz.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/setup-index.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { C as version, S as description, _ as getOutputCliKeys, g as getInputCliKeys, h as getCliSchemaInfo, i as watch, o as rolldown, v as validateCliOptions, w as onExit } from "./shared/src-
|
|
3
|
-
import { h as styleText$1 } from "./shared/parse-ast-index-
|
|
1
|
+
import "./shared/binding-DBWhurrz.mjs";
|
|
2
|
+
import { C as version, S as description, _ as getOutputCliKeys, g as getInputCliKeys, h as getCliSchemaInfo, i as watch, o as rolldown, v as validateCliOptions, w as onExit } from "./shared/src-BwxUhqZU.mjs";
|
|
3
|
+
import { h as styleText$1 } from "./shared/parse-ast-index-B4DJl5-M.mjs";
|
|
4
4
|
import { t as arraify } from "./shared/misc-usdOVIou.mjs";
|
|
5
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
5
|
+
import { t as loadConfig } from "./shared/load-config-CQKld1Y8.mjs";
|
|
6
6
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
7
7
|
import path, { sep } from "node:path";
|
|
8
8
|
import process$1 from "node:process";
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-
|
|
2
|
-
import "./shared/binding-
|
|
1
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-DdWK1ZyG.mjs";
|
|
2
|
+
import "./shared/binding-BHtM7anm.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { C as version, r as defineConfig } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import "./shared/binding-DBWhurrz.mjs";
|
|
2
|
+
import { C as version, r as defineConfig } from "./shared/src-BwxUhqZU.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-B4DJl5-M.mjs";
|
|
4
4
|
import "./shared/misc-usdOVIou.mjs";
|
|
5
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
5
|
+
import { t as loadConfig } from "./shared/load-config-CQKld1Y8.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/config.ts
|
|
8
8
|
const VERSION = version;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as BuiltinPlugin, N as SourceMapInput, U as defineParallelPlugin, bt as OutputOptions, jt as freeExternalMemory, kt as RolldownOutput, o as InputOptions, wt as StringOrRegExp } from "./shared/define-config-
|
|
2
|
-
import { A as IsolatedDeclarationsOptions, B as
|
|
1
|
+
import { A as BuiltinPlugin, N as SourceMapInput, U as defineParallelPlugin, bt as OutputOptions, jt as freeExternalMemory, kt as RolldownOutput, o as InputOptions, wt as StringOrRegExp } from "./shared/define-config-DdWK1ZyG.mjs";
|
|
2
|
+
import { A as IsolatedDeclarationsOptions, B as ResolverFactory, C as BindingViteCssPluginConfig, D as BindingWasmHelperPluginConfig, E as BindingViteResolvePluginConfig, F as NapiResolveOptions, G as moduleRunnerTransform, H as TransformResult, K as transform, N as MinifyOptions, P as MinifyResult, S as BindingUrlResolver, T as BindingViteHtmlPluginConfig, U as isolatedDeclaration, V as TransformOptions, W as minify, a as BindingClientHmrUpdate, d as BindingJsonPluginConfig, g as BindingRebuildStrategy, h as BindingReactRefreshWrapperPluginConfig, j as IsolatedDeclarationsResult, l as BindingImportGlobPluginConfig, m as BindingModulePreloadPolyfillPluginConfig, n as BindingBuildImportAnalysisPluginConfig, o as BindingDynamicImportVarsPluginConfig, p as BindingManifestPluginConfig, s as BindingEsmExternalRequirePluginConfig, t as BindingAssetPluginConfig, u as BindingIsolatedDeclarationPluginConfig, v as BindingReplacePluginConfig, w as BindingViteCssPostPluginConfig, x as BindingTransformPluginConfig, y as BindingReporterPluginConfig, z as ResolveResult } from "./shared/binding-BHtM7anm.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/dev/dev-options.d.ts
|
|
5
5
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -173,4 +173,4 @@ type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
|
173
173
|
};
|
|
174
174
|
declare function viteCSSPlugin(config?: ViteCssPluginConfig): BuiltinPlugin;
|
|
175
175
|
//#endregion
|
|
176
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, freeExternalMemory, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
176
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, freeExternalMemory, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, minify, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { b as BuiltinPlugin, c as createBundlerOptions, f as normalizeBindingResult, l as normalizedStringOrRegex, m as bindingifySourcemap, p as transformToRollupOutput, s as RolldownBuild, x as makeBuiltinPluginCallable, y as PluginDriver } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-DBWhurrz.mjs";
|
|
2
|
+
import { b as BuiltinPlugin, c as createBundlerOptions, f as normalizeBindingResult, l as normalizedStringOrRegex, m as bindingifySourcemap, p as transformToRollupOutput, s as RolldownBuild, x as makeBuiltinPluginCallable, y as PluginDriver } from "./shared/src-BwxUhqZU.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-B4DJl5-M.mjs";
|
|
4
4
|
import "./shared/misc-usdOVIou.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
@@ -300,6 +300,7 @@ var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
|
300
300
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
301
301
|
var ResolverFactory = import_binding.ResolverFactory;
|
|
302
302
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
303
|
+
var minify = import_binding.minify;
|
|
303
304
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
304
305
|
var transform = import_binding.transform;
|
|
305
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, freeExternalMemory, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
306
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, freeExternalMemory, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, minify, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as withFilter } from "./shared/define-config-
|
|
2
|
-
import "./shared/binding-
|
|
1
|
+
import { k as withFilter } from "./shared/define-config-DdWK1ZyG.mjs";
|
|
2
|
+
import "./shared/binding-BHtM7anm.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as InternalModuleFormat, At as SourceMap, B as GetModuleInfo, C as ResolveIdResult, Ct as PartialNull, D as SourceDescription, Dt as RenderedChunk, E as RolldownPluginOption, Et as OutputChunk, F as OutputBundle, Ft as LogLevelOption, G as PluginContextMeta, H as DefineParallelPluginResult, I as TreeshakingOptions, It as LogOrStringHandler, J as ModuleTypeFilter, K as GeneralHookFilter, L as TransformPluginContext, Lt as RollupError, M as ExistingRawSourceMap, Mt as ModuleInfo, N as SourceMapInput, Nt as SourcemapIgnoreListOption, O as TransformResult, Ot as RenderedModule, P as RolldownOptionsFunction, Pt as LogLevel, Q as RolldownFsModule, R as EmittedAsset, Rt as RollupLog, S as ResolveIdExtraOptions, T as RolldownPlugin, Tt as OutputAsset, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as GlobalsFunction, a as InputOption, at as RolldownWatcher, b as PartialResolvedId, bt as OutputOptions, c as OptimizationOptions, ct as rolldown, d as CustomPluginOptions, dt as build, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as AddonFunction, g as ModuleOptions, gt as GeneratedCodePreset, h as LoadResult, ht as GeneratedCodeOptions, i as ExternalOption, it as watch, j as VERSION, kt as RolldownOutput, l as WatcherOptions, lt as RolldownBuild, m as ImportKind, mt as ChunkingContext, n as ConfigExport, nt as LoggingFunction, o as InputOptions, ot as RolldownWatcherEvent, p as HookFilterExtension, pt as ChunkFileNamesFunction, q as HookFilter, r as RolldownOptions, rt as WarningHandlerWithDefault, s as ModuleTypes, st as WatchOptions, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as BuildOptions, v as ObjectHook, vt as MinifyOptions, w as ResolvedId, x as Plugin, xt as PreRenderedAsset, y as ParallelPluginHooks, yt as ModuleFormat, z as EmittedFile, zt as RollupLogWithString } from "./shared/define-config-
|
|
2
|
-
import {
|
|
1
|
+
import { $ as InternalModuleFormat, At as SourceMap, B as GetModuleInfo, C as ResolveIdResult, Ct as PartialNull, D as SourceDescription, Dt as RenderedChunk, E as RolldownPluginOption, Et as OutputChunk, F as OutputBundle, Ft as LogLevelOption, G as PluginContextMeta, H as DefineParallelPluginResult, I as TreeshakingOptions, It as LogOrStringHandler, J as ModuleTypeFilter, K as GeneralHookFilter, L as TransformPluginContext, Lt as RollupError, M as ExistingRawSourceMap, Mt as ModuleInfo, N as SourceMapInput, Nt as SourcemapIgnoreListOption, O as TransformResult, Ot as RenderedModule, P as RolldownOptionsFunction, Pt as LogLevel, Q as RolldownFsModule, R as EmittedAsset, Rt as RollupLog, S as ResolveIdExtraOptions, T as RolldownPlugin, Tt as OutputAsset, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as GlobalsFunction, a as InputOption, at as RolldownWatcher, b as PartialResolvedId, bt as OutputOptions, c as OptimizationOptions, ct as rolldown, d as CustomPluginOptions, dt as build, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as AddonFunction, g as ModuleOptions, gt as GeneratedCodePreset, h as LoadResult, ht as GeneratedCodeOptions, i as ExternalOption, it as watch, j as VERSION, kt as RolldownOutput, l as WatcherOptions, lt as RolldownBuild, m as ImportKind, mt as ChunkingContext, n as ConfigExport, nt as LoggingFunction, o as InputOptions, ot as RolldownWatcherEvent, p as HookFilterExtension, pt as ChunkFileNamesFunction, q as HookFilter, r as RolldownOptions, rt as WarningHandlerWithDefault, s as ModuleTypes, st as WatchOptions, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as BuildOptions, v as ObjectHook, vt as MinifyOptions, w as ResolvedId, x as Plugin, xt as PreRenderedAsset, y as ParallelPluginHooks, yt as ModuleFormat, z as EmittedFile, zt as RollupLogWithString } from "./shared/define-config-DdWK1ZyG.mjs";
|
|
2
|
+
import { R as PreRenderedChunk, f as BindingMagicString } from "./shared/binding-BHtM7anm.mjs";
|
|
3
3
|
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,6 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { a as build, i as watch, n as import_binding, o as rolldown, r as defineConfig, t as VERSION } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import "./shared/binding-DBWhurrz.mjs";
|
|
2
|
+
import { a as build, i as watch, n as import_binding, o as rolldown, r as defineConfig, t as VERSION } from "./shared/src-BwxUhqZU.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-B4DJl5-M.mjs";
|
|
4
4
|
import "./shared/misc-usdOVIou.mjs";
|
|
5
5
|
|
|
6
6
|
var BindingMagicString = import_binding.BindingMagicString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { d as bindingifyPlugin, u as PluginContextData } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-DBWhurrz.mjs";
|
|
2
|
+
import { d as bindingifyPlugin, u as PluginContextData } from "./shared/src-BwxUhqZU.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-B4DJl5-M.mjs";
|
|
4
4
|
import "./shared/misc-usdOVIou.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { St as MaybePromise, x as Plugin } from "./shared/define-config-
|
|
2
|
-
import "./shared/binding-
|
|
1
|
+
import { St as MaybePromise, x as Plugin } from "./shared/define-config-DdWK1ZyG.mjs";
|
|
2
|
+
import "./shared/binding-BHtM7anm.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-
|
|
1
|
+
import "./shared/binding-DBWhurrz.mjs";
|
|
2
|
+
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-B4DJl5-M.mjs";
|
|
3
3
|
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
@@ -126,6 +126,8 @@ interface MangleOptionsKeepNames {
|
|
|
126
126
|
*/
|
|
127
127
|
class: boolean;
|
|
128
128
|
}
|
|
129
|
+
/** Minify synchronously. */
|
|
130
|
+
declare function minify(filename: string, sourceText: string, options?: MinifyOptions | undefined | null): MinifyResult;
|
|
129
131
|
interface MinifyOptions {
|
|
130
132
|
/** Use when minifying an ES6 module. */
|
|
131
133
|
module?: boolean;
|
|
@@ -134,6 +136,11 @@ interface MinifyOptions {
|
|
|
134
136
|
codegen?: boolean | CodegenOptions;
|
|
135
137
|
sourcemap?: boolean;
|
|
136
138
|
}
|
|
139
|
+
interface MinifyResult {
|
|
140
|
+
code: string;
|
|
141
|
+
map?: SourceMap;
|
|
142
|
+
errors: Array<OxcError>;
|
|
143
|
+
}
|
|
137
144
|
interface Comment {
|
|
138
145
|
type: 'Line' | 'Block';
|
|
139
146
|
value: string;
|
|
@@ -1204,6 +1211,10 @@ declare class BindingMagicString {
|
|
|
1204
1211
|
hasChanged(): boolean;
|
|
1205
1212
|
length(): number;
|
|
1206
1213
|
isEmpty(): boolean;
|
|
1214
|
+
remove(start: number, end: number): void;
|
|
1215
|
+
update(start: number, end: number, content: string): void;
|
|
1216
|
+
relocate(start: number, end: number, to: number): void;
|
|
1217
|
+
indent(indentor?: string | undefined | null): void;
|
|
1207
1218
|
}
|
|
1208
1219
|
declare class BindingOutputAsset {
|
|
1209
1220
|
dropInner(): ExternalMemoryStatus;
|
|
@@ -1271,7 +1282,7 @@ interface BindingAssetPluginConfig {
|
|
|
1271
1282
|
isSkipAssets: boolean;
|
|
1272
1283
|
assetsInclude: Array<BindingStringOrRegex>;
|
|
1273
1284
|
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1274
|
-
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) =>
|
|
1285
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1275
1286
|
}
|
|
1276
1287
|
interface BindingAssetSource {
|
|
1277
1288
|
inner: string | Uint8Array;
|
|
@@ -1282,7 +1293,14 @@ interface BindingBuildImportAnalysisPluginConfig {
|
|
|
1282
1293
|
optimizeModulePreloadRelativePaths: boolean;
|
|
1283
1294
|
renderBuiltUrl: boolean;
|
|
1284
1295
|
isRelativeBase: boolean;
|
|
1285
|
-
|
|
1296
|
+
v2?: BindingBuildImportAnalysisPluginV2Config;
|
|
1297
|
+
}
|
|
1298
|
+
interface BindingBuildImportAnalysisPluginV2Config {
|
|
1299
|
+
isSsr: boolean;
|
|
1300
|
+
urlBase: string;
|
|
1301
|
+
decodedBase: string;
|
|
1302
|
+
modulePreload: false | BindingModulePreloadOptions;
|
|
1303
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1286
1304
|
}
|
|
1287
1305
|
type BindingBuiltinPluginName = 'builtin:alias' | 'builtin:asset' | 'builtin:asset-import-meta-url' | 'builtin:build-import-analysis' | 'builtin:dynamic-import-vars' | 'builtin:esm-external-require' | 'builtin:import-glob' | 'builtin:isolated-declaration' | 'builtin:json' | 'builtin:load-fallback' | 'builtin:manifest' | 'builtin:module-preload-polyfill' | 'builtin:react-refresh-wrapper' | 'builtin:reporter' | 'builtin:replace' | 'builtin:transform' | 'builtin:vite-css' | 'builtin:vite-css-post' | 'builtin:vite-html' | 'builtin:vite-resolve' | 'builtin:wasm-fallback' | 'builtin:wasm-helper' | 'builtin:web-worker-post';
|
|
1288
1306
|
interface BindingClientHmrUpdate {
|
|
@@ -1365,6 +1383,13 @@ interface BindingManifestPluginConfig {
|
|
|
1365
1383
|
isLegacy?: () => boolean;
|
|
1366
1384
|
cssEntries: () => Record<string, string>;
|
|
1367
1385
|
}
|
|
1386
|
+
interface BindingModulePreloadOptions {
|
|
1387
|
+
polyfill: boolean;
|
|
1388
|
+
resolveDependencies?: (filename: string, deps: string[], context: {
|
|
1389
|
+
hostId: string;
|
|
1390
|
+
hostType: 'html' | 'js';
|
|
1391
|
+
}) => string[];
|
|
1392
|
+
}
|
|
1368
1393
|
interface BindingModulePreloadPolyfillPluginConfig {
|
|
1369
1394
|
isServer?: boolean;
|
|
1370
1395
|
}
|
|
@@ -1454,7 +1479,7 @@ interface BindingViteCssPostPluginConfig {
|
|
|
1454
1479
|
libCssFilename?: string;
|
|
1455
1480
|
isLegacy?: () => boolean;
|
|
1456
1481
|
cssMinify?: (css: string) => Promise<string>;
|
|
1457
|
-
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) =>
|
|
1482
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1458
1483
|
}
|
|
1459
1484
|
interface BindingViteHtmlPluginConfig {
|
|
1460
1485
|
isLib: boolean;
|
|
@@ -1463,13 +1488,9 @@ interface BindingViteHtmlPluginConfig {
|
|
|
1463
1488
|
publicDir: string;
|
|
1464
1489
|
decodedBase: string;
|
|
1465
1490
|
cssCodeSplit: boolean;
|
|
1466
|
-
|
|
1491
|
+
modulePreload: false | BindingModulePreloadOptions;
|
|
1467
1492
|
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1468
|
-
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) =>
|
|
1469
|
-
resolveDependencies?: boolean | ((filename: string, dependencies: string[], context: {
|
|
1470
|
-
hostId: string;
|
|
1471
|
-
hostType: 'html' | 'js';
|
|
1472
|
-
}) => Promise<string[]>);
|
|
1493
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1473
1494
|
}
|
|
1474
1495
|
interface BindingViteResolvePluginConfig {
|
|
1475
1496
|
resolveOptions: BindingViteResolvePluginResolveOptions;
|
|
@@ -1524,4 +1545,4 @@ interface PreRenderedChunk {
|
|
|
1524
1545
|
exports: Array<string>;
|
|
1525
1546
|
}
|
|
1526
1547
|
//#endregion
|
|
1527
|
-
export { IsolatedDeclarationsOptions as A,
|
|
1548
|
+
export { IsolatedDeclarationsOptions as A, ResolverFactory as B, BindingViteCssPluginConfig as C, BindingWasmHelperPluginConfig as D, BindingViteResolvePluginConfig as E, NapiResolveOptions as F, moduleRunnerTransform as G, TransformResult as H, ParseResult as I, transform as K, ParserOptions as L, JsxOptions as M, MinifyOptions as N, BindingWatcherEvent as O, MinifyResult as P, PreRenderedChunk as R, BindingUrlResolver as S, BindingViteHtmlPluginConfig as T, isolatedDeclaration as U, TransformOptions as V, minify as W, BindingRenderedChunk as _, BindingClientHmrUpdate as a, BindingTransformHookExtraArgs as b, BindingHookResolveIdExtraArgs as c, BindingJsonPluginConfig as d, BindingMagicString as f, BindingRebuildStrategy as g, BindingReactRefreshWrapperPluginConfig as h, BindingBundlerImpl as i, IsolatedDeclarationsResult as j, ExternalMemoryStatus as k, BindingImportGlobPluginConfig as l, BindingModulePreloadPolyfillPluginConfig as m, BindingBuildImportAnalysisPluginConfig as n, BindingDynamicImportVarsPluginConfig as o, BindingManifestPluginConfig as p, BindingBuiltinPluginName as r, BindingEsmExternalRequirePluginConfig as s, BindingAssetPluginConfig as t, BindingIsolatedDeclarationPluginConfig as u, BindingReplacePluginConfig as v, BindingViteCssPostPluginConfig as w, BindingTransformPluginConfig as x, BindingReporterPluginConfig as y, ResolveResult as z };
|
|
@@ -108,7 +108,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
108
108
|
try {
|
|
109
109
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
110
110
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
111
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
111
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
112
112
|
return binding;
|
|
113
113
|
} catch (e) {
|
|
114
114
|
loadErrors.push(e);
|
|
@@ -122,7 +122,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
122
122
|
try {
|
|
123
123
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
124
124
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
125
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
125
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
126
126
|
return binding;
|
|
127
127
|
} catch (e) {
|
|
128
128
|
loadErrors.push(e);
|
|
@@ -137,7 +137,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
137
137
|
try {
|
|
138
138
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
139
139
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
140
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
140
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
141
141
|
return binding;
|
|
142
142
|
} catch (e) {
|
|
143
143
|
loadErrors.push(e);
|
|
@@ -151,7 +151,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
151
151
|
try {
|
|
152
152
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
153
153
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
154
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
154
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
155
155
|
return binding;
|
|
156
156
|
} catch (e) {
|
|
157
157
|
loadErrors.push(e);
|
|
@@ -166,7 +166,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
166
166
|
try {
|
|
167
167
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
168
168
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
169
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
169
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
170
170
|
return binding;
|
|
171
171
|
} catch (e) {
|
|
172
172
|
loadErrors.push(e);
|
|
@@ -180,7 +180,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
180
180
|
try {
|
|
181
181
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
182
182
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
183
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
183
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
184
184
|
return binding;
|
|
185
185
|
} catch (e) {
|
|
186
186
|
loadErrors.push(e);
|
|
@@ -195,7 +195,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
195
195
|
try {
|
|
196
196
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
197
197
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
198
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
198
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
199
199
|
return binding;
|
|
200
200
|
} catch (e) {
|
|
201
201
|
loadErrors.push(e);
|
|
@@ -209,7 +209,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
209
209
|
try {
|
|
210
210
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
211
211
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
212
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
212
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
213
213
|
return binding;
|
|
214
214
|
} catch (e) {
|
|
215
215
|
loadErrors.push(e);
|
|
@@ -223,7 +223,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
223
223
|
try {
|
|
224
224
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
225
225
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
226
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
226
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
227
227
|
return binding;
|
|
228
228
|
} catch (e) {
|
|
229
229
|
loadErrors.push(e);
|
|
@@ -238,7 +238,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
238
238
|
try {
|
|
239
239
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
240
240
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
241
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
241
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
242
242
|
return binding;
|
|
243
243
|
} catch (e) {
|
|
244
244
|
loadErrors.push(e);
|
|
@@ -252,7 +252,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
252
252
|
try {
|
|
253
253
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
254
254
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
255
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
255
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
256
256
|
return binding;
|
|
257
257
|
} catch (e) {
|
|
258
258
|
loadErrors.push(e);
|
|
@@ -267,7 +267,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
267
267
|
try {
|
|
268
268
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
269
269
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
270
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
270
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
271
271
|
return binding;
|
|
272
272
|
} catch (e) {
|
|
273
273
|
loadErrors.push(e);
|
|
@@ -281,7 +281,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
281
281
|
try {
|
|
282
282
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
283
283
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
284
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
284
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
285
285
|
return binding;
|
|
286
286
|
} catch (e) {
|
|
287
287
|
loadErrors.push(e);
|
|
@@ -296,7 +296,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
296
296
|
try {
|
|
297
297
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
298
298
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
299
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
299
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
300
300
|
return binding;
|
|
301
301
|
} catch (e) {
|
|
302
302
|
loadErrors.push(e);
|
|
@@ -310,7 +310,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
310
310
|
try {
|
|
311
311
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
312
312
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
313
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
313
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
314
314
|
return binding;
|
|
315
315
|
} catch (e) {
|
|
316
316
|
loadErrors.push(e);
|
|
@@ -325,7 +325,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
325
325
|
try {
|
|
326
326
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
327
327
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
328
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
328
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
329
329
|
return binding;
|
|
330
330
|
} catch (e) {
|
|
331
331
|
loadErrors.push(e);
|
|
@@ -339,7 +339,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
339
339
|
try {
|
|
340
340
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
341
341
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
342
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
342
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
343
343
|
return binding;
|
|
344
344
|
} catch (e) {
|
|
345
345
|
loadErrors.push(e);
|
|
@@ -354,7 +354,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
354
354
|
try {
|
|
355
355
|
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
356
356
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
357
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
357
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
358
358
|
return binding;
|
|
359
359
|
} catch (e) {
|
|
360
360
|
loadErrors.push(e);
|
|
@@ -368,7 +368,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
368
368
|
try {
|
|
369
369
|
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
370
370
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
371
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
371
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
372
372
|
return binding;
|
|
373
373
|
} catch (e) {
|
|
374
374
|
loadErrors.push(e);
|
|
@@ -383,7 +383,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
383
383
|
try {
|
|
384
384
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
385
385
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
386
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
386
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
387
387
|
return binding;
|
|
388
388
|
} catch (e) {
|
|
389
389
|
loadErrors.push(e);
|
|
@@ -397,7 +397,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
397
397
|
try {
|
|
398
398
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
399
399
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
400
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
400
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
401
401
|
return binding;
|
|
402
402
|
} catch (e) {
|
|
403
403
|
loadErrors.push(e);
|
|
@@ -412,7 +412,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
412
412
|
try {
|
|
413
413
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
414
414
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
415
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
415
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
416
416
|
return binding;
|
|
417
417
|
} catch (e) {
|
|
418
418
|
loadErrors.push(e);
|
|
@@ -426,7 +426,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
426
426
|
try {
|
|
427
427
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
428
428
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
429
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
429
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
430
430
|
return binding;
|
|
431
431
|
} catch (e) {
|
|
432
432
|
loadErrors.push(e);
|
|
@@ -441,7 +441,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
441
441
|
try {
|
|
442
442
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
443
443
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
444
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
444
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
445
445
|
return binding;
|
|
446
446
|
} catch (e) {
|
|
447
447
|
loadErrors.push(e);
|
|
@@ -455,7 +455,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
455
455
|
try {
|
|
456
456
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
457
457
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
458
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
458
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
459
459
|
return binding;
|
|
460
460
|
} catch (e) {
|
|
461
461
|
loadErrors.push(e);
|
|
@@ -469,7 +469,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
469
469
|
try {
|
|
470
470
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
471
471
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
472
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
472
|
+
if (bindingPackageVersion !== "1.0.0-beta.47" && 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.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
473
473
|
return binding;
|
|
474
474
|
} catch (e) {
|
|
475
475
|
loadErrors.push(e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as ParserOptions, M as JsxOptions, N as MinifyOptions$1, O as BindingWatcherEvent, R as PreRenderedChunk, V as TransformOptions$1, _ as BindingRenderedChunk, b as BindingTransformHookExtraArgs, c as BindingHookResolveIdExtraArgs, f as BindingMagicString, i as BindingBundlerImpl, k as ExternalMemoryStatus, r as BindingBuiltinPluginName } from "./binding-BHtM7anm.mjs";
|
|
2
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as logCycleLoading, c as logDeprecatedInject, d as logInputHookInOutputPlugin, f as logInvalidLogPosition, h as styleText, i as error, l as logDeprecatedKeepNames, m as logPluginError, o as logDeprecatedDefine, p as logMultiplyNotifyOption, r as augmentCodeLocation, s as logDeprecatedDropLabels, t as parseAst, u as logDeprecatedProfilerNames } from "./parse-ast-index-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-DBWhurrz.mjs";
|
|
2
|
+
import { a as logCycleLoading, c as logDeprecatedInject, d as logInputHookInOutputPlugin, f as logInvalidLogPosition, h as styleText, i as error, l as logDeprecatedKeepNames, m as logPluginError, o as logDeprecatedDefine, p as logMultiplyNotifyOption, r as augmentCodeLocation, s as logDeprecatedDropLabels, t as parseAst, u as logDeprecatedProfilerNames } from "./parse-ast-index-B4DJl5-M.mjs";
|
|
3
3
|
import { a as unreachable, i as unimplemented, o as unsupported, r as noop, t as arraify } from "./misc-usdOVIou.mjs";
|
|
4
4
|
import { Worker, isMainThread } from "node:worker_threads";
|
|
5
5
|
import path from "node:path";
|
|
@@ -219,7 +219,7 @@ if (isMainThread) {
|
|
|
219
219
|
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region package.json
|
|
222
|
-
var version = "1.0.0-beta.
|
|
222
|
+
var version = "1.0.0-beta.47";
|
|
223
223
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
224
224
|
|
|
225
225
|
//#endregion
|
|
@@ -3127,11 +3127,15 @@ function bindingifyTransform(args$1) {
|
|
|
3127
3127
|
const { handler, meta, options } = normalizeHook(hook);
|
|
3128
3128
|
return {
|
|
3129
3129
|
plugin: async (ctx, code, id, meta$1) => {
|
|
3130
|
+
let magicStringInstance, astInstance;
|
|
3130
3131
|
Object.defineProperties(meta$1, {
|
|
3131
3132
|
magicString: { get() {
|
|
3132
|
-
|
|
3133
|
+
if (magicStringInstance) return magicStringInstance;
|
|
3134
|
+
magicStringInstance = new import_binding$5.BindingMagicString(code);
|
|
3135
|
+
return magicStringInstance;
|
|
3133
3136
|
} },
|
|
3134
3137
|
ast: { get() {
|
|
3138
|
+
if (astInstance) return astInstance;
|
|
3135
3139
|
let lang = "js";
|
|
3136
3140
|
switch (meta$1.moduleType) {
|
|
3137
3141
|
case "js":
|
|
@@ -3142,10 +3146,11 @@ function bindingifyTransform(args$1) {
|
|
|
3142
3146
|
break;
|
|
3143
3147
|
default: break;
|
|
3144
3148
|
}
|
|
3145
|
-
|
|
3149
|
+
astInstance = parseAst(code, {
|
|
3146
3150
|
astType: meta$1.moduleType.includes("ts") ? "ts" : "js",
|
|
3147
3151
|
lang
|
|
3148
3152
|
});
|
|
3153
|
+
return astInstance;
|
|
3149
3154
|
} }
|
|
3150
3155
|
});
|
|
3151
3156
|
const transformCtx = new TransformPluginContextImpl(args$1.outputOptions, ctx.inner(), args$1.plugin, args$1.pluginContextData, ctx, id, code, args$1.onLog, args$1.logLevel, args$1.watchMode);
|
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.47",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@oxc-project/types": "=0.96.0",
|
|
82
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
82
|
+
"@rolldown/pluginutils": "1.0.0-beta.47"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@napi-rs/cli": "^3.4.1",
|
|
@@ -99,26 +99,26 @@
|
|
|
99
99
|
"source-map": "^0.7.4",
|
|
100
100
|
"typescript": "^5.8.3",
|
|
101
101
|
"valibot": "1.1.0",
|
|
102
|
-
"rolldown": "1.0.0-beta.
|
|
102
|
+
"rolldown": "1.0.0-beta.47"
|
|
103
103
|
},
|
|
104
104
|
"engines": {
|
|
105
105
|
"node": "^20.19.0 || >=22.12.0"
|
|
106
106
|
},
|
|
107
107
|
"optionalDependencies": {
|
|
108
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.
|
|
109
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
110
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.
|
|
111
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.
|
|
112
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.
|
|
113
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.
|
|
114
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.
|
|
115
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.
|
|
116
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
117
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
118
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.
|
|
119
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
120
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.
|
|
121
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
108
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.47",
|
|
109
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.47",
|
|
110
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.47",
|
|
111
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.47",
|
|
112
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.47",
|
|
113
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.47",
|
|
114
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.47",
|
|
115
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.47",
|
|
116
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.47",
|
|
117
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.47",
|
|
118
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.47",
|
|
119
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.47",
|
|
120
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.47",
|
|
121
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.47"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"# Scrips for binding #": "_",
|