rolldown 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +8 -8
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +2 -2
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-CKyeQZen.mjs → binding-Zhafd14U.mjs} +27 -27
- package/dist/shared/{bindingify-input-options-CMab5gbt.mjs → bindingify-input-options-C-Zsy1EG.mjs} +5 -5
- package/dist/shared/{constructors-XaIbWpwJ.d.mts → constructors-CGzna3vk.d.mts} +1 -1
- package/dist/shared/{constructors-6Zc-JFd7.mjs → constructors-u6EEiG8n.mjs} +1 -1
- package/dist/shared/{create-bundler-option-BZD-ER-Z.mjs → create-bundler-option-wRiQzEJ3.mjs} +3 -3
- package/dist/shared/{define-config-DVsXPNaU.d.mts → define-config-Dsp5YQR4.d.mts} +3 -2
- package/dist/shared/{error-BzLGqhSQ.mjs → error-CVc7IgvG.mjs} +1 -1
- package/dist/shared/{load-config-ChaLPL3M.mjs → load-config-63nAW5KO.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-DYjJ67tj.mjs → normalize-string-or-regex-BxRYnPRv.mjs} +1 -1
- package/dist/shared/{parse-CWXBoSKb.mjs → parse-DnWvq9XZ.mjs} +2 -2
- package/dist/shared/{resolve-tsconfig-Bcd82vVT.mjs → resolve-tsconfig-SPewz4V3.mjs} +2 -2
- package/dist/shared/{rolldown-I5b6h5Km.mjs → rolldown-DiYVDns9.mjs} +4 -4
- package/dist/shared/{watch-BW4p8Vif.mjs → watch-BNCfUBmW.mjs} +4 -4
- package/dist/utils-index.d.mts +1 -1
- package/dist/utils-index.mjs +5 -5
- package/package.json +22 -21
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { D as version, E as description } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BNCfUBmW.mjs";
|
|
2
|
+
import { D as version, E as description } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-DOSKtd97.mjs";
|
|
4
|
-
import { a as getOutputCliKeys, c as styleText, i as getInputCliKeys, n as logger, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/create-bundler-option-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { a as getOutputCliKeys, c as styleText, i as getInputCliKeys, n as logger, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/create-bundler-option-wRiQzEJ3.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-DiYVDns9.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-63nAW5KO.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import g$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
@@ -866,7 +866,7 @@ function getClearScreenFunction(options) {
|
|
|
866
866
|
};
|
|
867
867
|
}
|
|
868
868
|
//#endregion
|
|
869
|
-
//#region \0@oxc-project+runtime@0.
|
|
869
|
+
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/usingCtx.js
|
|
870
870
|
function _usingCtx() {
|
|
871
871
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
872
872
|
var n = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-
|
|
1
|
+
import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-Dsp5YQR4.mjs";
|
|
2
2
|
//#region src/utils/load-config.d.ts
|
|
3
3
|
type ConfigLoader = "bundle" | "native";
|
|
4
4
|
interface LoadConfigOptions {
|
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as VERSION } from "./shared/bindingify-input-options-
|
|
1
|
+
import { T as VERSION } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
|
|
2
2
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
3
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-63nAW5KO.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { H as ResolverFactory, J as moduleRunnerTransform, K as isolatedDeclaration, L as NapiResolveOptions, M as IsolatedDeclarationsOptions, N as IsolatedDeclarationsResult, V as ResolveResult, _ as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, k as BindingViteTransformPluginConfig, n as BindingBundleAnalyzerPluginConfig, p as BindingRebuildStrategy, q as isolatedDeclarationSync, r as BindingBundleState, u as BindingLazyChunkOutput, v as BindingTsconfigRawOptions, w as BindingViteManifestPluginConfig } from "./shared/binding-CVtkJvyl.mjs";
|
|
2
|
-
import { $ as defineParallelPlugin, Gt as StringOrRegExp, I as BuiltinPlugin, Qt as freeExternalMemory, Vt as OutputOptions, Xt as RolldownOutput, l as InputOptions, ut as NormalizedOutputOptions } from "./shared/define-config-
|
|
2
|
+
import { $ as defineParallelPlugin, Gt as StringOrRegExp, I as BuiltinPlugin, Qt as freeExternalMemory, Vt as OutputOptions, Xt as RolldownOutput, l as InputOptions, ut as NormalizedOutputOptions } from "./shared/define-config-Dsp5YQR4.mjs";
|
|
3
3
|
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-WmU_cI8e.mjs";
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CGzna3vk.mjs";
|
|
5
5
|
//#region src/api/dev/dev-options.d.ts
|
|
6
6
|
type DevOnHmrUpdates = (result: Error | {
|
|
7
7
|
updates: BindingClientHmrUpdate[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { u as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
4
|
-
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
8
|
-
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-Zhafd14U.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BxRYnPRv.mjs";
|
|
3
|
+
import { u as transformToRollupOutput } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
|
|
4
|
+
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-wRiQzEJ3.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CVc7IgvG.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-DnWvq9XZ.mjs";
|
|
7
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-u6EEiG8n.mjs";
|
|
8
|
+
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-SPewz4V3.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
//#region src/api/dev/dev-engine.ts
|
|
11
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as withFilter } from "./shared/define-config-
|
|
1
|
+
import { F as withFilter } from "./shared/define-config-Dsp5YQR4.mjs";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
|
|
3
3
|
//#region src/filter/composable-filters.d.ts
|
|
4
4
|
type StringOrRegExp = string | RegExp;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-xuHO4mAy.mjs";
|
|
2
2
|
import { B as PreRenderedChunk } from "./shared/binding-CVtkJvyl.mjs";
|
|
3
|
-
import { $t as ModuleInfo, A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as ModuleFormat, C as ParallelPluginHooks, Ct as RolldownBuild, D as ResolveFileUrlArgs, Dt as AdvancedChunksGroup, E as PluginMeta, Et as AddonFunction, Ft as CommentsOptions, G as EmittedAsset, H as OutputBundle, Ht as PreRenderedAsset, It as GeneratedCodeOptions, J as EmittedPrebuiltChunk, Jt as RenderedChunk, K as EmittedChunk, Kt as OutputAsset, L as RUNTIME_MODULE_ID, Lt as GeneratedCodePreset, M as RolldownPluginOption, Mt as CodeSplittingGroup, N as SourceDescription, Nt as CodeSplittingNameFunction, O as ResolveIdExtraOptions, Ot as AdvancedChunksOptions, P as TransformResult, Pt as CodeSplittingOptions, Q as DefineParallelPluginResult, R as VERSION, Rt as GlobalsFunction, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, V as SourceMapInput, Vt as OutputOptions, W as TransformPluginContext, Wt as PartialNull, X as PluginContext, Xt as RolldownOutput, Y as GetModuleInfo, Yt as RenderedModule, Z as PluginContextResolveOptions, Zt as SourceMap, _ as HookFilterExtension, _t as watch, a as ChunkOptimizationOptions, at as BufferEncoding, b as ModuleOptions, bt as RolldownWatcherWatcherEventMap, c as InputOption, ct as RolldownFsModule, d as OptimizationOptions, dt as NormalizedInputOptions, en as SourcemapIgnoreListOption, et as MinimalPluginContext, f as WatcherFileWatcherOptions, ft as TransformOptions, g as FunctionPluginHooks, gt as RolldownMagicString, h as CustomPluginOptions, ht as WarningHandlerWithDefault, i as RolldownOptions, it as ModuleTypeFilter, j as RolldownPlugin, jt as ChunkingContext, k as ResolveIdResult, kt as BuiltinModuleTag, l as InputOptions, lt as InternalModuleFormat, m as AsyncPluginHooks, mt as LoggingFunction, n as RolldownOptionsFunction, nt as GeneralHookFilter, o as ExternalOption, ot as RolldownDirectoryEntry, p as WatcherOptions, pt as ChecksOptions, q as EmittedFile, qt as OutputChunk, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tt as PluginContextMeta, u as ModuleTypes, ut as NormalizedOutputOptions, v as ImportKind, vt as RolldownWatcher, w as PartialResolvedId, wt as BuildOptions, x as ModuleType, xt as WatchOptions, y as LoadResult, yt as RolldownWatcherEvent, z as BundleError, zt as MinifyOptions } from "./shared/define-config-
|
|
3
|
+
import { $t as ModuleInfo, A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as ModuleFormat, C as ParallelPluginHooks, Ct as RolldownBuild, D as ResolveFileUrlArgs, Dt as AdvancedChunksGroup, E as PluginMeta, Et as AddonFunction, Ft as CommentsOptions, G as EmittedAsset, H as OutputBundle, Ht as PreRenderedAsset, It as GeneratedCodeOptions, J as EmittedPrebuiltChunk, Jt as RenderedChunk, K as EmittedChunk, Kt as OutputAsset, L as RUNTIME_MODULE_ID, Lt as GeneratedCodePreset, M as RolldownPluginOption, Mt as CodeSplittingGroup, N as SourceDescription, Nt as CodeSplittingNameFunction, O as ResolveIdExtraOptions, Ot as AdvancedChunksOptions, P as TransformResult, Pt as CodeSplittingOptions, Q as DefineParallelPluginResult, R as VERSION, Rt as GlobalsFunction, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, V as SourceMapInput, Vt as OutputOptions, W as TransformPluginContext, Wt as PartialNull, X as PluginContext, Xt as RolldownOutput, Y as GetModuleInfo, Yt as RenderedModule, Z as PluginContextResolveOptions, Zt as SourceMap, _ as HookFilterExtension, _t as watch, a as ChunkOptimizationOptions, at as BufferEncoding, b as ModuleOptions, bt as RolldownWatcherWatcherEventMap, c as InputOption, ct as RolldownFsModule, d as OptimizationOptions, dt as NormalizedInputOptions, en as SourcemapIgnoreListOption, et as MinimalPluginContext, f as WatcherFileWatcherOptions, ft as TransformOptions, g as FunctionPluginHooks, gt as RolldownMagicString, h as CustomPluginOptions, ht as WarningHandlerWithDefault, i as RolldownOptions, it as ModuleTypeFilter, j as RolldownPlugin, jt as ChunkingContext, k as ResolveIdResult, kt as BuiltinModuleTag, l as InputOptions, lt as InternalModuleFormat, m as AsyncPluginHooks, mt as LoggingFunction, n as RolldownOptionsFunction, nt as GeneralHookFilter, o as ExternalOption, ot as RolldownDirectoryEntry, p as WatcherOptions, pt as ChecksOptions, q as EmittedFile, qt as OutputChunk, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tt as PluginContextMeta, u as ModuleTypes, ut as NormalizedOutputOptions, v as ImportKind, vt as RolldownWatcher, w as PartialResolvedId, wt as BuildOptions, x as ModuleType, xt as WatchOptions, y as LoadResult, yt as RolldownWatcherEvent, z as BundleError, zt as MinifyOptions } from "./shared/define-config-Dsp5YQR4.mjs";
|
|
4
4
|
export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PluginMeta, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveFileUrlArgs, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-
|
|
4
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-Zhafd14U.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BNCfUBmW.mjs";
|
|
3
|
+
import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-DiYVDns9.mjs";
|
|
5
5
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
6
6
|
import { isMainThread } from "node:worker_threads";
|
|
7
7
|
//#region src/setup.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-Zhafd14U.mjs";
|
|
2
|
+
import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
|
5
5
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Plugin, Ut as MaybePromise } from "./shared/define-config-
|
|
1
|
+
import { T as Plugin, Ut as MaybePromise } from "./shared/define-config-Dsp5YQR4.mjs";
|
|
2
2
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
3
3
|
type ParallelPluginImplementation = Plugin;
|
|
4
4
|
type Context = {
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logParseError, d as getCodeFrame, n as error, t as augmentCodeLocation, u as locate } from "./shared/logs-DmYCAKcW.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-DnWvq9XZ.mjs";
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, filename, sourceText) {
|
|
5
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as BindingReplacePluginConfig } from "./shared/binding-CVtkJvyl.mjs";
|
|
2
|
-
import { I as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
2
|
+
import { I as BuiltinPlugin } from "./shared/define-config-Dsp5YQR4.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CGzna3vk.mjs";
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Replaces targeted strings in files while bundling.
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BxRYnPRv.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-u6EEiG8n.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -104,7 +104,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
104
104
|
try {
|
|
105
105
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
106
106
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
107
|
-
if (bindingPackageVersion !== "1.2.
|
|
107
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
108
108
|
return binding;
|
|
109
109
|
} catch (e) {
|
|
110
110
|
loadErrors.push(e);
|
|
@@ -118,7 +118,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
118
118
|
try {
|
|
119
119
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
120
120
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
121
|
-
if (bindingPackageVersion !== "1.2.
|
|
121
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
122
122
|
return binding;
|
|
123
123
|
} catch (e) {
|
|
124
124
|
loadErrors.push(e);
|
|
@@ -135,7 +135,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
135
135
|
try {
|
|
136
136
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
137
137
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
138
|
-
if (bindingPackageVersion !== "1.2.
|
|
138
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
139
139
|
return binding;
|
|
140
140
|
} catch (e) {
|
|
141
141
|
loadErrors.push(e);
|
|
@@ -149,7 +149,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
149
149
|
try {
|
|
150
150
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
151
151
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
152
|
-
if (bindingPackageVersion !== "1.2.
|
|
152
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
153
153
|
return binding;
|
|
154
154
|
} catch (e) {
|
|
155
155
|
loadErrors.push(e);
|
|
@@ -164,7 +164,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
164
164
|
try {
|
|
165
165
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
166
166
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
167
|
-
if (bindingPackageVersion !== "1.2.
|
|
167
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
168
168
|
return binding;
|
|
169
169
|
} catch (e) {
|
|
170
170
|
loadErrors.push(e);
|
|
@@ -178,7 +178,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
178
178
|
try {
|
|
179
179
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
180
180
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
181
|
-
if (bindingPackageVersion !== "1.2.
|
|
181
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
182
182
|
return binding;
|
|
183
183
|
} catch (e) {
|
|
184
184
|
loadErrors.push(e);
|
|
@@ -193,7 +193,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
193
193
|
try {
|
|
194
194
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
195
195
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
196
|
-
if (bindingPackageVersion !== "1.2.
|
|
196
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
197
197
|
return binding;
|
|
198
198
|
} catch (e) {
|
|
199
199
|
loadErrors.push(e);
|
|
@@ -207,7 +207,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
207
207
|
try {
|
|
208
208
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
209
209
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
210
|
-
if (bindingPackageVersion !== "1.2.
|
|
210
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
211
211
|
return binding;
|
|
212
212
|
} catch (e) {
|
|
213
213
|
loadErrors.push(e);
|
|
@@ -221,7 +221,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
221
221
|
try {
|
|
222
222
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
223
223
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
224
|
-
if (bindingPackageVersion !== "1.2.
|
|
224
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
225
225
|
return binding;
|
|
226
226
|
} catch (e) {
|
|
227
227
|
loadErrors.push(e);
|
|
@@ -237,7 +237,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
237
237
|
try {
|
|
238
238
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
239
239
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
240
|
-
if (bindingPackageVersion !== "1.2.
|
|
240
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
241
241
|
return binding;
|
|
242
242
|
} catch (e) {
|
|
243
243
|
loadErrors.push(e);
|
|
@@ -251,7 +251,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
251
251
|
try {
|
|
252
252
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
253
253
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
254
|
-
if (bindingPackageVersion !== "1.2.
|
|
254
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
255
255
|
return binding;
|
|
256
256
|
} catch (e) {
|
|
257
257
|
loadErrors.push(e);
|
|
@@ -268,7 +268,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
268
268
|
try {
|
|
269
269
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
270
270
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
271
|
-
if (bindingPackageVersion !== "1.2.
|
|
271
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
272
272
|
return binding;
|
|
273
273
|
} catch (e) {
|
|
274
274
|
loadErrors.push(e);
|
|
@@ -282,7 +282,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
282
282
|
try {
|
|
283
283
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
284
284
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
285
|
-
if (bindingPackageVersion !== "1.2.
|
|
285
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
286
286
|
return binding;
|
|
287
287
|
} catch (e) {
|
|
288
288
|
loadErrors.push(e);
|
|
@@ -298,7 +298,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
298
298
|
try {
|
|
299
299
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
300
300
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
301
|
-
if (bindingPackageVersion !== "1.2.
|
|
301
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
302
302
|
return binding;
|
|
303
303
|
} catch (e) {
|
|
304
304
|
loadErrors.push(e);
|
|
@@ -312,7 +312,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
312
312
|
try {
|
|
313
313
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
314
314
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
315
|
-
if (bindingPackageVersion !== "1.2.
|
|
315
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
316
316
|
return binding;
|
|
317
317
|
} catch (e) {
|
|
318
318
|
loadErrors.push(e);
|
|
@@ -328,7 +328,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
328
328
|
try {
|
|
329
329
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
330
330
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
331
|
-
if (bindingPackageVersion !== "1.2.
|
|
331
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
332
332
|
return binding;
|
|
333
333
|
} catch (e) {
|
|
334
334
|
loadErrors.push(e);
|
|
@@ -342,7 +342,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
342
342
|
try {
|
|
343
343
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
344
344
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
345
|
-
if (bindingPackageVersion !== "1.2.
|
|
345
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
346
346
|
return binding;
|
|
347
347
|
} catch (e) {
|
|
348
348
|
loadErrors.push(e);
|
|
@@ -358,7 +358,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
358
358
|
try {
|
|
359
359
|
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
360
360
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
361
|
-
if (bindingPackageVersion !== "1.2.
|
|
361
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
362
362
|
return binding;
|
|
363
363
|
} catch (e) {
|
|
364
364
|
loadErrors.push(e);
|
|
@@ -372,7 +372,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
372
372
|
try {
|
|
373
373
|
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
374
374
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
375
|
-
if (bindingPackageVersion !== "1.2.
|
|
375
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
376
376
|
return binding;
|
|
377
377
|
} catch (e) {
|
|
378
378
|
loadErrors.push(e);
|
|
@@ -388,7 +388,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
388
388
|
try {
|
|
389
389
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
390
390
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
391
|
-
if (bindingPackageVersion !== "1.2.
|
|
391
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
392
392
|
return binding;
|
|
393
393
|
} catch (e) {
|
|
394
394
|
loadErrors.push(e);
|
|
@@ -402,7 +402,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
402
402
|
try {
|
|
403
403
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
404
404
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
405
|
-
if (bindingPackageVersion !== "1.2.
|
|
405
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
406
406
|
return binding;
|
|
407
407
|
} catch (e) {
|
|
408
408
|
loadErrors.push(e);
|
|
@@ -417,7 +417,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
417
417
|
try {
|
|
418
418
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
419
419
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
420
|
-
if (bindingPackageVersion !== "1.2.
|
|
420
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
421
421
|
return binding;
|
|
422
422
|
} catch (e) {
|
|
423
423
|
loadErrors.push(e);
|
|
@@ -431,7 +431,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
431
431
|
try {
|
|
432
432
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
433
433
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
434
|
-
if (bindingPackageVersion !== "1.2.
|
|
434
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
435
435
|
return binding;
|
|
436
436
|
} catch (e) {
|
|
437
437
|
loadErrors.push(e);
|
|
@@ -447,7 +447,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
447
447
|
try {
|
|
448
448
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
449
449
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
450
|
-
if (bindingPackageVersion !== "1.2.
|
|
450
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
451
451
|
return binding;
|
|
452
452
|
} catch (e) {
|
|
453
453
|
loadErrors.push(e);
|
|
@@ -461,7 +461,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
461
461
|
try {
|
|
462
462
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
463
463
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
464
|
-
if (bindingPackageVersion !== "1.2.
|
|
464
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
465
465
|
return binding;
|
|
466
466
|
} catch (e) {
|
|
467
467
|
loadErrors.push(e);
|
|
@@ -475,7 +475,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
475
475
|
try {
|
|
476
476
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
477
477
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
478
|
-
if (bindingPackageVersion !== "1.2.
|
|
478
|
+
if (bindingPackageVersion !== "1.2.4" && 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.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
479
479
|
return binding;
|
|
480
480
|
} catch (e) {
|
|
481
481
|
loadErrors.push(e);
|
|
@@ -565,7 +565,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
565
565
|
if (!candidateFailed) {
|
|
566
566
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
567
567
|
const bindingPackageVersion = __require("@rolldown/binding-wasm32-wasi/package.json").version;
|
|
568
|
-
if (bindingPackageVersion !== "1.2.
|
|
568
|
+
if (bindingPackageVersion !== "1.2.4") throw new Error(`WASI binding package version mismatch, expected 1.2.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
569
569
|
}
|
|
570
570
|
wasiBinding = __require("@rolldown/binding-wasm32-wasi");
|
|
571
571
|
nativeBinding = wasiBinding;
|
package/dist/shared/{bindingify-input-options-CMab5gbt.mjs → bindingify-input-options-C-Zsy1EG.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Zhafd14U.mjs";
|
|
2
2
|
import { i as logFailedValidation, l as logPluginError, n as error, o as logInvalidLogPosition, r as logCycleLoading, t as augmentCodeLocation } from "./logs-DmYCAKcW.mjs";
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BxRYnPRv.mjs";
|
|
4
4
|
import { i as noop, n as isPathFragment, o as unreachable, s as unsupported, t as arraify } from "./misc-DOSKtd97.mjs";
|
|
5
|
-
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-CVc7IgvG.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
@@ -10,7 +10,7 @@ import * as filter from "@rolldown/pluginutils";
|
|
|
10
10
|
import fsp from "node:fs/promises";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.2.
|
|
13
|
+
var version = "1.2.4";
|
|
14
14
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/constants/version.ts
|
|
@@ -236,7 +236,7 @@ function bindingAssetSource(source) {
|
|
|
236
236
|
return { inner: source };
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
|
-
//#region \0@oxc-project+runtime@0.
|
|
239
|
+
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/decorate.js
|
|
240
240
|
function __decorate(decorators, target, key, desc) {
|
|
241
241
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
242
242
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as BindingViteJsonPluginConfig, D as BindingViteReporterPluginConfig, E as BindingViteReactRefreshWrapperPluginConfig, O as BindingViteResolvePluginConfig, S as BindingViteImportGlobPluginConfig, T as BindingViteModulePreloadPolyfillPluginConfig, b as BindingViteBuildImportAnalysisPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, x as BindingViteDynamicImportVarsPluginConfig } from "./binding-CVtkJvyl.mjs";
|
|
2
|
-
import { Gt as StringOrRegExp, I as BuiltinPlugin } from "./define-config-
|
|
2
|
+
import { Gt as StringOrRegExp, I as BuiltinPlugin } from "./define-config-Dsp5YQR4.mjs";
|
|
3
3
|
//#region src/builtin-plugin/constructors.d.ts
|
|
4
4
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
5
5
|
type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConfig, "include" | "exclude"> & {
|
|
@@ -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-BxRYnPRv.mjs";
|
|
2
2
|
//#region src/builtin-plugin/constructors.ts
|
|
3
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
4
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
package/dist/shared/{create-bundler-option-BZD-ER-Z.mjs → create-bundler-option-wRiQzEJ3.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Zhafd14U.mjs";
|
|
2
2
|
import { a as logInputHookInOutputPlugin, n as error } from "./logs-DmYCAKcW.mjs";
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
4
|
-
import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-BxRYnPRv.mjs";
|
|
4
|
+
import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-C-Zsy1EG.mjs";
|
|
5
5
|
import { a as unimplemented } from "./misc-DOSKtd97.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import path, { sep } from "node:path";
|
|
@@ -3979,8 +3979,9 @@ interface InputOptions {
|
|
|
3979
3979
|
* Devtools integration options.
|
|
3980
3980
|
*
|
|
3981
3981
|
* When enabled, Rolldown writes JSON-lines devtools output under
|
|
3982
|
-
* `node_modules/.rolldown/{session_id}
|
|
3983
|
-
* `@rolldown/debug` after
|
|
3982
|
+
* `node_modules/.rolldown/{session_id}/`, resolved against {@linkcode cwd}.
|
|
3983
|
+
* Consumers can parse the output with `@rolldown/debug` after
|
|
3984
|
+
* `await bundle.close()` resolves.
|
|
3984
3985
|
*
|
|
3985
3986
|
* @experimental
|
|
3986
3987
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Zhafd14U.mjs";
|
|
2
2
|
import { l as logPluginError, n as error } from "./logs-DmYCAKcW.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Zhafd14U.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.144.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
4
4
|
function wrap(result) {
|
|
5
5
|
let program, module, comments, errors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Zhafd14U.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-CVc7IgvG.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-
|
|
3
|
-
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-
|
|
4
|
-
import { i as unwrapBindingResult } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Zhafd14U.mjs";
|
|
2
|
+
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-C-Zsy1EG.mjs";
|
|
3
|
+
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-wRiQzEJ3.mjs";
|
|
4
|
+
import { i as unwrapBindingResult } from "./error-CVc7IgvG.mjs";
|
|
5
5
|
//#region src/types/rolldown-output-impl.ts
|
|
6
6
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
7
7
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Zhafd14U.mjs";
|
|
2
2
|
import { s as logMultipleWatcherOption } from "./logs-DmYCAKcW.mjs";
|
|
3
|
-
import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
3
|
+
import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-C-Zsy1EG.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-DOSKtd97.mjs";
|
|
5
|
-
import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-wRiQzEJ3.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-CVc7IgvG.mjs";
|
|
7
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
8
8
|
/**
|
|
9
9
|
* This is not the set of all possible signals.
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as BindingTsconfigCompilerOptions, v as BindingTsconfigRawOptions } f
|
|
|
2
2
|
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-WmU_cI8e.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
5
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.144.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
6
6
|
interface VisitorObject$1 {
|
|
7
7
|
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
|
|
8
8
|
"DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
|
package/dist/utils-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-DnWvq9XZ.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-SPewz4V3.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.144.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2008,7 +2008,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2008
2008
|
exit !== null && exit(node);
|
|
2009
2009
|
}
|
|
2010
2010
|
//#endregion
|
|
2011
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2011
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.144.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2012
2012
|
/** Mapping from node type name to node type ID */
|
|
2013
2013
|
const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
2014
2014
|
["DebuggerStatement", 0],
|
|
@@ -2178,7 +2178,7 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
|
2178
2178
|
["TSUnionType", 164]
|
|
2179
2179
|
]);
|
|
2180
2180
|
//#endregion
|
|
2181
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2181
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.144.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2182
2182
|
let compiledVisitor;
|
|
2183
2183
|
function createCompiledVisitor() {
|
|
2184
2184
|
compiledVisitor = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -61,21 +61,22 @@
|
|
|
61
61
|
"registry": "https://registry.npmjs.org/"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@oxc-project/types": "=0.
|
|
64
|
+
"@oxc-project/types": "=0.144.0",
|
|
65
65
|
"@rolldown/pluginutils": "^1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@emnapi/core": "2.0.0-alpha.
|
|
69
|
-
"@emnapi/runtime": "2.0.0-alpha.
|
|
68
|
+
"@emnapi/core": "2.0.0-alpha.4",
|
|
69
|
+
"@emnapi/runtime": "2.0.0-alpha.4",
|
|
70
70
|
"@napi-rs/cli": "^3.8.2",
|
|
71
|
-
"@napi-rs/wasm-runtime": "
|
|
71
|
+
"@napi-rs/wasm-runtime": "~1.2.2",
|
|
72
72
|
"@oxc-node/cli": "^0.1.0",
|
|
73
73
|
"cac": "^7.0.0",
|
|
74
74
|
"consola": "^3.4.2",
|
|
75
|
+
"emnapi": "2.0.0-alpha.4",
|
|
75
76
|
"execa": "^9.2.0",
|
|
76
77
|
"fresh-import": "^0.2.1",
|
|
77
78
|
"glob": "^13.0.0",
|
|
78
|
-
"oxc-parser": "=0.
|
|
79
|
+
"oxc-parser": "=0.144.0",
|
|
79
80
|
"pathe": "^2.0.3",
|
|
80
81
|
"remeda": "^2.34.1",
|
|
81
82
|
"rolldown-plugin-dts": "^0.28.0",
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"source-map": "0.8.0",
|
|
85
86
|
"typescript": "^6.0.0",
|
|
86
87
|
"valibot": "1.4.2",
|
|
87
|
-
"rolldown": "1.2.
|
|
88
|
+
"rolldown": "1.2.4"
|
|
88
89
|
},
|
|
89
90
|
"napi": {
|
|
90
91
|
"binaryName": "rolldown-binding",
|
|
@@ -120,20 +121,20 @@
|
|
|
120
121
|
"node": "^20.19.0 || >=22.12.0"
|
|
121
122
|
},
|
|
122
123
|
"optionalDependencies": {
|
|
123
|
-
"@rolldown/binding-darwin-x64": "1.2.
|
|
124
|
-
"@rolldown/binding-win32-x64-msvc": "1.2.
|
|
125
|
-
"@rolldown/binding-linux-x64-gnu": "1.2.
|
|
126
|
-
"@rolldown/binding-linux-x64-musl": "1.2.
|
|
127
|
-
"@rolldown/binding-freebsd-x64": "1.2.
|
|
128
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.2.
|
|
129
|
-
"@rolldown/binding-linux-arm64-gnu": "1.2.
|
|
130
|
-
"@rolldown/binding-darwin-arm64": "1.2.
|
|
131
|
-
"@rolldown/binding-linux-arm64-musl": "1.2.
|
|
132
|
-
"@rolldown/binding-openharmony-arm64": "1.2.
|
|
133
|
-
"@rolldown/binding-win32-arm64-msvc": "1.2.
|
|
134
|
-
"@rolldown/binding-android-arm64": "1.2.
|
|
135
|
-
"@rolldown/binding-linux-s390x-gnu": "1.2.
|
|
136
|
-
"@rolldown/binding-linux-ppc64-gnu": "1.2.
|
|
124
|
+
"@rolldown/binding-darwin-x64": "1.2.4",
|
|
125
|
+
"@rolldown/binding-win32-x64-msvc": "1.2.4",
|
|
126
|
+
"@rolldown/binding-linux-x64-gnu": "1.2.4",
|
|
127
|
+
"@rolldown/binding-linux-x64-musl": "1.2.4",
|
|
128
|
+
"@rolldown/binding-freebsd-x64": "1.2.4",
|
|
129
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.2.4",
|
|
130
|
+
"@rolldown/binding-linux-arm64-gnu": "1.2.4",
|
|
131
|
+
"@rolldown/binding-darwin-arm64": "1.2.4",
|
|
132
|
+
"@rolldown/binding-linux-arm64-musl": "1.2.4",
|
|
133
|
+
"@rolldown/binding-openharmony-arm64": "1.2.4",
|
|
134
|
+
"@rolldown/binding-win32-arm64-msvc": "1.2.4",
|
|
135
|
+
"@rolldown/binding-android-arm64": "1.2.4",
|
|
136
|
+
"@rolldown/binding-linux-s390x-gnu": "1.2.4",
|
|
137
|
+
"@rolldown/binding-linux-ppc64-gnu": "1.2.4"
|
|
137
138
|
},
|
|
138
139
|
"scripts": {
|
|
139
140
|
"# Scrips for binding #": "_",
|