rolldown 1.2.5 → 1.2.7
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/bin/cli.mjs +10 -1
- 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 +33 -4
- package/dist/experimental-index.mjs +33 -8
- package/dist/experimental-runtime-types.d.ts +2 -2
- package/dist/experimental-runtime.d.ts +2 -2
- package/dist/experimental-runtime.mjs +2 -2
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +1 -3
- package/dist/index.d.mts +3 -3
- 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-Bvw14S3g.d.mts → binding-DZuNHVw4.d.mts} +19 -5
- package/dist/shared/{binding-C__LJDBG.mjs → binding-DmImI4pj.mjs} +27 -27
- package/dist/shared/{bindingify-input-options-COG1sboO.mjs → bindingify-input-options-DrImMHKQ.mjs} +11 -9
- package/dist/shared/{constructors-CRumnw21.d.mts → constructors-BM20b11r.d.mts} +2 -2
- package/dist/shared/{constructors-DklcHr18.mjs → constructors-mRbcbLyX.mjs} +1 -1
- package/dist/shared/{create-bundler-option-Cj0juyCQ.mjs → create-bundler-option-CjAOgWvM.mjs} +47 -5
- package/dist/shared/{define-config-DwTNhgWB.d.mts → define-config-DNX0WekP.d.mts} +36 -3
- package/dist/shared/{error-NcRuXAVN.mjs → error-BP8lJHle.mjs} +1 -1
- package/dist/shared/{load-config-CLrSp_LC.mjs → load-config-Dd8RvLlS.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-CFtim40S.mjs → normalize-string-or-regex-Dm69lpQ-.mjs} +1 -1
- package/dist/shared/{parse-HzGoFgdF.mjs → parse-CjRABVv7.mjs} +2 -2
- package/dist/shared/{resolve-tsconfig-D2vSIIkR.mjs → resolve-tsconfig-BlNGaH3Y.mjs} +10 -6
- package/dist/shared/{rolldown-vcii7mEa.mjs → rolldown-DfXO5K1m.mjs} +5 -4
- package/dist/shared/{transform--WSMLt1x.d.mts → transform-CVse9_mH.d.mts} +8 -4
- package/dist/shared/{watch-olxWZPOn.mjs → watch-C94GTIM2.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -5
- package/package.json +22 -22
package/bin/cli.mjs
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import '
|
|
2
|
+
import module from 'node:module';
|
|
3
|
+
try {
|
|
4
|
+
module.enableCompileCache?.();
|
|
5
|
+
setTimeout(() => {
|
|
6
|
+
try {
|
|
7
|
+
module.flushCompileCache?.();
|
|
8
|
+
} catch {}
|
|
9
|
+
}, 10 * 1000).unref();
|
|
10
|
+
} catch {}
|
|
11
|
+
await import('../dist/cli.mjs');
|
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-C94GTIM2.mjs";
|
|
2
|
+
import { D as version, E as description } from "./shared/bindingify-input-options-DrImMHKQ.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-CjAOgWvM.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-DfXO5K1m.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-Dd8RvLlS.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.148.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-DNX0WekP.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-DrImMHKQ.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-Dd8RvLlS.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as defineParallelPlugin,
|
|
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, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
1
|
+
import { $ as resetNativeMemoryStats, B as NapiResolveOptions, E as BindingViteManifestPluginConfig, F as IsolatedDeclarationsResult, G as ResolverFactory, P as IsolatedDeclarationsOptions, Q as moduleRunnerTransform, W as ResolveResult, X as isolatedDeclaration, Y as getNativeMemoryStats, Z as isolatedDeclarationSync, b as BindingTsconfigRawOptions, f as BindingModuleInfo, h as BindingRebuildStrategy, i as BindingClientHmrUpdate, j as BindingViteTransformPluginConfig, n as BindingBundleAnalyzerPluginConfig, p as BindingNativeMemoryStats, r as BindingBundleState, u as BindingLazyChunkOutput, y as BindingTsconfigCompilerOptions } from "./shared/binding-DZuNHVw4.mjs";
|
|
2
|
+
import { $ as defineParallelPlugin, $t as freeExternalMemory, Ht as OutputOptions, I as BuiltinPlugin, Kt as StringOrRegExp, Zt as RolldownOutput, l as InputOptions, ut as NormalizedOutputOptions } from "./shared/define-config-DNX0WekP.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-CVse9_mH.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-BM20b11r.mjs";
|
|
5
5
|
//#region src/api/dev/dev-options.d.ts
|
|
6
6
|
type DevOnHmrUpdates = (result: Error | {
|
|
7
7
|
updates: BindingClientHmrUpdate[];
|
|
@@ -96,8 +96,37 @@ interface DevOptions {
|
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/api/dev/dev-engine.d.ts
|
|
99
|
+
/**
|
|
100
|
+
* The part of the binding engine the module graph reads from.
|
|
101
|
+
*
|
|
102
|
+
* Typed structurally instead of as `BindingDevEngine`: a public constructor
|
|
103
|
+
* parameter type is emitted into the public dts, and naming the binding class
|
|
104
|
+
* there would pull the whole binding type chain into the public surface.
|
|
105
|
+
*/
|
|
106
|
+
interface ModuleGraphSource {
|
|
107
|
+
getModuleInfo(moduleId: string): BindingModuleInfo | null;
|
|
108
|
+
getModuleIds(): Array<string>;
|
|
109
|
+
}
|
|
110
|
+
/** Read-only view over the engine's module graph, kept current across rebuilds. */
|
|
111
|
+
declare class DevEngineModuleGraph {
|
|
112
|
+
#private;
|
|
113
|
+
constructor(inner: ModuleGraphSource);
|
|
114
|
+
/**
|
|
115
|
+
* Get additional information about the module in question.
|
|
116
|
+
*
|
|
117
|
+
* @returns Module information for that module. `null` if the module could not be found.
|
|
118
|
+
*/
|
|
119
|
+
getModuleInfo(moduleId: string): BindingModuleInfo | null;
|
|
120
|
+
/**
|
|
121
|
+
* Get all module ids in the current module graph.
|
|
122
|
+
*
|
|
123
|
+
* @returns An array of module ids.
|
|
124
|
+
*/
|
|
125
|
+
getModuleIds(): string[];
|
|
126
|
+
}
|
|
99
127
|
export declare class DevEngine {
|
|
100
128
|
#private;
|
|
129
|
+
readonly moduleGraph: DevEngineModuleGraph;
|
|
101
130
|
static create(inputOptions: InputOptions, outputOptions?: OutputOptions, devOptions?: DevOptions): Promise<DevEngine>;
|
|
102
131
|
private constructor();
|
|
103
132
|
run(): Promise<void>;
|
|
@@ -1,18 +1,42 @@
|
|
|
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-DmImI4pj.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-Dm69lpQ-.mjs";
|
|
3
|
+
import { u as transformToRollupOutput } from "./shared/bindingify-input-options-DrImMHKQ.mjs";
|
|
4
|
+
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-CjAOgWvM.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BP8lJHle.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-CjRABVv7.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-mRbcbLyX.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-BlNGaH3Y.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);
|
|
12
|
+
/** Read-only view over the engine's module graph, kept current across rebuilds. */
|
|
13
|
+
var DevEngineModuleGraph = class {
|
|
14
|
+
#inner;
|
|
15
|
+
constructor(inner) {
|
|
16
|
+
this.#inner = inner;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get additional information about the module in question.
|
|
20
|
+
*
|
|
21
|
+
* @returns Module information for that module. `null` if the module could not be found.
|
|
22
|
+
*/
|
|
23
|
+
getModuleInfo(moduleId) {
|
|
24
|
+
return this.#inner.getModuleInfo(moduleId) ?? null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get all module ids in the current module graph.
|
|
28
|
+
*
|
|
29
|
+
* @returns An array of module ids.
|
|
30
|
+
*/
|
|
31
|
+
getModuleIds() {
|
|
32
|
+
return this.#inner.getModuleIds();
|
|
33
|
+
}
|
|
34
|
+
};
|
|
12
35
|
var DevEngine = class DevEngine {
|
|
13
36
|
#inner;
|
|
14
37
|
#cachedBuildFinishPromise = null;
|
|
15
38
|
#asyncRuntimeReleased = false;
|
|
39
|
+
moduleGraph;
|
|
16
40
|
static async create(inputOptions, outputOptions = {}, devOptions = {}) {
|
|
17
41
|
inputOptions = await PluginDriver.callOptionsHook(inputOptions);
|
|
18
42
|
const options = await createBundlerOptions(inputOptions, outputOptions, false);
|
|
@@ -65,6 +89,7 @@ var DevEngine = class DevEngine {
|
|
|
65
89
|
}
|
|
66
90
|
constructor(inner) {
|
|
67
91
|
this.#inner = inner;
|
|
92
|
+
this.moduleGraph = new DevEngineModuleGraph(inner);
|
|
68
93
|
}
|
|
69
94
|
async run() {
|
|
70
95
|
await this.#inner.run();
|
|
@@ -84,9 +84,9 @@ export class DevRuntime {
|
|
|
84
84
|
registerFactory(id: string, kind: "esm" | "cjs", fn: (id: string) => void): void;
|
|
85
85
|
/**
|
|
86
86
|
* @param {string} id
|
|
87
|
-
* @param {{ exports: any }} exportsHolder
|
|
87
|
+
* @param {{ exports: any }} [exportsHolder]
|
|
88
88
|
*/
|
|
89
|
-
registerModule(id: string, exportsHolder
|
|
89
|
+
registerModule(id: string, exportsHolder?: {
|
|
90
90
|
exports: any;
|
|
91
91
|
}): void;
|
|
92
92
|
/**
|
|
@@ -84,9 +84,9 @@ export class DevRuntime {
|
|
|
84
84
|
registerFactory(id: string, kind: "esm" | "cjs", fn: (id: string) => void): void;
|
|
85
85
|
/**
|
|
86
86
|
* @param {string} id
|
|
87
|
-
* @param {{ exports: any }} exportsHolder
|
|
87
|
+
* @param {{ exports: any }} [exportsHolder]
|
|
88
88
|
*/
|
|
89
|
-
registerModule(id: string, exportsHolder
|
|
89
|
+
registerModule(id: string, exportsHolder?: {
|
|
90
90
|
exports: any;
|
|
91
91
|
}): void;
|
|
92
92
|
/**
|
|
@@ -148,9 +148,9 @@ export class DevRuntime {
|
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* @param {string} id
|
|
151
|
-
* @param {{ exports: any }} exportsHolder
|
|
151
|
+
* @param {{ exports: any }} [exportsHolder]
|
|
152
152
|
*/
|
|
153
|
-
registerModule(id, exportsHolder) {
|
|
153
|
+
registerModule(id, exportsHolder = { exports: {} }) {
|
|
154
154
|
const module = new Module(id);
|
|
155
155
|
module.exportsHolder = exportsHolder;
|
|
156
156
|
this.moduleCache.set(id, module);
|
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-DNX0WekP.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/filter-index.mjs
CHANGED
|
@@ -155,9 +155,7 @@ function interpreterImpl(expr, code, id, moduleType, importerId, ctx = {}) {
|
|
|
155
155
|
hasInclude = true;
|
|
156
156
|
if (exprInterpreter(e.expr, code, id, moduleType, importerId, ctx)) return true;
|
|
157
157
|
break;
|
|
158
|
-
case "exclude":
|
|
159
|
-
if (exprInterpreter(e.expr, code, id, moduleType, importerId, ctx)) return false;
|
|
160
|
-
break;
|
|
158
|
+
case "exclude": if (exprInterpreter(e.expr, code, id, moduleType, importerId, ctx)) return false;
|
|
161
159
|
}
|
|
162
160
|
return !hasInclude;
|
|
163
161
|
}
|
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
|
-
import {
|
|
3
|
-
import {
|
|
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 };
|
|
2
|
+
import { U as PreRenderedChunk } from "./shared/binding-DZuNHVw4.mjs";
|
|
3
|
+
import { A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as MinifyOptions, C as ParallelPluginHooks, Ct as RolldownBuild, D as ResolveFileUrlArgs, Dt as AdvancedChunksGroup, E as PluginMeta, Et as AddonFunction, Ft as CommentsOptions, G as EmittedAsset, Gt as PartialNull, H as OutputBundle, Ht as OutputOptions, It as GeneratedCodeOptions, J as EmittedPrebuiltChunk, Jt as OutputChunk, K as EmittedChunk, 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, Qt as SourceMap, R as VERSION, Rt as GlobalsFunction, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, Ut as PreRenderedAsset, V as SourceMapInput, Vt as ModuleFormat, W as TransformPluginContext, X as PluginContext, Xt as RenderedModule, Y as GetModuleInfo, Yt as RenderedChunk, Z as PluginContextResolveOptions, Zt as RolldownOutput, _ 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 ModuleInfo, 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 OutputAsset, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tn as SourcemapIgnoreListOption, 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 ManglePropertiesOptions } from "./shared/define-config-DNX0WekP.mjs";
|
|
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 ManglePropertiesOptions, 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-DmImI4pj.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-C94GTIM2.mjs";
|
|
3
|
+
import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-DrImMHKQ.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-DfXO5K1m.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-DmImI4pj.mjs";
|
|
2
|
+
import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-DrImMHKQ.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,
|
|
1
|
+
import { T as Plugin, Wt as MaybePromise } from "./shared/define-config-DNX0WekP.mjs";
|
|
2
2
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
3
3
|
type ParallelPluginImplementation = Plugin;
|
|
4
4
|
type Context = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as ParserOptions$1, V as ParseResult$1 } from "./shared/binding-DZuNHVw4.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
//#region src/parse-ast-index.d.ts
|
|
4
4
|
/**
|
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-CjRABVv7.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 {
|
|
2
|
-
import { I as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { _ as BindingReplacePluginConfig } from "./shared/binding-DZuNHVw4.mjs";
|
|
2
|
+
import { I as BuiltinPlugin } from "./shared/define-config-DNX0WekP.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BM20b11r.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-Dm69lpQ-.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-mRbcbLyX.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1419,6 +1419,17 @@ declare class BindingMagicString {
|
|
|
1419
1419
|
*/
|
|
1420
1420
|
generateDecodedMap(options?: BindingSourceMapOptions | undefined | null): BindingDecodedMap;
|
|
1421
1421
|
}
|
|
1422
|
+
declare class BindingModuleInfo {
|
|
1423
|
+
id: string;
|
|
1424
|
+
importers: Array<string>;
|
|
1425
|
+
dynamicImporters: Array<string>;
|
|
1426
|
+
importedIds: Array<string>;
|
|
1427
|
+
dynamicallyImportedIds: Array<string>;
|
|
1428
|
+
exports: Array<string>;
|
|
1429
|
+
isEntry: boolean;
|
|
1430
|
+
inputFormat: 'es' | 'cjs' | 'unknown';
|
|
1431
|
+
get code(): string | null;
|
|
1432
|
+
}
|
|
1422
1433
|
declare class BindingNormalizedOptions {
|
|
1423
1434
|
get input(): Array<string> | Record<string, string>;
|
|
1424
1435
|
get cwd(): string;
|
|
@@ -1506,8 +1517,8 @@ declare class BindingWatcherBundler {
|
|
|
1506
1517
|
close(): Promise<void>;
|
|
1507
1518
|
}
|
|
1508
1519
|
declare class TsconfigCache {
|
|
1509
|
-
/** Create a new transform cache with auto tsconfig discovery enabled. */
|
|
1510
|
-
constructor(yarnPnp: boolean);
|
|
1520
|
+
/** Create a new transform cache with auto or manual tsconfig discovery enabled. */
|
|
1521
|
+
constructor(yarnPnp: boolean, pathToTsconfig?: string | undefined | null);
|
|
1511
1522
|
/**
|
|
1512
1523
|
* Clear the cache.
|
|
1513
1524
|
*
|
|
@@ -1633,9 +1644,10 @@ interface BindingEnhancedTransformOptions {
|
|
|
1633
1644
|
/**
|
|
1634
1645
|
* Configure tsconfig handling.
|
|
1635
1646
|
* - true: Auto-discover and load the nearest tsconfig.json
|
|
1647
|
+
* - string: Use the tsconfig at the provided path
|
|
1636
1648
|
* - TsconfigRawOptions: Use the provided inline tsconfig options
|
|
1637
1649
|
*/
|
|
1638
|
-
tsconfig?: boolean | BindingTsconfigRawOptions;
|
|
1650
|
+
tsconfig?: boolean | string | BindingTsconfigRawOptions;
|
|
1639
1651
|
/** An input source map to collapse with the output source map. */
|
|
1640
1652
|
inputMap?: SourceMap;
|
|
1641
1653
|
}
|
|
@@ -1958,6 +1970,7 @@ interface BindingViteReporterPluginConfig {
|
|
|
1958
1970
|
}
|
|
1959
1971
|
interface BindingViteResolvePluginConfig {
|
|
1960
1972
|
resolveOptions: BindingViteResolvePluginResolveOptions;
|
|
1973
|
+
tsconfig?: string;
|
|
1961
1974
|
environmentConsumer: string;
|
|
1962
1975
|
environmentName: string;
|
|
1963
1976
|
builtins: Array<BindingStringOrRegex>;
|
|
@@ -1992,6 +2005,7 @@ interface BindingViteResolvePluginResolveOptions {
|
|
|
1992
2005
|
}
|
|
1993
2006
|
interface BindingViteTransformPluginConfig {
|
|
1994
2007
|
root: string;
|
|
2008
|
+
tsconfig?: string;
|
|
1995
2009
|
include?: Array<BindingStringOrRegex>;
|
|
1996
2010
|
exclude?: Array<BindingStringOrRegex>;
|
|
1997
2011
|
jsxRefreshInclude?: Array<BindingStringOrRegex>;
|
|
@@ -2032,7 +2046,7 @@ interface PreRenderedChunk {
|
|
|
2032
2046
|
/** Whether this chunk is a dynamic entry point. */
|
|
2033
2047
|
isDynamicEntry: boolean;
|
|
2034
2048
|
/** The id of a module that this chunk corresponds to. */
|
|
2035
|
-
facadeModuleId
|
|
2049
|
+
facadeModuleId: string | null;
|
|
2036
2050
|
/** The list of ids of modules included in this chunk. */
|
|
2037
2051
|
moduleIds: Array<string>;
|
|
2038
2052
|
/** Exported variable names from this chunk. */
|
|
@@ -2048,4 +2062,4 @@ interface ViteImportGlobMeta {
|
|
|
2048
2062
|
isSubImportsPattern?: boolean;
|
|
2049
2063
|
}
|
|
2050
2064
|
//#endregion
|
|
2051
|
-
export {
|
|
2065
|
+
export { resetNativeMemoryStats as $, BindingViteResolvePluginConfig as A, NapiResolveOptions as B, BindingViteDynamicImportVarsPluginConfig as C, BindingViteModulePreloadPolyfillPluginConfig as D, BindingViteManifestPluginConfig as E, IsolatedDeclarationsResult as F, ResolverFactory as G, ParserOptions as H, JsxOptions as I, TsconfigCache as J, SourceMap as K, ManglePropertiesOptions as L, BindingWatcherBundler as M, ExternalMemoryStatus as N, BindingViteReactRefreshWrapperPluginConfig as O, IsolatedDeclarationsOptions as P, moduleRunnerTransform as Q, MinifyOptions as R, BindingViteBuildImportAnalysisPluginConfig as S, BindingViteJsonPluginConfig as T, PreRenderedChunk as U, ParseResult as V, ResolveResult as W, isolatedDeclaration as X, getNativeMemoryStats as Y, isolatedDeclarationSync as Z, BindingReplacePluginConfig as _, BindingEnhancedTransformOptions as a, BindingTsconfigRawOptions as b, BindingHookResolveIdExtraArgs as c, BindingMagicString as d, BindingModuleInfo as f, BindingRenderedChunk as g, BindingRebuildStrategy as h, BindingClientHmrUpdate as i, BindingViteTransformPluginConfig as j, BindingViteReporterPluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingPluginContextResolveOptions as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingNativeMemoryStats as p, TransformOptions as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingLazyChunkOutput as u, BindingTransformHookExtraArgs as v, BindingViteImportGlobPluginConfig as w, BindingTsconfigResult as x, BindingTsconfigCompilerOptions as y, MinifyResult as z };
|