@rollipop/rolldown 1.0.0-rc.4 → 1.0.0-rc.6
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 +768 -185
- package/dist/config.d.mts +1 -2
- package/dist/config.mjs +2 -8
- package/dist/experimental-index.d.mts +13 -7
- package/dist/experimental-index.mjs +27 -13
- package/dist/filter-index.d.mts +1 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +5 -10
- package/dist/parallel-plugin-worker.mjs +2 -5
- package/dist/parallel-plugin.d.mts +1 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -3
- package/dist/shared/{binding-BohGL_65.d.mts → binding-BEVObikP.d.mts} +40 -17
- package/dist/shared/{binding-BuW0Fhs2.mjs → binding-BaD00V3B.mjs} +26 -26
- package/dist/shared/{bindingify-input-options-o_7NioSs.mjs → bindingify-input-options-KbcygofY.mjs} +52 -13
- package/dist/shared/{constructors-Dg8A45sy.d.mts → constructors-C0o3D5kM.d.mts} +7 -3
- package/dist/shared/{constructors-FqGyV5fj.mjs → constructors-DoVEGpfv.mjs} +8 -2
- package/dist/shared/{define-config-BvszQ-i2.d.mts → define-config-Dcf0-wDh.d.mts} +70 -12
- package/dist/shared/{error-BjNWBTlf.mjs → error-DMdvzIth.mjs} +1 -1
- package/dist/shared/{load-config-2dmAH96P.mjs → load-config-Cl0c9rzt.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-BU5HSJy4.mjs → normalize-string-or-regex-C438JWX3.mjs} +20 -12
- package/dist/shared/{parse-Bt4kI3ey.mjs → parse-B_pfrOxH.mjs} +2 -2
- package/dist/shared/{transform-Cbhgjik0.mjs → resolve-tsconfig-C4k6MVJe.mjs} +28 -5
- package/dist/shared/{rolldown-build-tLuGZc7p.mjs → rolldown-build-CLB7U-T8.mjs} +20 -12
- package/dist/shared/{rolldown-B4lV-glW.mjs → rolldown-cb9tsyMG.mjs} +1 -1
- package/dist/shared/{transform-BoJxrM-e.d.mts → transform-CHWi6pVJ.d.mts} +19 -2
- package/dist/shared/{watch-hs9ntURJ.mjs → watch-dXreyeuN.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -8
- package/package.json +19 -18
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import { F as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-BvszQ-i2.mjs";
|
|
1
|
+
import { F as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-Dcf0-wDh.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/utils/load-config.d.ts
|
|
5
4
|
/**
|
package/dist/config.mjs
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/normalize-string-or-regex-BU5HSJy4.mjs";
|
|
3
|
-
import { b as VERSION } from "./shared/bindingify-input-options-o_7NioSs.mjs";
|
|
4
|
-
import "./shared/rolldown-build-tLuGZc7p.mjs";
|
|
5
|
-
import "./shared/error-BjNWBTlf.mjs";
|
|
6
|
-
import "./shared/parse-Bt4kI3ey.mjs";
|
|
7
|
-
import "./shared/rolldown-B4lV-glW.mjs";
|
|
1
|
+
import { x as VERSION } from "./shared/bindingify-input-options-KbcygofY.mjs";
|
|
8
2
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-Cl0c9rzt.mjs";
|
|
10
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import { a as
|
|
1
|
+
import { A as BindingViteTransformPluginConfig, H as ResolveResult, J as isolatedDeclarationSync, N as IsolatedDeclarationsOptions, P as IsolatedDeclarationsResult, R as NapiResolveOptions, T as BindingViteManifestPluginConfig, U as ResolverFactory, Y as moduleRunnerTransform, f as BindingRebuildStrategy, g as BindingRollipopWorkletsPluginConfig, h as BindingRollipopReactRefreshWrapperPluginConfig, i as BindingClientHmrUpdate, n as BindingBundleAnalyzerPluginConfig, q as isolatedDeclaration, r as BindingBundleState, v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-BEVObikP.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-Dcf0-wDh.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-CHWi6pVJ.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-C0o3D5kM.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -158,11 +158,11 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
158
158
|
* @example
|
|
159
159
|
* **LLM-friendly markdown output**
|
|
160
160
|
* ```js
|
|
161
|
-
* import {
|
|
161
|
+
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
162
162
|
*
|
|
163
163
|
* export default {
|
|
164
164
|
* plugins: [
|
|
165
|
-
*
|
|
165
|
+
* bundleAnalyzerPlugin({
|
|
166
166
|
* format: 'md'
|
|
167
167
|
* })
|
|
168
168
|
* ]
|
|
@@ -187,6 +187,12 @@ type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"
|
|
|
187
187
|
};
|
|
188
188
|
declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
|
|
189
189
|
//#endregion
|
|
190
|
+
//#region src/builtin-plugin/rollipop-react-refresh-wrapper-plugin.d.ts
|
|
191
|
+
declare function rollipopReactRefreshWrapperPlugin(config: BindingRollipopReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/builtin-plugin/rollipop-worklets-plugin.d.ts
|
|
194
|
+
declare function rollipopWorkletsPlugin(config: BindingRollipopWorkletsPluginConfig): BuiltinPlugin;
|
|
195
|
+
//#endregion
|
|
190
196
|
//#region src/experimental-index.d.ts
|
|
191
197
|
/**
|
|
192
198
|
* In-memory file system for browser builds.
|
|
@@ -250,4 +256,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
|
250
256
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
251
257
|
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
252
258
|
//#endregion
|
|
253
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
259
|
+
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 BindingRollipopReactRefreshWrapperPluginConfig as RollipopReactRefreshWrapperPluginConfig, type BindingRollipopWorkletsPluginConfig as RollipopWorkletsPluginConfig, 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, rollipopReactRefreshWrapperPlugin, rollipopWorkletsPlugin, 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 {
|
|
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
|
|
8
|
-
import { a as
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BaD00V3B.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-C438JWX3.mjs";
|
|
3
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-KbcygofY.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-CLB7U-T8.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-DMdvzIth.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-B_pfrOxH.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-DoVEGpfv.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-C4k6MVJe.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);
|
|
@@ -236,11 +236,11 @@ function viteAliasPlugin(config) {
|
|
|
236
236
|
* @example
|
|
237
237
|
* **LLM-friendly markdown output**
|
|
238
238
|
* ```js
|
|
239
|
-
* import {
|
|
239
|
+
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
240
240
|
*
|
|
241
241
|
* export default {
|
|
242
242
|
* plugins: [
|
|
243
|
-
*
|
|
243
|
+
* bundleAnalyzerPlugin({
|
|
244
244
|
* format: 'md'
|
|
245
245
|
* })
|
|
246
246
|
* ]
|
|
@@ -268,6 +268,21 @@ function viteManifestPlugin(config) {
|
|
|
268
268
|
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
269
269
|
}
|
|
270
270
|
//#endregion
|
|
271
|
+
//#region src/builtin-plugin/rollipop-react-refresh-wrapper-plugin.ts
|
|
272
|
+
function rollipopReactRefreshWrapperPlugin(config) {
|
|
273
|
+
return new BuiltinPlugin("builtin:rollipop-react-refresh-wrapper", {
|
|
274
|
+
cwd: config.cwd,
|
|
275
|
+
include: normalizedStringOrRegex(config.include),
|
|
276
|
+
exclude: normalizedStringOrRegex(config.exclude),
|
|
277
|
+
jsxImportSource: config.jsxImportSource
|
|
278
|
+
});
|
|
279
|
+
}
|
|
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
|
|
271
286
|
//#region src/experimental-index.ts
|
|
272
287
|
/**
|
|
273
288
|
* In-memory file system for browser builds.
|
|
@@ -310,12 +325,11 @@ const transform = transform$1;
|
|
|
310
325
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
311
326
|
const transformSync = transformSync$1;
|
|
312
327
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
313
|
-
const TsconfigCache =
|
|
328
|
+
const TsconfigCache = TsconfigCache$1;
|
|
314
329
|
//#endregion
|
|
315
330
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
316
331
|
var ResolverFactory = import_binding.ResolverFactory;
|
|
317
332
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
318
333
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
319
334
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
320
|
-
|
|
321
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
335
|
+
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, rollipopReactRefreshWrapperPlugin, rollipopWorkletsPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import { M as withFilter } from "./shared/define-config-BvszQ-i2.mjs";
|
|
1
|
+
import { M as withFilter } from "./shared/define-config-Dcf0-wDh.mjs";
|
|
3
2
|
|
|
4
3
|
//#region ../pluginutils/dist/filter/composable-filters.d.ts
|
|
5
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-C6h4g8dA.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as GeneralHookFilter, A as SourceDescription, At as
|
|
4
|
-
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks,
|
|
2
|
+
import { V as PreRenderedChunk } from "./shared/binding-BEVObikP.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-Dcf0-wDh.mjs";
|
|
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,11 +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 "./shared/
|
|
4
|
-
import {
|
|
5
|
-
import "./shared/rolldown-build-tLuGZc7p.mjs";
|
|
6
|
-
import "./shared/error-BjNWBTlf.mjs";
|
|
7
|
-
import "./shared/parse-Bt4kI3ey.mjs";
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-B4lV-glW.mjs";
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BaD00V3B.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-dXreyeuN.mjs";
|
|
3
|
+
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-KbcygofY.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-cb9tsyMG.mjs";
|
|
9
5
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
10
6
|
import { isMainThread } from "node:worker_threads";
|
|
11
7
|
//#region src/setup.ts
|
|
@@ -51,5 +47,4 @@ async function build(options) {
|
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
49
|
//#endregion
|
|
54
|
-
|
|
55
|
-
export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
|
|
50
|
+
export { RUNTIME_MODULE_ID, RolldownMagicString, VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-o_7NioSs.mjs";
|
|
4
|
-
import "./shared/error-BjNWBTlf.mjs";
|
|
5
|
-
import "./shared/parse-Bt4kI3ey.mjs";
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BaD00V3B.mjs";
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-KbcygofY.mjs";
|
|
6
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
4
|
//#region src/parallel-plugin-worker.ts
|
|
8
5
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import { Rt as MaybePromise, w as Plugin } from "./shared/define-config-BvszQ-i2.mjs";
|
|
1
|
+
import { w as Plugin, zt as MaybePromise } from "./shared/define-config-Dcf0-wDh.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
4
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-BuW0Fhs2.mjs";
|
|
2
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
|
|
3
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-B_pfrOxH.mjs";
|
|
4
3
|
//#region src/parse-ast-index.ts
|
|
5
4
|
function wrap(result, filename, sourceText) {
|
|
6
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-BEVObikP.mjs";
|
|
2
|
+
import { N as BuiltinPlugin } from "./shared/define-config-Dcf0-wDh.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-C0o3D5kM.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-FqGyV5fj.mjs";
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-C438JWX3.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DoVEGpfv.mjs";
|
|
4
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
4
|
/**
|
|
6
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1197,15 +1197,25 @@ declare class BindingDecodedMap {
|
|
|
1197
1197
|
* Each line is an array of segments, where each segment is [generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex?].
|
|
1198
1198
|
*/
|
|
1199
1199
|
get mappings(): Array<Array<Array<number>>>;
|
|
1200
|
+
/** The list of source indices that should be excluded from debugging. */
|
|
1201
|
+
get x_google_ignoreList(): Array<number> | null;
|
|
1200
1202
|
}
|
|
1201
1203
|
declare class BindingMagicString {
|
|
1202
1204
|
constructor(source: string, options?: BindingMagicStringOptions | undefined | null);
|
|
1203
1205
|
get original(): string;
|
|
1204
1206
|
get filename(): string | null;
|
|
1207
|
+
get indentExclusionRanges(): Array<Array<number>> | Array<number> | null;
|
|
1208
|
+
get ignoreList(): boolean;
|
|
1205
1209
|
get offset(): number;
|
|
1206
1210
|
set offset(offset: number);
|
|
1207
1211
|
replace(from: string, to: string): this;
|
|
1208
1212
|
replaceAll(from: string, to: string): this;
|
|
1213
|
+
/**
|
|
1214
|
+
* Returns the UTF-16 offset past the last match, or -1 if no match was found.
|
|
1215
|
+
* The JS wrapper uses this to update `lastIndex` on the caller's RegExp.
|
|
1216
|
+
* Global/sticky behavior is derived from the regex's own flags.
|
|
1217
|
+
*/
|
|
1218
|
+
replaceRegex(from: RegExp, to: string): number;
|
|
1209
1219
|
prepend(content: string): this;
|
|
1210
1220
|
append(content: string): this;
|
|
1211
1221
|
prependLeft(index: number, content: string): this;
|
|
@@ -1226,7 +1236,7 @@ declare class BindingMagicString {
|
|
|
1226
1236
|
* Returns `this` for method chaining.
|
|
1227
1237
|
*/
|
|
1228
1238
|
move(start: number, end: number, index: number): this;
|
|
1229
|
-
indent(indentor?: string | undefined | null): this;
|
|
1239
|
+
indent(indentor?: string | undefined | null, options?: BindingIndentOptions | undefined | null): this;
|
|
1230
1240
|
/** Trims whitespace or specified characters from the start and end. */
|
|
1231
1241
|
trim(charType?: string | undefined | null): this;
|
|
1232
1242
|
/** Trims whitespace or specified characters from the start. */
|
|
@@ -1246,6 +1256,8 @@ declare class BindingMagicString {
|
|
|
1246
1256
|
lastChar(): string;
|
|
1247
1257
|
/** Returns the content after the last newline in the generated string. */
|
|
1248
1258
|
lastLine(): string;
|
|
1259
|
+
/** Returns the guessed indentation string, or `\t` if none is found. */
|
|
1260
|
+
getIndentString(): string;
|
|
1249
1261
|
/** Returns a clone with content outside the specified range removed. */
|
|
1250
1262
|
snip(start: number, end: number): BindingMagicString;
|
|
1251
1263
|
/**
|
|
@@ -1255,8 +1267,12 @@ declare class BindingMagicString {
|
|
|
1255
1267
|
*/
|
|
1256
1268
|
reset(start: number, end: number): this;
|
|
1257
1269
|
/**
|
|
1258
|
-
* Returns the content between the specified
|
|
1270
|
+
* Returns the content between the specified UTF-16 code unit positions (JS string indices).
|
|
1259
1271
|
* Supports negative indices (counting from the end).
|
|
1272
|
+
*
|
|
1273
|
+
* When an index falls in the middle of a surrogate pair, the lone surrogate is
|
|
1274
|
+
* included in the result (matching the original magic-string / JS behavior).
|
|
1275
|
+
* This is done by returning a UTF-16 encoded JS string via `napi_create_string_utf16`.
|
|
1260
1276
|
*/
|
|
1261
1277
|
slice(start?: number | undefined | null, end?: number | undefined | null): string;
|
|
1262
1278
|
/**
|
|
@@ -1299,6 +1315,7 @@ declare class BindingNormalizedOptions {
|
|
|
1299
1315
|
get globals(): Record<string, string> | undefined;
|
|
1300
1316
|
get hashCharacters(): 'base64' | 'base36' | 'hex';
|
|
1301
1317
|
get sourcemapDebugIds(): boolean;
|
|
1318
|
+
get sourcemapExcludeSources(): boolean;
|
|
1302
1319
|
get polyfillRequire(): boolean;
|
|
1303
1320
|
get minify(): false | 'dce-only' | MinifyOptions;
|
|
1304
1321
|
get legalComments(): 'none' | 'inline';
|
|
@@ -1340,6 +1357,8 @@ declare class BindingSourceMap {
|
|
|
1340
1357
|
get names(): Array<string>;
|
|
1341
1358
|
/** The VLQ-encoded mappings string. */
|
|
1342
1359
|
get mappings(): string;
|
|
1360
|
+
/** The list of source indices that should be excluded from debugging. */
|
|
1361
|
+
get x_google_ignoreList(): Array<number> | null;
|
|
1343
1362
|
/** Returns the source map as a JSON string. */
|
|
1344
1363
|
toString(): string;
|
|
1345
1364
|
/** Returns the source map as a base64-encoded data URL. */
|
|
@@ -1352,19 +1371,9 @@ declare class BindingSourceMap {
|
|
|
1352
1371
|
declare class BindingWatcherBundler {
|
|
1353
1372
|
close(): Promise<void>;
|
|
1354
1373
|
}
|
|
1355
|
-
/**
|
|
1356
|
-
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
1357
|
-
*
|
|
1358
|
-
* The cache stores resolved tsconfig configurations keyed by their file paths.
|
|
1359
|
-
* When transforming multiple files in the same project, tsconfig lookups are
|
|
1360
|
-
* deduplicated, improving performance.
|
|
1361
|
-
*
|
|
1362
|
-
* @category Utilities
|
|
1363
|
-
* @experimental
|
|
1364
|
-
*/
|
|
1365
1374
|
declare class TsconfigCache {
|
|
1366
1375
|
/** Create a new transform cache with auto tsconfig discovery enabled. */
|
|
1367
|
-
constructor();
|
|
1376
|
+
constructor(yarnPnp: boolean);
|
|
1368
1377
|
/**
|
|
1369
1378
|
* Clear the cache.
|
|
1370
1379
|
*
|
|
@@ -1374,7 +1383,7 @@ declare class TsconfigCache {
|
|
|
1374
1383
|
/** Get the number of cached entries. */
|
|
1375
1384
|
size(): number;
|
|
1376
1385
|
}
|
|
1377
|
-
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post';
|
|
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-worklets';
|
|
1378
1387
|
interface BindingBundleAnalyzerPluginConfig {
|
|
1379
1388
|
/** Output filename for the bundle analysis data (default: "analyze-data.json") */
|
|
1380
1389
|
fileName?: string;
|
|
@@ -1579,6 +1588,9 @@ interface BindingHookResolveIdExtraArgs {
|
|
|
1579
1588
|
*/
|
|
1580
1589
|
kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept';
|
|
1581
1590
|
}
|
|
1591
|
+
interface BindingIndentOptions {
|
|
1592
|
+
exclude?: Array<Array<number>> | Array<number>;
|
|
1593
|
+
}
|
|
1582
1594
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1583
1595
|
stripInternal?: boolean;
|
|
1584
1596
|
}
|
|
@@ -1592,6 +1604,8 @@ interface BindingLogLocation {
|
|
|
1592
1604
|
interface BindingMagicStringOptions {
|
|
1593
1605
|
filename?: string;
|
|
1594
1606
|
offset?: number;
|
|
1607
|
+
indentExclusionRanges?: Array<Array<number>> | Array<number>;
|
|
1608
|
+
ignoreList?: boolean;
|
|
1595
1609
|
}
|
|
1596
1610
|
interface BindingModulePreloadOptions {
|
|
1597
1611
|
polyfill: boolean;
|
|
@@ -1642,6 +1656,17 @@ interface BindingReplacePluginConfig {
|
|
|
1642
1656
|
objectGuards?: boolean;
|
|
1643
1657
|
sourcemap?: boolean;
|
|
1644
1658
|
}
|
|
1659
|
+
interface BindingRollipopReactRefreshWrapperPluginConfig {
|
|
1660
|
+
cwd: string;
|
|
1661
|
+
include?: Array<BindingStringOrRegex>;
|
|
1662
|
+
exclude?: Array<BindingStringOrRegex>;
|
|
1663
|
+
jsxImportSource?: string;
|
|
1664
|
+
}
|
|
1665
|
+
interface BindingRollipopWorkletsPluginConfig {
|
|
1666
|
+
root: string;
|
|
1667
|
+
pluginVersion: string;
|
|
1668
|
+
isRelease: boolean;
|
|
1669
|
+
}
|
|
1645
1670
|
interface BindingSourceMapOptions {
|
|
1646
1671
|
/** The filename for the generated file (goes into `map.file`) */
|
|
1647
1672
|
file?: string;
|
|
@@ -1845,10 +1870,8 @@ interface PreRenderedChunk {
|
|
|
1845
1870
|
/** Exported variable names from this chunk. */
|
|
1846
1871
|
exports: Array<string>;
|
|
1847
1872
|
}
|
|
1848
|
-
/** @hidden This is only expected to be used by Vite */
|
|
1849
|
-
declare function resolveTsconfig(filename: string, cache?: TsconfigCache | undefined | null): BindingTsconfigResult | null;
|
|
1850
1873
|
interface ViteImportGlobMeta {
|
|
1851
1874
|
isSubImportsPattern?: boolean;
|
|
1852
1875
|
}
|
|
1853
1876
|
//#endregion
|
|
1854
|
-
export {
|
|
1877
|
+
export { BindingViteTransformPluginConfig as A, ParserOptions as B, BindingViteImportGlobPluginConfig as C, BindingViteReactRefreshWrapperPluginConfig as D, BindingViteModulePreloadPolyfillPluginConfig as E, JsxOptions as F, TransformOptions as G, ResolveResult as H, MinifyOptions as I, isolatedDeclarationSync as J, TsconfigCache as K, MinifyResult as L, ExternalMemoryStatus as M, IsolatedDeclarationsOptions as N, BindingViteReporterPluginConfig as O, IsolatedDeclarationsResult as P, NapiResolveOptions as R, BindingViteDynamicImportVarsPluginConfig as S, BindingViteManifestPluginConfig as T, ResolverFactory as U, PreRenderedChunk as V, SourceMap as W, moduleRunnerTransform as Y, BindingTransformHookExtraArgs as _, BindingEnhancedTransformOptions as a, BindingTsconfigResult as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingRollipopWorkletsPluginConfig as g, BindingRollipopReactRefreshWrapperPluginConfig as h, BindingClientHmrUpdate as i, BindingWatcherBundler as j, BindingViteResolvePluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, isolatedDeclaration as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingTsconfigCompilerOptions as v, BindingViteJsonPluginConfig as w, BindingViteBuildImportAnalysisPluginConfig as x, BindingTsconfigRawOptions as y, ParseResult as z };
|