@rolldown/browser 1.0.0-rc.1 → 1.0.0-rc.2
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 +8 -8
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +5 -5
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.d.mts +41 -41
- package/dist/experimental-index.mjs +3 -3
- package/dist/filter-index.d.mts +1 -1
- package/dist/get-log-filter.d.mts +1 -1
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +5 -5
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +3 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-C4tDS_XC.js → rolldown-build-BntP6Bjl.js} +115 -107
- package/dist/shared/{bindingify-input-options-Bp2kpiI8.mjs → bindingify-input-options-CObJx_Uj.mjs} +10 -5
- package/dist/shared/define-config-C-sO_cLw.d.mts +3679 -0
- package/dist/shared/{load-config-BBZgIUGN.mjs → load-config-hx3WBhLe.mjs} +1 -1
- package/dist/shared/{logging-Nvu645a7.d.mts → logging-RB67zQ4N.d.mts} +6 -6
- package/dist/shared/{parse-ast-index-2ahkCVK6.mjs → parse-ast-index-BQpfNG1v.mjs} +1 -1
- package/dist/shared/{prompt-B6NrDD1-.mjs → prompt-CYPmuhh-.mjs} +3 -3
- package/dist/shared/{rolldown-C0_W0QdY.mjs → rolldown-D2E0YTeB.mjs} +1 -1
- package/dist/shared/{rolldown-build-DLuUhuNw.mjs → rolldown-build-Do6WlRGM.mjs} +106 -103
- package/dist/shared/{types-CIYK49jr.d.mts → types-CIhJMr1h.d.mts} +2 -2
- package/dist/shared/{watch-eIop0yN6.mjs → watch-BsneBCNP.mjs} +4 -4
- package/package.json +1 -1
- package/dist/shared/define-config-CDlEOpr1.d.mts +0 -3531
package/dist/cli.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BsneBCNP.mjs";
|
|
2
2
|
import "./shared/normalize-string-or-regex-DIwprzLy.mjs";
|
|
3
|
-
import { C as description, w as version } from "./shared/bindingify-input-options-
|
|
3
|
+
import { C as description, w as version } from "./shared/bindingify-input-options-CObJx_Uj.mjs";
|
|
4
4
|
import { h as arraify } from "./shared/composable-filters-CIxSuZSM.mjs";
|
|
5
|
-
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-
|
|
6
|
-
import "./shared/parse-ast-index-
|
|
7
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
8
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
5
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-Do6WlRGM.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-BQpfNG1v.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-D2E0YTeB.mjs";
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-hx3WBhLe.mjs";
|
|
9
9
|
import path, { sep } from "node:path";
|
|
10
10
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
11
11
|
import process$1 from "node:process";
|
|
@@ -950,7 +950,7 @@ function createConsola(options = {}) {
|
|
|
950
950
|
defaults: { level },
|
|
951
951
|
stdout: process.stdout,
|
|
952
952
|
stderr: process.stderr,
|
|
953
|
-
prompt: (...args) => import("./shared/prompt-
|
|
953
|
+
prompt: (...args) => import("./shared/prompt-CYPmuhh-.mjs").then((m) => m.prompt(...args)),
|
|
954
954
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
955
955
|
...options
|
|
956
956
|
});
|
|
@@ -1237,7 +1237,7 @@ function getClearScreenFunction(options) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
//#endregion
|
|
1240
|
-
//#region \0@oxc-project+runtime@0.
|
|
1240
|
+
//#region \0@oxc-project+runtime@0.111.0/helpers/usingCtx.js
|
|
1241
1241
|
function _usingCtx() {
|
|
1242
1242
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
1243
1243
|
var n = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as defineConfig, t as ConfigExport } from "./shared/define-config-
|
|
1
|
+
import { r as defineConfig, t as ConfigExport } from "./shared/define-config-C-sO_cLw.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./shared/normalize-string-or-regex-DIwprzLy.mjs";
|
|
2
|
-
import { w as version } from "./shared/bindingify-input-options-
|
|
3
|
-
import "./shared/rolldown-build-
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
5
|
-
import "./shared/rolldown-
|
|
2
|
+
import { w as version } from "./shared/bindingify-input-options-CObJx_Uj.mjs";
|
|
3
|
+
import "./shared/rolldown-build-Do6WlRGM.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-BQpfNG1v.mjs";
|
|
5
|
+
import "./shared/rolldown-D2E0YTeB.mjs";
|
|
6
6
|
import { t as defineConfig } from "./shared/define-config-Dlptvz3X.mjs";
|
|
7
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
7
|
+
import { t as loadConfig } from "./shared/load-config-hx3WBhLe.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/config.ts
|
|
10
10
|
const VERSION = version;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CL-PJZI7.js";
|
|
2
|
-
import { a as unwrapBindingResult, c as transformToRollupOutput, i as normalizeBindingResult, l as validateOption, n as createBundlerOptions, o as parse, s as parseSync, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
2
|
+
import { a as unwrapBindingResult, c as transformToRollupOutput, i as normalizeBindingResult, l as validateOption, n as createBundlerOptions, o as parse, s as parseSync, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-BntP6Bjl.js";
|
|
3
3
|
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWasmHelperPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./constructors-B8gqcrFr.js";
|
|
4
4
|
import * as binding from "./rolldown-binding.wasi-browser.js";
|
|
5
5
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, createTokioRuntime, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi-browser.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as NormalizedOutputOptions, Zt as OutputOptions, an as freeExternalMemory, c as InputOptions, ft as defineParallelPlugin, rn as RolldownOutput } from "./shared/define-config-
|
|
1
|
+
import { Ct as NormalizedOutputOptions, Zt as OutputOptions, an as freeExternalMemory, c as InputOptions, ft as defineParallelPlugin, rn as RolldownOutput } from "./shared/define-config-C-sO_cLw.mjs";
|
|
2
2
|
import { t as BuiltinPlugin } from "./shared/utils-CqMTwlsR.mjs";
|
|
3
3
|
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWasmHelperPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-5bt5oBhE.mjs";
|
|
4
4
|
import { BindingViteManifestPluginConfig, BindingViteTransformPluginConfig, ParseResult as ParseResult$1, ParserOptions as ParserOptions$1 } from "../binding.cjs";
|
|
@@ -13,54 +13,54 @@ type DevOnHmrUpdates = (result: Error | {
|
|
|
13
13
|
type DevOnOutput = (result: Error | RolldownOutput) => void | Promise<void>;
|
|
14
14
|
interface DevWatchOptions {
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
* If `true`, files are not written to disk.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
19
|
skipWrite?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* If `true`, use polling instead of native file system events for watching.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
24
|
usePolling?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
* Poll interval in milliseconds (only used when usePolling is true).
|
|
27
|
+
* @default 100
|
|
28
|
+
*/
|
|
29
29
|
pollInterval?: number;
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
* If `true`, use debounced watcher. If `false`, use non-debounced watcher for immediate responses.
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
34
|
useDebounce?: boolean;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
* Debounce duration in milliseconds (only used when useDebounce is true).
|
|
37
|
+
* @default 10
|
|
38
|
+
*/
|
|
39
39
|
debounceDuration?: number;
|
|
40
40
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
* Whether to compare file contents for poll-based watchers (only used when usePolling is true).
|
|
42
|
+
* When enabled, poll watchers will check file contents to determine if they actually changed.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
45
|
compareContentsForPolling?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
* Tick rate in milliseconds for debounced watchers (only used when useDebounce is true).
|
|
48
|
+
* Controls how frequently the debouncer checks for events to process.
|
|
49
|
+
* When not specified, the debouncer will auto-select an appropriate tick rate (1/4 of the debounce duration).
|
|
50
|
+
* @default undefined (auto-select)
|
|
51
|
+
*/
|
|
52
52
|
debounceTickRate?: number;
|
|
53
53
|
}
|
|
54
54
|
interface DevOptions {
|
|
55
55
|
onHmrUpdates?: DevOnHmrUpdates;
|
|
56
56
|
onOutput?: DevOnOutput;
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
* Strategy for triggering rebuilds after HMR updates.
|
|
59
|
+
* - `'always'`: Always trigger a rebuild after HMR updates
|
|
60
|
+
* - `'auto'`: Trigger rebuild only if HMR updates contain full reload updates
|
|
61
|
+
* - `'never'`: Never trigger rebuild after HMR updates (default)
|
|
62
|
+
* @default 'auto'
|
|
63
|
+
*/
|
|
64
64
|
rebuildStrategy?: "always" | "auto" | "never";
|
|
65
65
|
watch?: DevWatchOptions;
|
|
66
66
|
}
|
|
@@ -79,16 +79,16 @@ declare class DevEngine {
|
|
|
79
79
|
removeClient(clientId: string): Promise<void>;
|
|
80
80
|
close(): Promise<void>;
|
|
81
81
|
/**
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
82
|
+
* Compile a lazy entry module and return HMR-style patch code.
|
|
83
|
+
*
|
|
84
|
+
* This is called when a dynamically imported module is first requested at runtime.
|
|
85
|
+
* The module was previously stubbed with a proxy, and now we need to compile the
|
|
86
|
+
* actual module and its dependencies.
|
|
87
|
+
*
|
|
88
|
+
* @param moduleId - The absolute file path of the module to compile
|
|
89
|
+
* @param clientId - The client ID requesting this compilation
|
|
90
|
+
* @returns The compiled JavaScript code as a string (HMR patch format)
|
|
91
|
+
*/
|
|
92
92
|
compileEntry(moduleId: string, clientId: string): Promise<string>;
|
|
93
93
|
}
|
|
94
94
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-DIwprzLy.mjs";
|
|
2
|
-
import { c as transformToRollupOutput, o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-
|
|
3
|
-
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-
|
|
4
|
-
import { i as parseSync, r as parse } from "./shared/parse-ast-index-
|
|
2
|
+
import { c as transformToRollupOutput, o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-CObJx_Uj.mjs";
|
|
3
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-Do6WlRGM.mjs";
|
|
4
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-BQpfNG1v.mjs";
|
|
5
5
|
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWasmHelperPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-BTW-c3jX.mjs";
|
|
6
6
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, createTokioRuntime, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi.cjs";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as id, F as TopLevelFilterExpression, G as moduleType, H as include, I as and, J as queries, K as not, L as code, M as FilterExpression, N as FilterExpressionKind, P as QueryFilterObject, R as exclude, U as interpreter, V as importerId, W as interpreterImpl, Y as query, j as withFilter, q as or, z as exprInterpreter } from "./shared/define-config-
|
|
1
|
+
import { B as id, F as TopLevelFilterExpression, G as moduleType, H as include, I as and, J as queries, K as not, L as code, M as FilterExpression, N as FilterExpressionKind, P as QueryFilterObject, R as exclude, U as interpreter, V as importerId, W as interpreterImpl, Y as query, j as withFilter, q as or, z as exprInterpreter } from "./shared/define-config-C-sO_cLw.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../pluginutils/dist/filter/filter-vite-plugins.d.ts
|
|
4
4
|
/**
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as logMultiplyNotifyOption } from "./normalize-string-or-regex-CL-PJZI7.js";
|
|
2
|
-
import { d as LOG_LEVEL_WARN, f as arraify, l as validateOption, n as createBundlerOptions, p as VERSION, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
2
|
+
import { d as LOG_LEVEL_WARN, f as arraify, l as validateOption, n as createBundlerOptions, p as VERSION, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-BntP6Bjl.js";
|
|
3
3
|
import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
|
|
5
5
|
//#region src/api/rolldown/index.ts
|
|
@@ -227,11 +227,11 @@ function getValidNotifyOption(bundlerOptions) {
|
|
|
227
227
|
* @experimental
|
|
228
228
|
* @category Programmatic APIs
|
|
229
229
|
*/
|
|
230
|
-
|
|
230
|
+
function watch(input) {
|
|
231
231
|
const emitter = new WatcherEmitter();
|
|
232
232
|
createWatcher(emitter, input);
|
|
233
233
|
return emitter;
|
|
234
|
-
}
|
|
234
|
+
}
|
|
235
235
|
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region src/utils/define-config.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-
|
|
2
|
-
import { $ as ExistingRawSourceMap, $t as OutputAsset, A as TransformResult, At as RolldownWatcher, Bt as AdvancedChunksOptions, C as Plugin, Ct as NormalizedOutputOptions, D as RolldownPlugin, Dt as LoggingFunction, E as ResolvedId, Et as ChecksOptions, Ft as RolldownBuild, Gt as CodeSplittingOptions, Ht as ChunkingContext, It as BuildOptions, Jt as GlobalsFunction, Kt as GeneratedCodeOptions, Lt as build, Mt as RolldownWatcherWatcherEventMap, Nt as WatchOptions, O as RolldownPluginOption, Ot as WarningHandlerWithDefault, Pt as rolldown, Q as VERSION, Qt as PreRenderedAsset, Rt as AddonFunction, S as PartialResolvedId, St as InternalModuleFormat, T as ResolveIdResult, Tt as TransformOptions, Ut as CodeSplittingGroup, Vt as ChunkFileNamesFunction, Wt as CodeSplittingNameFunction, X as BindingMagicString, Xt as ModuleFormat, Yt as MinifyOptions, Z as PreRenderedChunk, Zt as OutputOptions, _ as LoadResult, _t as ModuleTypeFilter, a as ExternalOption, at as EmittedChunk, b as ObjectHook, bt as RolldownFileStats, c as InputOptions, ct as GetModuleInfo, d as WatcherOptions, dt as DefineParallelPluginResult, en as OutputChunk, et as SourceMapInput, f as AsyncPluginHooks, g as ImportKind, gt as HookFilter, h as HookFilterExtension, ht as GeneralHookFilter, i as RolldownOptions, in as SourceMap, it as EmittedAsset, jt as RolldownWatcherEvent, k as SourceDescription, kt as watch, l as ModuleTypes, lt as PluginContext, m as FunctionPluginHooks, mt as PluginContextMeta, n as RolldownOptionsFunction, nn as RenderedModule, nt as TreeshakingOptions, o as ExternalOptionFunction, on as ModuleInfo, ot as EmittedFile, p as CustomPluginOptions, pt as MinimalPluginContext, qt as GeneratedCodePreset, r as defineConfig, rn as RolldownOutput, rt as TransformPluginContext, s as InputOption, sn as SourcemapIgnoreListOption, st as EmittedPrebuiltChunk, t as ConfigExport, tn as RenderedChunk, tt as OutputBundle, u as OptimizationOptions, ut as PluginContextResolveOptions, v as ModuleOptions, vt as BufferEncoding, w as ResolveIdExtraOptions, wt as NormalizedInputOptions, x as ParallelPluginHooks, xt as RolldownFsModule, y as ModuleType, yt as RolldownDirectoryEntry, zt as AdvancedChunksGroup } from "./shared/define-config-
|
|
1
|
+
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-RB67zQ4N.mjs";
|
|
2
|
+
import { $ as ExistingRawSourceMap, $t as OutputAsset, A as TransformResult, At as RolldownWatcher, Bt as AdvancedChunksOptions, C as Plugin, Ct as NormalizedOutputOptions, D as RolldownPlugin, Dt as LoggingFunction, E as ResolvedId, Et as ChecksOptions, Ft as RolldownBuild, Gt as CodeSplittingOptions, Ht as ChunkingContext, It as BuildOptions, Jt as GlobalsFunction, Kt as GeneratedCodeOptions, Lt as build, Mt as RolldownWatcherWatcherEventMap, Nt as WatchOptions, O as RolldownPluginOption, Ot as WarningHandlerWithDefault, Pt as rolldown, Q as VERSION, Qt as PreRenderedAsset, Rt as AddonFunction, S as PartialResolvedId, St as InternalModuleFormat, T as ResolveIdResult, Tt as TransformOptions, Ut as CodeSplittingGroup, Vt as ChunkFileNamesFunction, Wt as CodeSplittingNameFunction, X as BindingMagicString, Xt as ModuleFormat, Yt as MinifyOptions, Z as PreRenderedChunk, Zt as OutputOptions, _ as LoadResult, _t as ModuleTypeFilter, a as ExternalOption, at as EmittedChunk, b as ObjectHook, bt as RolldownFileStats, c as InputOptions, ct as GetModuleInfo, d as WatcherOptions, dt as DefineParallelPluginResult, en as OutputChunk, et as SourceMapInput, f as AsyncPluginHooks, g as ImportKind, gt as HookFilter, h as HookFilterExtension, ht as GeneralHookFilter, i as RolldownOptions, in as SourceMap, it as EmittedAsset, jt as RolldownWatcherEvent, k as SourceDescription, kt as watch, l as ModuleTypes, lt as PluginContext, m as FunctionPluginHooks, mt as PluginContextMeta, n as RolldownOptionsFunction, nn as RenderedModule, nt as TreeshakingOptions, o as ExternalOptionFunction, on as ModuleInfo, ot as EmittedFile, p as CustomPluginOptions, pt as MinimalPluginContext, qt as GeneratedCodePreset, r as defineConfig, rn as RolldownOutput, rt as TransformPluginContext, s as InputOption, sn as SourcemapIgnoreListOption, st as EmittedPrebuiltChunk, t as ConfigExport, tn as RenderedChunk, tt as OutputBundle, u as OptimizationOptions, ut as PluginContextResolveOptions, v as ModuleOptions, vt as BufferEncoding, w as ResolveIdExtraOptions, wt as NormalizedInputOptions, x as ParallelPluginHooks, xt as RolldownFsModule, y as ModuleType, yt as RolldownDirectoryEntry, zt as AdvancedChunksGroup } from "./shared/define-config-C-sO_cLw.mjs";
|
|
3
3
|
import { o as PartialNull } from "./shared/utils-CqMTwlsR.mjs";
|
|
4
4
|
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, 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, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BsneBCNP.mjs";
|
|
2
2
|
import "./shared/normalize-string-or-regex-DIwprzLy.mjs";
|
|
3
|
-
import { S as VERSION } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/rolldown-build-
|
|
5
|
-
import "./shared/parse-ast-index-
|
|
6
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
3
|
+
import { S as VERSION } from "./shared/bindingify-input-options-CObJx_Uj.mjs";
|
|
4
|
+
import "./shared/rolldown-build-Do6WlRGM.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-BQpfNG1v.mjs";
|
|
6
|
+
import { t as rolldown } from "./shared/rolldown-D2E0YTeB.mjs";
|
|
7
7
|
import { t as defineConfig } from "./shared/define-config-Dlptvz3X.mjs";
|
|
8
8
|
import { isMainThread } from "node:worker_threads";
|
|
9
9
|
import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./shared/normalize-string-or-regex-DIwprzLy.mjs";
|
|
2
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CObJx_Uj.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-BQpfNG1v.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as Plugin } from "./shared/define-config-
|
|
1
|
+
import { C as Plugin } from "./shared/define-config-C-sO_cLw.mjs";
|
|
2
2
|
import { i as MaybePromise } from "./shared/utils-CqMTwlsR.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
6
6
|
type Context = {
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* Thread number
|
|
9
|
+
*/
|
|
10
10
|
threadNumber: number;
|
|
11
11
|
};
|
|
12
12
|
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
package/dist/parse-ast-index.mjs
CHANGED
|
Binary file
|