@rollipop/rolldown 1.0.0-rc.11 → 1.0.0-rc.12
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 +5 -8
- package/dist/experimental-index.mjs +9 -14
- package/dist/experimental-runtime-types.d.ts +14 -5
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +2 -2
- 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.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-hSQGgsUz.d.mts → binding-87e5dhsA.d.mts} +39 -11
- package/dist/shared/{binding-MvMgR80I.mjs → binding-B_EbVuAE.mjs} +27 -27
- package/dist/shared/{bindingify-input-options-DhxvofsC.mjs → bindingify-input-options-D-mr0AxM.mjs} +71 -52
- package/dist/shared/{constructors-DMl58KN5.d.mts → constructors-Dk1hSC1s.d.mts} +2 -2
- package/dist/shared/{constructors-BEqS3i54.mjs → constructors-DqBmEWaf.mjs} +1 -1
- package/dist/shared/{define-config-BSxBeCq6.d.mts → define-config-zdYh2BE8.d.mts} +36 -2
- package/dist/shared/{error-DcChL8nQ.mjs → error-DSuhmQ3y.mjs} +1 -1
- package/dist/shared/{load-config-tB5qAWuR.mjs → load-config-CfHH6rlb.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-Dq9aIZE5.mjs → normalize-string-or-regex-BGkWNH32.mjs} +1 -1
- package/dist/shared/{parse-Cn5AzDgI.mjs → parse-Cvkx1Kt6.mjs} +3 -3
- package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
- package/dist/shared/{resolve-tsconfig-QSpuHPL1.mjs → resolve-tsconfig-DZw545P_.mjs} +2 -2
- package/dist/shared/{rolldown-6yZY58Dc.mjs → rolldown-CqbC9Vvv.mjs} +1 -1
- package/dist/shared/{rolldown-build-C10b1v8L.mjs → rolldown-build-DUm1KxTS.mjs} +87 -145
- package/dist/shared/{transform-DY2pi3Qm.d.mts → transform-SYT5xWOy.d.mts} +1 -1
- package/dist/shared/{watch-D9PzJrio.mjs → watch-Cpz0It-Q.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -5
- package/package.json +18 -18
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { C as version, S as description } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-Cpz0It-Q.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-D-mr0AxM.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-DJYbNKZX.mjs";
|
|
4
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-DUm1KxTS.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-CqbC9Vvv.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-CfHH6rlb.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
@@ -847,7 +847,7 @@ function getClearScreenFunction(options) {
|
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
849
|
//#endregion
|
|
850
|
-
//#region \0@oxc-project+runtime@0.
|
|
850
|
+
//#region \0@oxc-project+runtime@0.128.0/helpers/usingCtx.js
|
|
851
851
|
function _usingCtx() {
|
|
852
852
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
853
853
|
var n = Error();
|
package/dist/config.d.mts
CHANGED
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as VERSION } from "./shared/bindingify-input-options-
|
|
1
|
+
import { x as VERSION } from "./shared/bindingify-input-options-D-mr0AxM.mjs";
|
|
2
2
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
3
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-CfHH6rlb.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Jt as freeExternalMemory, Kt as RolldownOutput, Lt as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, st as NormalizedOutputOptions } from "./shared/define-config-
|
|
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-
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
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, f as BindingRebuildStrategy, h as BindingRollipopReactRefreshWrapperPluginConfig, i as BindingClientHmrUpdate, k as BindingViteTransformPluginConfig, n as BindingBundleAnalyzerPluginConfig, q as isolatedDeclarationSync, r as BindingBundleState, v as BindingTsconfigRawOptions, w as BindingViteManifestPluginConfig } from "./shared/binding-87e5dhsA.mjs";
|
|
2
|
+
import { Jt as freeExternalMemory, Kt as RolldownOutput, Lt as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, st as NormalizedOutputOptions } from "./shared/define-config-zdYh2BE8.mjs";
|
|
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-SYT5xWOy.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-Dk1hSC1s.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -190,9 +190,6 @@ declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPl
|
|
|
190
190
|
//#region src/builtin-plugin/rollipop-react-refresh-wrapper-plugin.d.ts
|
|
191
191
|
declare function rollipopReactRefreshWrapperPlugin(config: BindingRollipopReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region src/builtin-plugin/rollipop-worklets-plugin.d.ts
|
|
194
|
-
declare function rollipopWorkletsPlugin(config: BindingRollipopWorkletsPluginConfig): BuiltinPlugin;
|
|
195
|
-
//#endregion
|
|
196
193
|
//#region src/builtin-plugin/rollipop-react-native-plugin.d.ts
|
|
197
194
|
type RollipopReactNativeRuntimeTarget = "Hermes" | "HermesV1";
|
|
198
195
|
/**
|
|
@@ -313,4 +310,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
|
313
310
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
314
311
|
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
315
312
|
//#endregion
|
|
316
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type RollipopReactNativeFlowConfig, type RollipopReactNativePluginConfig, type RollipopReactNativeRuntimeTarget, type RollipopReactNativeWorkletsConfig, type BindingRollipopReactRefreshWrapperPluginConfig as RollipopReactRefreshWrapperPluginConfig,
|
|
313
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type RollipopReactNativeFlowConfig, type RollipopReactNativePluginConfig, type RollipopReactNativeRuntimeTarget, type RollipopReactNativeWorkletsConfig, type BindingRollipopReactRefreshWrapperPluginConfig as RollipopReactRefreshWrapperPluginConfig, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, rollipopReactNativePlugin, rollipopReactRefreshWrapperPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -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 { o as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
4
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, 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-B_EbVuAE.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BGkWNH32.mjs";
|
|
3
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-D-mr0AxM.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DUm1KxTS.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-DSuhmQ3y.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-Cvkx1Kt6.mjs";
|
|
7
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-DqBmEWaf.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-DZw545P_.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);
|
|
@@ -278,11 +278,6 @@ function rollipopReactRefreshWrapperPlugin(config) {
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
//#endregion
|
|
281
|
-
//#region src/builtin-plugin/rollipop-worklets-plugin.ts
|
|
282
|
-
function rollipopWorkletsPlugin(config) {
|
|
283
|
-
return new BuiltinPlugin("builtin:rollipop-worklets", config);
|
|
284
|
-
}
|
|
285
|
-
//#endregion
|
|
286
281
|
//#region src/builtin-plugin/rollipop-react-native-plugin.ts
|
|
287
282
|
function rollipopReactNativePlugin(config) {
|
|
288
283
|
const plugins = config?.plugins?.map(([path, pluginConfig]) => ({
|
|
@@ -347,4 +342,4 @@ var ResolverFactory = import_binding.ResolverFactory;
|
|
|
347
342
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
348
343
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
349
344
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
350
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, rollipopReactNativePlugin, rollipopReactRefreshWrapperPlugin,
|
|
345
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, rollipopReactNativePlugin, rollipopReactRefreshWrapperPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -40,21 +40,30 @@ export class DevRuntime {
|
|
|
40
40
|
/**
|
|
41
41
|
* __esmMin
|
|
42
42
|
*
|
|
43
|
-
*
|
|
43
|
+
* When `dedup` is truthy and `id` is already registered on the runtime,
|
|
44
|
+
* skip the factory: another lazy blob got there first. HMR patches pass
|
|
45
|
+
* no `dedup` so they always re-run the factory and replace the registered
|
|
46
|
+
* exports.
|
|
47
|
+
*
|
|
48
|
+
* @type {<T>(id: string, fn: any, dedup: any, res: T) => () => T}
|
|
44
49
|
* @internal
|
|
45
50
|
*/
|
|
46
|
-
createEsmInitializer: <T>(fn: any, res: T) => () => T;
|
|
51
|
+
createEsmInitializer: <T>(id: string, fn: any, dedup: any, res: T) => () => T;
|
|
47
52
|
/**
|
|
48
53
|
* __commonJSMin
|
|
49
54
|
*
|
|
50
|
-
*
|
|
55
|
+
* Same dedup gate as createEsmInitializer. With `dedup` truthy and `id`
|
|
56
|
+
* registered, reuse the registered exports object; otherwise run the
|
|
57
|
+
* factory.
|
|
58
|
+
*
|
|
59
|
+
* @type {<T extends { exports: any }>(id: string, cb: any, dedup: any, mod: { exports: any }, registered: any) => () => T}
|
|
51
60
|
* @internal
|
|
52
61
|
*/
|
|
53
62
|
createCjsInitializer: <T extends {
|
|
54
63
|
exports: any;
|
|
55
|
-
}>(cb: any, mod: {
|
|
64
|
+
}>(id: string, cb: any, dedup: any, mod: {
|
|
56
65
|
exports: any;
|
|
57
|
-
}) => () => T;
|
|
66
|
+
}, registered: any) => () => T;
|
|
58
67
|
/** @internal */
|
|
59
68
|
__toESM: any;
|
|
60
69
|
/** @internal */
|
package/dist/filter-index.d.mts
CHANGED
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-C6h4g8dA.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as GeneralHookFilter, A as SourceDescription, At as CodeSplittingOptions, B as TreeshakingOptions, Bt as PartialNull, C as PartialResolvedId, Ct as AddonFunction, D as ResolvedId, Dt as ChunkingContext, E as ResolveIdResult, Et as ChunkFileNamesFunction, F as VERSION, Ft as MinifyOptions, G as EmittedPrebuiltChunk, Gt as RenderedModule, H as EmittedAsset, Ht as OutputAsset, I as BundleError, It as ModuleFormat, J as PluginContextResolveOptions, K as GetModuleInfo, Kt as RolldownOutput, L as ExistingRawSourceMap, Lt as OutputOptions, Mt as GeneratedCodeOptions, Nt as GeneratedCodePreset, O as RolldownPlugin, Ot as CodeSplittingGroup, P as RUNTIME_MODULE_ID, Pt as GlobalsFunction, Q as PluginContextMeta, R as SourceMapInput, Rt as PreRenderedAsset, S as ParallelPluginHooks, St as build, T as ResolveIdExtraOptions, Tt as AdvancedChunksOptions, U as EmittedChunk, Ut as OutputChunk, V as TransformPluginContext, W as EmittedFile, Wt as RenderedChunk, Xt as SourcemapIgnoreListOption, Y as DefineParallelPluginResult, Yt as ModuleInfo, Z as MinimalPluginContext, _ as ImportKind, _t as RolldownWatcherWatcherEventMap, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as RolldownBuild, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherEvent, h as FunctionPluginHooks, ht as RolldownWatcher, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as CommentsOptions, k as RolldownPluginOption, kt as CodeSplittingNameFunction, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as watch, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as RolldownMagicString, q as PluginContext, qt as SourceMap, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as WatchOptions, w as Plugin, wt as AdvancedChunksGroup, x as ObjectHook, xt as BuildOptions, y as ModuleOptions, yt as rolldown, z as OutputBundle } from "./shared/define-config-
|
|
2
|
+
import { B as PreRenderedChunk } from "./shared/binding-87e5dhsA.mjs";
|
|
3
|
+
import { $ as GeneralHookFilter, A as SourceDescription, At as CodeSplittingOptions, B as TreeshakingOptions, Bt as PartialNull, C as PartialResolvedId, Ct as AddonFunction, D as ResolvedId, Dt as ChunkingContext, E as ResolveIdResult, Et as ChunkFileNamesFunction, F as VERSION, Ft as MinifyOptions, G as EmittedPrebuiltChunk, Gt as RenderedModule, H as EmittedAsset, Ht as OutputAsset, I as BundleError, It as ModuleFormat, J as PluginContextResolveOptions, K as GetModuleInfo, Kt as RolldownOutput, L as ExistingRawSourceMap, Lt as OutputOptions, Mt as GeneratedCodeOptions, Nt as GeneratedCodePreset, O as RolldownPlugin, Ot as CodeSplittingGroup, P as RUNTIME_MODULE_ID, Pt as GlobalsFunction, Q as PluginContextMeta, R as SourceMapInput, Rt as PreRenderedAsset, S as ParallelPluginHooks, St as build, T as ResolveIdExtraOptions, Tt as AdvancedChunksOptions, U as EmittedChunk, Ut as OutputChunk, V as TransformPluginContext, W as EmittedFile, Wt as RenderedChunk, Xt as SourcemapIgnoreListOption, Y as DefineParallelPluginResult, Yt as ModuleInfo, Z as MinimalPluginContext, _ as ImportKind, _t as RolldownWatcherWatcherEventMap, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as RolldownBuild, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherEvent, h as FunctionPluginHooks, ht as RolldownWatcher, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as CommentsOptions, k as RolldownPluginOption, kt as CodeSplittingNameFunction, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as watch, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as RolldownMagicString, q as PluginContext, qt as SourceMap, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as WatchOptions, w as Plugin, wt as AdvancedChunksGroup, x as ObjectHook, xt as BuildOptions, y as ModuleOptions, yt as rolldown, z as OutputBundle } from "./shared/define-config-zdYh2BE8.mjs";
|
|
4
4
|
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownMagicString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/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 { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } 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-B_EbVuAE.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-Cpz0It-Q.mjs";
|
|
3
|
+
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-D-mr0AxM.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-CqbC9Vvv.mjs";
|
|
5
5
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.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 { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-B_EbVuAE.mjs";
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-D-mr0AxM.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 { w as Plugin, zt as MaybePromise } from "./shared/define-config-
|
|
1
|
+
import { w as Plugin, zt as MaybePromise } from "./shared/define-config-zdYh2BE8.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
4
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-Cvkx1Kt6.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
|
-
import { m as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { N as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-87e5dhsA.mjs";
|
|
2
|
+
import { N as BuiltinPlugin } from "./shared/define-config-zdYh2BE8.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-Dk1hSC1s.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
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-BGkWNH32.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DqBmEWaf.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as _oxc_project_types0 from "@oxc-project/types";
|
|
1
|
+
import * as _$_oxc_project_types0 from "@oxc-project/types";
|
|
2
2
|
|
|
3
3
|
//#region src/binding.d.cts
|
|
4
4
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -160,6 +160,15 @@ interface TreeShakeOptions {
|
|
|
160
160
|
* @default 'always'
|
|
161
161
|
*/
|
|
162
162
|
propertyReadSideEffects?: boolean | 'always';
|
|
163
|
+
/**
|
|
164
|
+
* Whether property write accesses (assignments to member expressions) have side effects.
|
|
165
|
+
*
|
|
166
|
+
* When false, assignments like `obj.prop = value` are considered side-effect-free
|
|
167
|
+
* (assuming the object and value expressions themselves are side-effect-free).
|
|
168
|
+
*
|
|
169
|
+
* @default true
|
|
170
|
+
*/
|
|
171
|
+
propertyWriteSideEffects?: boolean;
|
|
163
172
|
/**
|
|
164
173
|
* Whether accessing a global variable has side effects.
|
|
165
174
|
*
|
|
@@ -199,7 +208,7 @@ interface OxcError {
|
|
|
199
208
|
}
|
|
200
209
|
type Severity = 'Error' | 'Warning' | 'Advice';
|
|
201
210
|
declare class ParseResult {
|
|
202
|
-
get program(): _oxc_project_types0.Program;
|
|
211
|
+
get program(): _$_oxc_project_types0.Program;
|
|
203
212
|
get module(): EcmaScriptModule;
|
|
204
213
|
get comments(): Array<Comment>;
|
|
205
214
|
get errors(): Array<OxcError>;
|
|
@@ -1158,6 +1167,24 @@ interface TypeScriptOptions {
|
|
|
1158
1167
|
* Defaults to `false`.
|
|
1159
1168
|
*/
|
|
1160
1169
|
removeClassFieldsWithoutInitializer?: boolean;
|
|
1170
|
+
/**
|
|
1171
|
+
* When true, optimize const enums by inlining their values at usage sites
|
|
1172
|
+
* and removing the enum declaration.
|
|
1173
|
+
*
|
|
1174
|
+
* @default false
|
|
1175
|
+
*/
|
|
1176
|
+
optimizeConstEnums?: boolean;
|
|
1177
|
+
/**
|
|
1178
|
+
* When true, optimize regular (non-const) enums by inlining their member
|
|
1179
|
+
* accesses at usage sites when the member value is statically known.
|
|
1180
|
+
*
|
|
1181
|
+
* Non-exported enum declarations are also removed when all members are
|
|
1182
|
+
* evaluable and no references to the enum as a runtime value exist
|
|
1183
|
+
* (e.g., `console.log(Foo)`, `typeof Foo`, or passing the enum as an argument).
|
|
1184
|
+
*
|
|
1185
|
+
* @default false
|
|
1186
|
+
*/
|
|
1187
|
+
optimizeEnums?: boolean;
|
|
1161
1188
|
/**
|
|
1162
1189
|
* Also generate a `.d.ts` declaration file for TypeScript files.
|
|
1163
1190
|
*
|
|
@@ -1222,13 +1249,13 @@ declare class BindingMagicString {
|
|
|
1222
1249
|
prependRight(index: number, content: string): this;
|
|
1223
1250
|
appendLeft(index: number, content: string): this;
|
|
1224
1251
|
appendRight(index: number, content: string): this;
|
|
1225
|
-
overwrite(start: number, end: number, content: string): this;
|
|
1252
|
+
overwrite(start: number, end: number, content: string, options?: BindingOverwriteOptions | undefined | null): this;
|
|
1226
1253
|
toString(): string;
|
|
1227
1254
|
hasChanged(): boolean;
|
|
1228
1255
|
length(): number;
|
|
1229
1256
|
isEmpty(): boolean;
|
|
1230
1257
|
remove(start: number, end: number): this;
|
|
1231
|
-
update(start: number, end: number, content: string): this;
|
|
1258
|
+
update(start: number, end: number, content: string, options?: BindingUpdateOptions | undefined | null): this;
|
|
1232
1259
|
relocate(start: number, end: number, to: number): this;
|
|
1233
1260
|
/**
|
|
1234
1261
|
* Alias for `relocate` to match the original magic-string API.
|
|
@@ -1383,7 +1410,7 @@ declare class TsconfigCache {
|
|
|
1383
1410
|
/** Get the number of cached entries. */
|
|
1384
1411
|
size(): number;
|
|
1385
1412
|
}
|
|
1386
|
-
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime' | 'builtin:rollipop-react-refresh-wrapper' | 'builtin:rollipop-
|
|
1413
|
+
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime' | 'builtin:rollipop-react-refresh-wrapper' | 'builtin:rollipop-react-native';
|
|
1387
1414
|
interface BindingBundleAnalyzerPluginConfig {
|
|
1388
1415
|
/** Output filename for the bundle analysis data (default: "analyze-data.json") */
|
|
1389
1416
|
fileName?: string;
|
|
@@ -1618,6 +1645,9 @@ interface BindingModules {
|
|
|
1618
1645
|
values: Array<BindingRenderedModule>;
|
|
1619
1646
|
keys: Array<string>;
|
|
1620
1647
|
}
|
|
1648
|
+
interface BindingOverwriteOptions {
|
|
1649
|
+
contentOnly?: boolean;
|
|
1650
|
+
}
|
|
1621
1651
|
interface BindingPluginContextResolveOptions {
|
|
1622
1652
|
/**
|
|
1623
1653
|
* - `import-statement`: `import { foo } from './lib.js';`
|
|
@@ -1662,11 +1692,6 @@ interface BindingRollipopReactRefreshWrapperPluginConfig {
|
|
|
1662
1692
|
exclude?: Array<BindingStringOrRegex>;
|
|
1663
1693
|
jsxImportSource?: string;
|
|
1664
1694
|
}
|
|
1665
|
-
interface BindingRollipopWorkletsPluginConfig {
|
|
1666
|
-
root: string;
|
|
1667
|
-
pluginVersion: string;
|
|
1668
|
-
isRelease: boolean;
|
|
1669
|
-
}
|
|
1670
1695
|
interface BindingSourceMapOptions {
|
|
1671
1696
|
/** The filename for the generated file (goes into `map.file`) */
|
|
1672
1697
|
file?: string;
|
|
@@ -1732,6 +1757,9 @@ interface BindingTsconfigResult {
|
|
|
1732
1757
|
tsconfig: BindingTsconfig;
|
|
1733
1758
|
tsconfigFilePaths: Array<string>;
|
|
1734
1759
|
}
|
|
1760
|
+
interface BindingUpdateOptions {
|
|
1761
|
+
overwrite?: boolean;
|
|
1762
|
+
}
|
|
1735
1763
|
interface BindingViteBuildImportAnalysisPluginConfig {
|
|
1736
1764
|
preloadCode: string;
|
|
1737
1765
|
insertPreload: boolean;
|
|
@@ -1874,4 +1902,4 @@ interface ViteImportGlobMeta {
|
|
|
1874
1902
|
isSubImportsPattern?: boolean;
|
|
1875
1903
|
}
|
|
1876
1904
|
//#endregion
|
|
1877
|
-
export {
|
|
1905
|
+
export { BindingWatcherBundler as A, PreRenderedChunk as B, BindingViteJsonPluginConfig as C, BindingViteReporterPluginConfig as D, BindingViteReactRefreshWrapperPluginConfig as E, MinifyOptions as F, TsconfigCache as G, ResolverFactory as H, MinifyResult as I, moduleRunnerTransform as J, isolatedDeclaration as K, NapiResolveOptions as L, IsolatedDeclarationsOptions as M, IsolatedDeclarationsResult as N, BindingViteResolvePluginConfig as O, JsxOptions as P, ParseResult as R, BindingViteImportGlobPluginConfig as S, BindingViteModulePreloadPolyfillPluginConfig as T, SourceMap as U, ResolveResult as V, TransformOptions as W, BindingTsconfigCompilerOptions as _, BindingEnhancedTransformOptions as a, BindingViteBuildImportAnalysisPluginConfig as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingTransformHookExtraArgs as g, BindingRollipopReactRefreshWrapperPluginConfig as h, BindingClientHmrUpdate as i, ExternalMemoryStatus as j, BindingViteTransformPluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, isolatedDeclarationSync as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingTsconfigRawOptions as v, BindingViteManifestPluginConfig as w, BindingViteDynamicImportVarsPluginConfig as x, BindingTsconfigResult as y, ParserOptions as z };
|