@rolldown/browser 1.0.0-beta.51 → 1.0.0-beta.52
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 +3 -3
- package/dist/config.mjs +6 -6
- package/dist/{constructors-DoUEJY6G.js → constructors-DW3R_Jog.js} +5 -2
- package/dist/experimental-index.browser.mjs +7 -7
- package/dist/experimental-index.d.mts +16 -6
- package/dist/experimental-index.mjs +9 -9
- package/dist/filter-index.d.mts +3 -3
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +6 -6
- package/dist/{normalize-string-or-regex-BXFT9GiS.js → normalize-string-or-regex-BcbPUrYo.js} +2 -2
- package/dist/parallel-plugin-worker.mjs +3 -3
- 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/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-C0UB1WZy.js → rolldown-build-CUYnBV3u.js} +23 -9
- package/dist/shared/{binding-lSvYApx7.d.mts → binding-BKL2JHoJ.d.mts} +15 -10
- package/dist/shared/{bindingify-input-options-CSdAtTcQ.mjs → bindingify-input-options-D4i1DYzt.mjs} +2 -2
- package/dist/shared/{constructors-DgFF472b.d.mts → constructors-BvaMwihu.d.mts} +4 -3
- package/dist/shared/{constructors-DF6M1PTb.mjs → constructors-XFp0WhK3.mjs} +5 -2
- package/dist/shared/{define-config-BKu-xa_0.d.mts → define-config-Buedmg9e.d.mts} +23 -10
- package/dist/shared/{load-config-Beo_LOwd.mjs → load-config-C9CjEv2m.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-DvECZN2V.mjs → normalize-string-or-regex-D1mB67Iy.mjs} +2 -2
- package/dist/shared/{parse-ast-index-C_M-Y4oC.mjs → parse-ast-index-BSDTTjWT.mjs} +19 -5
- package/dist/shared/{rolldown-BhV7L6Kg.mjs → rolldown-0ID0Q4xL.mjs} +1 -1
- package/dist/shared/{rolldown-build-DYR94CyF.mjs → rolldown-build-BWJGpMD0.mjs} +3 -3
- package/dist/shared/{utils-BJWI2OzT.d.mts → utils-DKydZ4iH.d.mts} +1 -1
- package/dist/shared/{watch-Cjxo-3u4.mjs → watch-CwnSQOS4.mjs} +3 -3
- package/package.json +5 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-CwnSQOS4.mjs";
|
|
2
2
|
import "./shared/logs-CPsamAuj.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-5GYLGQ20.mjs";
|
|
4
|
-
import { v as description, y as version } from "./shared/normalize-string-or-regex-
|
|
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/bindingify-input-options-
|
|
7
|
-
import "./shared/parse-ast-index-
|
|
4
|
+
import { v as description, y as version } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
5
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-BWJGpMD0.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
8
8
|
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-0ID0Q4xL.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-C9CjEv2m.mjs";
|
|
11
11
|
import path, { sep } from "node:path";
|
|
12
12
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
13
13
|
import process$1 from "node:process";
|
|
@@ -1239,7 +1239,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
1241
|
//#endregion
|
|
1242
|
-
//#region \0@oxc-project+runtime@0.
|
|
1242
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/usingCtx.js
|
|
1243
1243
|
function _usingCtx() {
|
|
1244
1244
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1245
1245
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/utils-
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/load-config.d.ts
|
|
6
6
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./shared/logs-CPsamAuj.mjs";
|
|
2
2
|
import "./shared/misc-5GYLGQ20.mjs";
|
|
3
|
-
import { y as version } from "./shared/normalize-string-or-regex-
|
|
4
|
-
import "./shared/rolldown-build-
|
|
5
|
-
import "./shared/bindingify-input-options-
|
|
6
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import { y as version } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import "./shared/rolldown-build-BWJGpMD0.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
7
7
|
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
8
|
-
import "./shared/rolldown-
|
|
8
|
+
import "./shared/rolldown-0ID0Q4xL.mjs";
|
|
9
9
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-C9CjEv2m.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/config.ts
|
|
13
13
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BcbPUrYo.js";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -60,6 +60,9 @@ function viteCSSPostPlugin(config) {
|
|
|
60
60
|
function viteHtmlInlineProxyPlugin(config) {
|
|
61
61
|
return new BuiltinPlugin("builtin:vite-html-inline-proxy", config);
|
|
62
62
|
}
|
|
63
|
+
function viteAssetImportMetaUrlPlugin(config) {
|
|
64
|
+
return new BuiltinPlugin("builtin:vite-asset-import-meta-url", config);
|
|
65
|
+
}
|
|
63
66
|
|
|
64
67
|
//#endregion
|
|
65
|
-
export {
|
|
68
|
+
export { viteWasmHelperPlugin as _, viteCSSPostPlugin as a, viteImportGlobPlugin as c, viteManifestPlugin as d, viteModulePreloadPolyfillPlugin as f, viteWasmFallbackPlugin as g, viteResolvePlugin as h, viteBuildImportAnalysisPlugin as i, viteJsonPlugin as l, viteReporterPlugin as m, isolatedDeclarationPlugin as n, viteDynamicImportVarsPlugin as o, viteReactRefreshWrapperPlugin as p, viteAssetImportMetaUrlPlugin as r, viteHtmlInlineProxyPlugin as s, esmExternalRequirePlugin as t, viteLoadFallbackPlugin as u, viteWebWorkerPostPlugin as v };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
2
|
-
import { a as unwrapBindingResult, i as normalizeBindingResult, n as createBundlerOptions, o as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform,
|
|
1
|
+
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BcbPUrYo.js";
|
|
2
|
+
import { a as unwrapBindingResult, c as validateOption, i as normalizeBindingResult, l as PluginDriver, n as createBundlerOptions, o as parse, s as parseSync, t as RolldownBuild } from "./rolldown-build-CUYnBV3u.js";
|
|
3
|
+
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./constructors-DW3R_Jog.js";
|
|
4
|
+
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi-browser.js";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-engine.ts
|
|
7
7
|
var DevEngine = class DevEngine {
|
|
@@ -61,8 +61,8 @@ var DevEngine = class DevEngine {
|
|
|
61
61
|
this.#cachedBuildFinishPromise = promise;
|
|
62
62
|
return promise;
|
|
63
63
|
}
|
|
64
|
-
async
|
|
65
|
-
return this.#inner.
|
|
64
|
+
async getBundleState() {
|
|
65
|
+
return this.#inner.getBundleState();
|
|
66
66
|
}
|
|
67
67
|
async ensureLatestBuildOutput() {
|
|
68
68
|
await this.#inner.ensureLatestBuildOutput();
|
|
@@ -220,4 +220,4 @@ function viteHtmlPlugin(config) {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
//#endregion
|
|
223
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
223
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
2
|
-
import { B as
|
|
3
|
-
import { Ct as RolldownOutput, H as defineParallelPlugin, M as SourceMapInput, P as OutputBundle, Tt as freeExternalMemory, U as MinimalPluginContext, _t as OutputOptions, bt as OutputChunk, o as InputOptions } from "./shared/define-config-
|
|
4
|
-
import { _ as
|
|
1
|
+
import { t as BuiltinPlugin } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { B as ParserOptions, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as minify, K as isolatedDeclaration, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transformSync, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as moduleRunnerTransform, Y as minifySync, Z as transform, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclarationSync, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { Ct as RolldownOutput, H as defineParallelPlugin, M as SourceMapInput, P as OutputBundle, Tt as freeExternalMemory, U as MinimalPluginContext, _t as OutputOptions, bt as OutputChunk, o as InputOptions } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
|
+
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./shared/constructors-BvaMwihu.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -70,7 +70,7 @@ declare class DevEngine {
|
|
|
70
70
|
private constructor();
|
|
71
71
|
run(): Promise<void>;
|
|
72
72
|
ensureCurrentBuildFinish(): Promise<void>;
|
|
73
|
-
|
|
73
|
+
getBundleState(): Promise<BindingBundleState>;
|
|
74
74
|
ensureLatestBuildOutput(): Promise<void>;
|
|
75
75
|
invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
|
|
76
76
|
registerModules(clientId: string, modules: string[]): void;
|
|
@@ -99,6 +99,16 @@ declare const dev: typeof DevEngine.create;
|
|
|
99
99
|
*/
|
|
100
100
|
declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
|
|
101
101
|
//#endregion
|
|
102
|
+
//#region src/utils/parse.d.ts
|
|
103
|
+
/**
|
|
104
|
+
* Parse asynchronously.
|
|
105
|
+
*
|
|
106
|
+
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
107
|
+
*/
|
|
108
|
+
declare function parse(filename: string, sourceText: string, options?: ParserOptions | null): Promise<ParseResult>;
|
|
109
|
+
/** Parse synchronously. */
|
|
110
|
+
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | null): ParseResult;
|
|
111
|
+
//#endregion
|
|
102
112
|
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
103
113
|
type ViteAliasPluginConfig = {
|
|
104
114
|
entries: {
|
|
@@ -170,4 +180,4 @@ interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "trans
|
|
|
170
180
|
}
|
|
171
181
|
declare function viteHtmlPlugin(config?: ViteHtmlPluginOptions): BuiltinPlugin;
|
|
172
182
|
//#endregion
|
|
173
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
183
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./shared/logs-CPsamAuj.mjs";
|
|
2
2
|
import "./shared/misc-5GYLGQ20.mjs";
|
|
3
|
-
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
4
|
-
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-
|
|
5
|
-
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-
|
|
6
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-BWJGpMD0.mjs";
|
|
5
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
6
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
7
7
|
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
8
|
-
import { _ as
|
|
9
|
-
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform,
|
|
8
|
+
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./shared/constructors-XFp0WhK3.mjs";
|
|
9
|
+
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi.cjs";
|
|
10
10
|
import { pathToFileURL } from "node:url";
|
|
11
11
|
|
|
12
12
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -67,8 +67,8 @@ var DevEngine = class DevEngine {
|
|
|
67
67
|
this.#cachedBuildFinishPromise = promise;
|
|
68
68
|
return promise;
|
|
69
69
|
}
|
|
70
|
-
async
|
|
71
|
-
return this.#inner.
|
|
70
|
+
async getBundleState() {
|
|
71
|
+
return this.#inner.getBundleState();
|
|
72
72
|
}
|
|
73
73
|
async ensureLatestBuildOutput() {
|
|
74
74
|
await this.#inner.ensureLatestBuildOutput();
|
|
@@ -231,4 +231,4 @@ function viteHtmlPlugin(config) {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
//#endregion
|
|
234
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
234
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/utils-
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { k as withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { k as withFilter } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
4
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as logMultiplyNotifyOption, S as LOG_LEVEL_WARN, _ as VERSION, w as arraify } from "./normalize-string-or-regex-
|
|
2
|
-
import {
|
|
1
|
+
import { M as logMultiplyNotifyOption, S as LOG_LEVEL_WARN, _ as VERSION, w as arraify } from "./normalize-string-or-regex-BcbPUrYo.js";
|
|
2
|
+
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-CUYnBV3u.js";
|
|
3
3
|
import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
|
|
5
5
|
//#region src/api/rolldown/index.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, i as WarningHandlerWithDefault, l as PartialNull, m as RollupError, n as LoggingFunction, p as LogOrStringHandler } from "./shared/utils-
|
|
2
|
-
import {
|
|
3
|
-
import { $ as NormalizedOutputOptions, A as VERSION, B as PluginContext, C as ResolveIdResult, Ct as RolldownOutput, D as SourceDescription, Dt as SourcemapIgnoreListOption, E as RolldownPluginOption, Et as ModuleInfo, F as TreeshakingOptions, G as GeneralHookFilter, I as TransformPluginContext, J as BufferEncoding, K as HookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, P as OutputBundle, Q as InternalModuleFormat, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedModule, T as RolldownPlugin, U as MinimalPluginContext, V as DefineParallelPluginResult, W as PluginContextMeta, X as RolldownFileStats, Y as RolldownDirectoryEntry, Z as RolldownFsModule, _ as ModuleType, _t as OutputOptions, a as InputOption, at as rolldown, b as PartialResolvedId, bt as OutputChunk, c as OptimizationOptions, ct as build, d as CustomPluginOptions, dt as ChunkingContext, et as NormalizedInputOptions, f as FunctionPluginHooks, ft as GeneratedCodeOptions, g as ModuleOptions, gt as ModuleFormat, h as LoadResult, ht as MinifyOptions, i as ExternalOption, it as WatchOptions, j as ExistingRawSourceMap, l as WatcherOptions, lt as AddonFunction, m as ImportKind, mt as GlobalsFunction, n as ConfigExport, nt as RolldownWatcher, o as InputOptions, ot as RolldownBuild, p as HookFilterExtension, pt as GeneratedCodePreset, q as ModuleTypeFilter, r as RolldownOptions, rt as RolldownWatcherEvent, s as ModuleTypes, st as BuildOptions, t as defineConfig, tt as watch, u as AsyncPluginHooks, ut as ChunkFileNamesFunction, v as ObjectHook, vt as PreRenderedAsset, w as ResolvedId, wt as SourceMap, x as Plugin, xt as RenderedChunk, y as ParallelPluginHooks, yt as OutputAsset, z as GetModuleInfo } from "./shared/define-config-
|
|
1
|
+
import { d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, i as WarningHandlerWithDefault, l as PartialNull, m as RollupError, n as LoggingFunction, p as LogOrStringHandler } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { $ as NormalizedOutputOptions, A as VERSION, B as PluginContext, C as ResolveIdResult, Ct as RolldownOutput, D as SourceDescription, Dt as SourcemapIgnoreListOption, E as RolldownPluginOption, Et as ModuleInfo, F as TreeshakingOptions, G as GeneralHookFilter, I as TransformPluginContext, J as BufferEncoding, K as HookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, P as OutputBundle, Q as InternalModuleFormat, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedModule, T as RolldownPlugin, U as MinimalPluginContext, V as DefineParallelPluginResult, W as PluginContextMeta, X as RolldownFileStats, Y as RolldownDirectoryEntry, Z as RolldownFsModule, _ as ModuleType, _t as OutputOptions, a as InputOption, at as rolldown, b as PartialResolvedId, bt as OutputChunk, c as OptimizationOptions, ct as build, d as CustomPluginOptions, dt as ChunkingContext, et as NormalizedInputOptions, f as FunctionPluginHooks, ft as GeneratedCodeOptions, g as ModuleOptions, gt as ModuleFormat, h as LoadResult, ht as MinifyOptions, i as ExternalOption, it as WatchOptions, j as ExistingRawSourceMap, l as WatcherOptions, lt as AddonFunction, m as ImportKind, mt as GlobalsFunction, n as ConfigExport, nt as RolldownWatcher, o as InputOptions, ot as RolldownBuild, p as HookFilterExtension, pt as GeneratedCodePreset, q as ModuleTypeFilter, r as RolldownOptions, rt as RolldownWatcherEvent, s as ModuleTypes, st as BuildOptions, t as defineConfig, tt as watch, u as AsyncPluginHooks, ut as ChunkFileNamesFunction, v as ObjectHook, vt as PreRenderedAsset, w as ResolvedId, wt as SourceMap, x as Plugin, xt as RenderedChunk, y as ParallelPluginHooks, yt as OutputAsset, z as GetModuleInfo } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, 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, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-CwnSQOS4.mjs";
|
|
2
2
|
import "./shared/logs-CPsamAuj.mjs";
|
|
3
3
|
import "./shared/misc-5GYLGQ20.mjs";
|
|
4
|
-
import { _ as VERSION } from "./shared/normalize-string-or-regex-
|
|
5
|
-
import "./shared/rolldown-build-
|
|
6
|
-
import "./shared/bindingify-input-options-
|
|
7
|
-
import "./shared/parse-ast-index-
|
|
4
|
+
import { _ as VERSION } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
5
|
+
import "./shared/rolldown-build-BWJGpMD0.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
8
8
|
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-0ID0Q4xL.mjs";
|
|
10
10
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
11
11
|
import { isMainThread } from "node:worker_threads";
|
|
12
12
|
import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
package/dist/{normalize-string-or-regex-BXFT9GiS.js → normalize-string-or-regex-BcbPUrYo.js}
RENAMED
|
@@ -234,7 +234,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
234
234
|
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region package.json
|
|
237
|
-
var version = "1.0.0-beta.
|
|
237
|
+
var version = "1.0.0-beta.52";
|
|
238
238
|
|
|
239
239
|
//#endregion
|
|
240
240
|
//#region src/version.ts
|
|
@@ -391,7 +391,7 @@ function bindingAssetSource(source) {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
//#endregion
|
|
394
|
-
//#region \0@oxc-project+runtime@0.
|
|
394
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/decorate.js
|
|
395
395
|
function __decorate(decorators, target, key, desc) {
|
|
396
396
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
397
397
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./shared/logs-CPsamAuj.mjs";
|
|
2
2
|
import "./shared/misc-5GYLGQ20.mjs";
|
|
3
|
-
import "./shared/normalize-string-or-regex-
|
|
4
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
5
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
6
6
|
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
7
7
|
import { parentPort, workerData } from "node:worker_threads";
|
|
8
8
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as MaybePromise } from "./shared/utils-
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { x as Plugin } from "./shared/define-config-
|
|
1
|
+
import { s as MaybePromise } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { x as Plugin } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
6
6
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./constructors-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./normalize-string-or-regex-BcbPUrYo.js";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./constructors-DW3R_Jog.js";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { t as BuiltinPlugin } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BvaMwihu.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./shared/logs-CPsamAuj.mjs";
|
|
2
2
|
import "./shared/misc-5GYLGQ20.mjs";
|
|
3
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
4
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
3
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-XFp0WhK3.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
7
7
|
/**
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as logCycleLoading, C as logLevelPriority, D as unsupported, E as unreachable, F as logPluginError, I as locate, L as getCodeFrame, N as logNoFileSystemInBrowser, O as augmentCodeLocation, P as logParseError, S as LOG_LEVEL_WARN, T as unimplemented, _ as VERSION, b as LOG_LEVEL_ERROR, c as transformToRollupOutput, d as __decorate, f as bindingAssetSource, g as MinimalPluginContextImpl, h as PlainObjectLike, i as bindingifyViteHtmlPlugin, j as logInputHookInOutputPlugin, k as error, l as bindingifySourcemap$1, m as lazyProp, n as BuiltinPlugin, o as collectChangedBundle, p as transformAssetSource, r as bindingifyBuiltInPlugin, s as transformToOutputBundle, t as normalizedStringOrRegex, u as transformRenderedChunk, v as normalizeLog, w as arraify, x as LOG_LEVEL_INFO, y as LOG_LEVEL_DEBUG } from "./normalize-string-or-regex-
|
|
2
|
-
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
1
|
+
import { A as logCycleLoading, C as logLevelPriority, D as unsupported, E as unreachable, F as logPluginError, I as locate, L as getCodeFrame, N as logNoFileSystemInBrowser, O as augmentCodeLocation, P as logParseError, S as LOG_LEVEL_WARN, T as unimplemented, _ as VERSION, b as LOG_LEVEL_ERROR, c as transformToRollupOutput, d as __decorate, f as bindingAssetSource, g as MinimalPluginContextImpl, h as PlainObjectLike, i as bindingifyViteHtmlPlugin, j as logInputHookInOutputPlugin, k as error, l as bindingifySourcemap$1, m as lazyProp, n as BuiltinPlugin, o as collectChangedBundle, p as transformAssetSource, r as bindingifyBuiltInPlugin, s as transformToOutputBundle, t as normalizedStringOrRegex, u as transformRenderedChunk, v as normalizeLog, w as arraify, x as LOG_LEVEL_INFO, y as LOG_LEVEL_DEBUG } from "./normalize-string-or-regex-BcbPUrYo.js";
|
|
2
|
+
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, parse, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
5
5
|
let _lazyMatch = () => {
|
|
@@ -398,7 +398,7 @@ const basename = function(p, extension) {
|
|
|
398
398
|
}
|
|
399
399
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
400
400
|
};
|
|
401
|
-
const parse$
|
|
401
|
+
const parse$2 = function(p) {
|
|
402
402
|
const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
|
|
403
403
|
const base = basename(p);
|
|
404
404
|
const extension = extname(base);
|
|
@@ -424,7 +424,7 @@ const _path = {
|
|
|
424
424
|
matchesGlob,
|
|
425
425
|
normalize,
|
|
426
426
|
normalizeString,
|
|
427
|
-
parse: parse$
|
|
427
|
+
parse: parse$2,
|
|
428
428
|
relative,
|
|
429
429
|
resolve,
|
|
430
430
|
sep,
|
|
@@ -1972,7 +1972,7 @@ const InputOptionsSchema = strictObject({
|
|
|
1972
1972
|
literal("exports-only"),
|
|
1973
1973
|
literal(false)
|
|
1974
1974
|
]))),
|
|
1975
|
-
tsconfig: pipe(optional(string()), description("Path to the tsconfig.json file."))
|
|
1975
|
+
tsconfig: pipe(optional(union([literal(true), string()])), description("Path to the tsconfig.json file."))
|
|
1976
1976
|
});
|
|
1977
1977
|
const InputCliOverrideSchema = strictObject({
|
|
1978
1978
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2201,7 +2201,7 @@ var RolldownOutputImpl = class extends PlainObjectLike {
|
|
|
2201
2201
|
__decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
|
|
2202
2202
|
|
|
2203
2203
|
//#endregion
|
|
2204
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2204
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.99.0/node_modules/oxc-parser/src-js/wrap.js
|
|
2205
2205
|
function wrap$1(result) {
|
|
2206
2206
|
let program, module, comments, errors;
|
|
2207
2207
|
return {
|
|
@@ -2237,10 +2237,24 @@ function applyFix(program, fixPath) {
|
|
|
2237
2237
|
} catch {}
|
|
2238
2238
|
}
|
|
2239
2239
|
|
|
2240
|
+
//#endregion
|
|
2241
|
+
//#region src/utils/parse.ts
|
|
2242
|
+
/**
|
|
2243
|
+
* Parse asynchronously.
|
|
2244
|
+
*
|
|
2245
|
+
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
2246
|
+
*/
|
|
2247
|
+
async function parse$1(filename, sourceText, options) {
|
|
2248
|
+
return wrap$1(await parse(filename, sourceText, options));
|
|
2249
|
+
}
|
|
2250
|
+
/** Parse synchronously. */
|
|
2251
|
+
function parseSync$1(filename, sourceText, options) {
|
|
2252
|
+
return wrap$1(parseSync(filename, sourceText, options));
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2240
2255
|
//#endregion
|
|
2241
2256
|
//#region src/parse-ast-index.ts
|
|
2242
2257
|
function wrap(result, sourceText) {
|
|
2243
|
-
result = wrap$1(result);
|
|
2244
2258
|
if (result.errors.length > 0) return normalizeParseError(sourceText, result.errors);
|
|
2245
2259
|
return result.program;
|
|
2246
2260
|
}
|
|
@@ -2265,7 +2279,7 @@ const defaultParserOptions = {
|
|
|
2265
2279
|
preserveParens: false
|
|
2266
2280
|
};
|
|
2267
2281
|
function parseAst(sourceText, options, filename) {
|
|
2268
|
-
return wrap(parseSync(filename ?? "file.js", sourceText, {
|
|
2282
|
+
return wrap(parseSync$1(filename ?? "file.js", sourceText, {
|
|
2269
2283
|
...defaultParserOptions,
|
|
2270
2284
|
...options
|
|
2271
2285
|
}), sourceText);
|
|
@@ -4107,4 +4121,4 @@ var RolldownBuild = class RolldownBuild {
|
|
|
4107
4121
|
};
|
|
4108
4122
|
|
|
4109
4123
|
//#endregion
|
|
4110
|
-
export { unwrapBindingResult as a, normalizeBindingResult as i, createBundlerOptions as n,
|
|
4124
|
+
export { unwrapBindingResult as a, validateOption as c, normalizeBindingResult as i, PluginDriver as l, createBundlerOptions as n, parse$1 as o, aggregateBindingErrorsIntoJsError as r, parseSync$1 as s, RolldownBuild as t };
|
|
@@ -271,12 +271,6 @@ type ImportNameKind = /** `import { x } from "mod"` */
|
|
|
271
271
|
'Name' | /** `import * as ns from "mod"` */
|
|
272
272
|
'NamespaceObject' | /** `import defaultExport from "mod"` */
|
|
273
273
|
'Default';
|
|
274
|
-
/**
|
|
275
|
-
* Parse asynchronously.
|
|
276
|
-
*
|
|
277
|
-
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
278
|
-
*/
|
|
279
|
-
declare function parse(filename: string, sourceText: string, options?: ParserOptions | undefined | null): Promise<ParseResult>;
|
|
280
274
|
interface ParserOptions {
|
|
281
275
|
/** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
|
|
282
276
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
@@ -317,8 +311,6 @@ interface ParserOptions {
|
|
|
317
311
|
*/
|
|
318
312
|
showSemanticErrors?: boolean;
|
|
319
313
|
}
|
|
320
|
-
/** Parse synchronously. */
|
|
321
|
-
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): ParseResult;
|
|
322
314
|
interface Span {
|
|
323
315
|
start: number;
|
|
324
316
|
end: number;
|
|
@@ -1344,6 +1336,10 @@ interface BindingAssetSource {
|
|
|
1344
1336
|
inner: string | Uint8Array;
|
|
1345
1337
|
}
|
|
1346
1338
|
type BindingBuiltinPluginName = 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-asset' | 'builtin:vite-asset-import-meta-url' | 'builtin:vite-build-import-analysis' | 'builtin:vite-css' | 'builtin:vite-css-post' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-html' | 'builtin:vite-html-inline-proxy' | '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-wasm-helper' | 'builtin:vite-web-worker-post';
|
|
1339
|
+
interface BindingBundleState {
|
|
1340
|
+
lastFullBuildFailed: boolean;
|
|
1341
|
+
hasStaleOutput: boolean;
|
|
1342
|
+
}
|
|
1347
1343
|
interface BindingClientHmrUpdate {
|
|
1348
1344
|
clientId: string;
|
|
1349
1345
|
update: BindingHmrUpdate;
|
|
@@ -1446,6 +1442,15 @@ interface BindingSourcemap {
|
|
|
1446
1442
|
interface BindingTransformHookExtraArgs {
|
|
1447
1443
|
moduleType: string;
|
|
1448
1444
|
}
|
|
1445
|
+
interface BindingViteAssetImportMetaUrlPluginConfig {
|
|
1446
|
+
root: string;
|
|
1447
|
+
isLib: boolean;
|
|
1448
|
+
publicDir: string;
|
|
1449
|
+
clientEntry: string;
|
|
1450
|
+
tryFsResolve: (id: string) => string | undefined;
|
|
1451
|
+
assetResolver: (id: string, importer: string) => Promise<string | undefined>;
|
|
1452
|
+
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1453
|
+
}
|
|
1449
1454
|
interface BindingViteAssetPluginConfig {
|
|
1450
1455
|
root: string;
|
|
1451
1456
|
isLib: boolean;
|
|
@@ -1500,7 +1505,7 @@ interface BindingViteCssPostPluginConfig {
|
|
|
1500
1505
|
decodedBase: string;
|
|
1501
1506
|
libCssFilename?: string;
|
|
1502
1507
|
isLegacy?: () => boolean;
|
|
1503
|
-
cssMinify?: (css: string) => Promise<string>;
|
|
1508
|
+
cssMinify?: (css: string, inline: boolean) => Promise<string>;
|
|
1504
1509
|
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1505
1510
|
}
|
|
1506
1511
|
interface BindingViteDynamicImportVarsPluginConfig {
|
|
@@ -1624,4 +1629,4 @@ interface PreRenderedChunk {
|
|
|
1624
1629
|
exports: Array<string>;
|
|
1625
1630
|
}
|
|
1626
1631
|
//#endregion
|
|
1627
|
-
export {
|
|
1632
|
+
export { BindingWatcherBundler as A, ParserOptions as B, BindingViteManifestPluginConfig as C, BindingViteResolvePluginConfig as D, BindingViteReporterPluginConfig as E, JsxOptions as F, TransformResult as G, ResolveResult as H, MinifyOptions as I, minify as J, isolatedDeclaration as K, MinifyResult as L, ExternalMemoryStatus as M, IsolatedDeclarationsOptions as N, BindingViteTransformPluginConfig as O, IsolatedDeclarationsResult as P, transformSync as Q, NapiResolveOptions as R, BindingViteJsonPluginConfig as S, BindingViteReactRefreshWrapperPluginConfig as T, ResolverFactory as U, PreRenderedChunk as V, TransformOptions as W, moduleRunnerTransform as X, minifySync as Y, transform as Z, BindingViteCssPostPluginConfig as _, BindingHookResolveIdExtraArgs as a, BindingViteHtmlPluginConfig as b, BindingRebuildStrategy as c, BindingTransformHookExtraArgs as d, BindingUrlResolver as f, BindingViteCssPluginConfig as g, BindingViteBuildImportAnalysisPluginConfig as h, BindingEsmExternalRequirePluginConfig as i, BindingWatcherEvent as j, BindingViteWasmHelperPluginConfig as k, BindingRenderedChunk as l, BindingViteAssetPluginConfig as m, BindingBundleState as n, BindingIsolatedDeclarationPluginConfig as o, BindingViteAssetImportMetaUrlPluginConfig as p, isolatedDeclarationSync as q, BindingClientHmrUpdate as r, BindingMagicString as s, BindingBuiltinPluginName as t, BindingReplacePluginConfig as u, BindingViteDynamicImportVarsPluginConfig as v, BindingViteModulePreloadPolyfillPluginConfig as w, BindingViteImportGlobPluginConfig as x, BindingViteHtmlInlineProxyPluginConfig as y, ParseResult as z };
|
package/dist/shared/{bindingify-input-options-CSdAtTcQ.mjs → bindingify-input-options-D4i1DYzt.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-CPsamAuj.mjs";
|
|
2
2
|
import { a as unreachable, i as unimplemented, o as unsupported, t as arraify } from "./misc-5GYLGQ20.mjs";
|
|
3
|
-
import { b as normalizeLog, d as __decorate, f as bindingAssetSource, g as MinimalPluginContextImpl, h as PlainObjectLike, i as bindingifyViteHtmlPlugin, l as bindingifySourcemap, m as lazyProp, n as BuiltinPlugin, o as collectChangedBundle, r as bindingifyBuiltInPlugin, s as transformToOutputBundle, t as normalizedStringOrRegex, u as transformRenderedChunk, w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
4
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
3
|
+
import { b as normalizeLog, d as __decorate, f as bindingAssetSource, g as MinimalPluginContextImpl, h as PlainObjectLike, i as bindingifyViteHtmlPlugin, l as bindingifySourcemap, m as lazyProp, n as BuiltinPlugin, o as collectChangedBundle, r as bindingifyBuiltInPlugin, s as transformToOutputBundle, t as normalizedStringOrRegex, u as transformRenderedChunk, w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import { t as parseAst } from "./parse-ast-index-BSDTTjWT.mjs";
|
|
5
5
|
import { a as include, c as or, i as id, n as code, o as moduleType, r as exclude, t as and } from "./composable-filters-DZ5ToxRJ.mjs";
|
|
6
6
|
import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-
|
|
2
|
-
import { C as
|
|
1
|
+
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-DKydZ4iH.mjs";
|
|
2
|
+
import { C as BindingViteManifestPluginConfig, D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, _ as BindingViteCssPostPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-BKL2JHoJ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -27,5 +27,6 @@ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPl
|
|
|
27
27
|
declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
28
28
|
declare function viteCSSPostPlugin(config?: BindingViteCssPostPluginConfig): BuiltinPlugin;
|
|
29
29
|
declare function viteHtmlInlineProxyPlugin(config: BindingViteHtmlInlineProxyPluginConfig): BuiltinPlugin;
|
|
30
|
+
declare function viteAssetImportMetaUrlPlugin(config: BindingViteAssetImportMetaUrlPluginConfig): BuiltinPlugin;
|
|
30
31
|
//#endregion
|
|
31
|
-
export {
|
|
32
|
+
export { viteWasmHelperPlugin as _, viteCSSPostPlugin as a, viteImportGlobPlugin as c, viteManifestPlugin as d, viteModulePreloadPolyfillPlugin as f, viteWasmFallbackPlugin as g, viteResolvePlugin as h, viteBuildImportAnalysisPlugin as i, viteJsonPlugin as l, viteReporterPlugin as m, isolatedDeclarationPlugin as n, viteDynamicImportVarsPlugin as o, viteReactRefreshWrapperPlugin as p, viteAssetImportMetaUrlPlugin as r, viteHtmlInlineProxyPlugin as s, esmExternalRequirePlugin as t, viteLoadFallbackPlugin as u, viteWebWorkerPostPlugin as v };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-D1mB67Iy.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -60,6 +60,9 @@ function viteCSSPostPlugin(config) {
|
|
|
60
60
|
function viteHtmlInlineProxyPlugin(config) {
|
|
61
61
|
return new BuiltinPlugin("builtin:vite-html-inline-proxy", config);
|
|
62
62
|
}
|
|
63
|
+
function viteAssetImportMetaUrlPlugin(config) {
|
|
64
|
+
return new BuiltinPlugin("builtin:vite-asset-import-meta-url", config);
|
|
65
|
+
}
|
|
63
66
|
|
|
64
67
|
//#endregion
|
|
65
|
-
export {
|
|
68
|
+
export { viteWasmHelperPlugin as _, viteCSSPostPlugin as a, viteImportGlobPlugin as c, viteManifestPlugin as d, viteModulePreloadPolyfillPlugin as f, viteWasmFallbackPlugin as g, viteResolvePlugin as h, viteBuildImportAnalysisPlugin as i, viteJsonPlugin as l, viteReporterPlugin as m, isolatedDeclarationPlugin as n, viteDynamicImportVarsPlugin as o, viteReactRefreshWrapperPlugin as p, viteAssetImportMetaUrlPlugin as r, viteHtmlInlineProxyPlugin as s, esmExternalRequirePlugin as t, viteLoadFallbackPlugin as u, viteWebWorkerPostPlugin as v };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as MakeAsync, c as NullValue, d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, l as PartialNull, m as RollupError, n as LoggingFunction, o as MaybeArray, p as LogOrStringHandler, r as LoggingFunctionWithPosition, s as MaybePromise, t as BuiltinPlugin, u as StringOrRegExp } from "./utils-
|
|
2
|
-
import { A as
|
|
1
|
+
import { a as MakeAsync, c as NullValue, d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, l as PartialNull, m as RollupError, n as LoggingFunction, o as MaybeArray, p as LogOrStringHandler, r as LoggingFunctionWithPosition, s as MaybePromise, t as BuiltinPlugin, u as StringOrRegExp } from "./utils-DKydZ4iH.mjs";
|
|
2
|
+
import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString } from "./binding-BKL2JHoJ.mjs";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
5
5
|
|
|
@@ -173,7 +173,9 @@ interface GeneratedCodeOptions {
|
|
|
173
173
|
* When enabled, generated code will use descriptive variable names that correspond
|
|
174
174
|
* to the original module names, making it easier to profile and debug the bundled code.
|
|
175
175
|
*
|
|
176
|
-
*
|
|
176
|
+
* Note: Enabling this option makes the output more difficult to minify effectively.
|
|
177
|
+
*
|
|
178
|
+
* @default false
|
|
177
179
|
*/
|
|
178
180
|
profilerNames?: boolean;
|
|
179
181
|
}
|
|
@@ -1576,16 +1578,27 @@ interface InputOptions {
|
|
|
1576
1578
|
optimization?: OptimizationOptions;
|
|
1577
1579
|
context?: string;
|
|
1578
1580
|
/**
|
|
1579
|
-
*
|
|
1581
|
+
* Configures TypeScript configuration file resolution and usage.
|
|
1582
|
+
*
|
|
1583
|
+
* ## Options
|
|
1584
|
+
*
|
|
1585
|
+
* - `true`: Auto-discovery mode (similar to Vite). For each module, both resolver and transformer
|
|
1586
|
+
* will find the nearest tsconfig.json. If the tsconfig has `references`, the file extension is
|
|
1587
|
+
* allowed, and the tsconfig's `include`/`exclude` patterns don't match the file, the referenced
|
|
1588
|
+
* tsconfigs will be searched for a match. Falls back to the original tsconfig if no match is found.
|
|
1589
|
+
* - `string`: Path to a specific tsconfig.json file (relative to cwd or absolute path).
|
|
1590
|
+
*
|
|
1591
|
+
* ## What's used from tsconfig
|
|
1592
|
+
*
|
|
1593
|
+
* - **Resolver**: Uses `compilerOptions.paths` and `compilerOptions.baseUrl` for path mapping
|
|
1594
|
+
* - **Transformer**: Uses select compiler options (jsx, decorators, typescript, etc.)
|
|
1580
1595
|
*
|
|
1581
|
-
*
|
|
1582
|
-
*
|
|
1583
|
-
* - an absolute path to the configuration file.
|
|
1596
|
+
* > [!NOTE]
|
|
1597
|
+
* > Priority: Top-level `transform` options always take precedence over tsconfig settings.
|
|
1584
1598
|
*
|
|
1585
|
-
*
|
|
1586
|
-
* and the tsconfig options will be merged with the top-level `transform` options, with the `transform` options taking precedence.
|
|
1599
|
+
* @default undefined (no tsconfig resolution)
|
|
1587
1600
|
*/
|
|
1588
|
-
tsconfig?: string;
|
|
1601
|
+
tsconfig?: true | string;
|
|
1589
1602
|
}
|
|
1590
1603
|
//#endregion
|
|
1591
1604
|
//#region src/types/rolldown-options.d.ts
|
|
@@ -32,7 +32,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "1.0.0-beta.
|
|
35
|
+
var version = "1.0.0-beta.52";
|
|
36
36
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
@@ -190,7 +190,7 @@ function bindingAssetSource(source) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region \0@oxc-project+runtime@0.
|
|
193
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/decorate.js
|
|
194
194
|
function __decorate(decorators, target, key, desc) {
|
|
195
195
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
196
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as locate, n as error, s as logParseError, u as getCodeFrame } from "./logs-CPsamAuj.mjs";
|
|
2
2
|
import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.99.0/node_modules/oxc-parser/src-js/wrap.js
|
|
5
5
|
function wrap$1(result) {
|
|
6
6
|
let program, module, comments, errors;
|
|
7
7
|
return {
|
|
@@ -37,10 +37,24 @@ function applyFix(program, fixPath) {
|
|
|
37
37
|
} catch {}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/utils/parse.ts
|
|
42
|
+
/**
|
|
43
|
+
* Parse asynchronously.
|
|
44
|
+
*
|
|
45
|
+
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
46
|
+
*/
|
|
47
|
+
async function parse$1(filename, sourceText, options) {
|
|
48
|
+
return wrap$1(await parse(filename, sourceText, options));
|
|
49
|
+
}
|
|
50
|
+
/** Parse synchronously. */
|
|
51
|
+
function parseSync$1(filename, sourceText, options) {
|
|
52
|
+
return wrap$1(parseSync(filename, sourceText, options));
|
|
53
|
+
}
|
|
54
|
+
|
|
40
55
|
//#endregion
|
|
41
56
|
//#region src/parse-ast-index.ts
|
|
42
57
|
function wrap(result, sourceText) {
|
|
43
|
-
result = wrap$1(result);
|
|
44
58
|
if (result.errors.length > 0) return normalizeParseError(sourceText, result.errors);
|
|
45
59
|
return result.program;
|
|
46
60
|
}
|
|
@@ -65,17 +79,17 @@ const defaultParserOptions = {
|
|
|
65
79
|
preserveParens: false
|
|
66
80
|
};
|
|
67
81
|
function parseAst(sourceText, options, filename) {
|
|
68
|
-
return wrap(parseSync(filename ?? "file.js", sourceText, {
|
|
82
|
+
return wrap(parseSync$1(filename ?? "file.js", sourceText, {
|
|
69
83
|
...defaultParserOptions,
|
|
70
84
|
...options
|
|
71
85
|
}), sourceText);
|
|
72
86
|
}
|
|
73
87
|
async function parseAstAsync(sourceText, options, filename) {
|
|
74
|
-
return wrap(await parse(filename ?? "file.js", sourceText, {
|
|
88
|
+
return wrap(await parse$1(filename ?? "file.js", sourceText, {
|
|
75
89
|
...defaultParserOptions,
|
|
76
90
|
...options
|
|
77
91
|
}), sourceText);
|
|
78
92
|
}
|
|
79
93
|
|
|
80
94
|
//#endregion
|
|
81
|
-
export { parseAstAsync as n, parseAst as t };
|
|
95
|
+
export { parseSync$1 as i, parseAstAsync as n, parse$1 as r, parseAst as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-
|
|
1
|
+
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-BWJGpMD0.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/rolldown/index.ts
|
|
4
4
|
const rolldown = async (input) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-CPsamAuj.mjs";
|
|
2
2
|
import { i as unimplemented } from "./misc-5GYLGQ20.mjs";
|
|
3
|
-
import { C as LOG_LEVEL_INFO, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as VERSION, b as normalizeLog, c as transformToRollupOutput, d as __decorate, g as MinimalPluginContextImpl, h as PlainObjectLike, m as lazyProp, n as BuiltinPlugin, p as transformAssetSource, u as transformRenderedChunk, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG } from "./normalize-string-or-regex-
|
|
4
|
-
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-
|
|
3
|
+
import { C as LOG_LEVEL_INFO, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as VERSION, b as normalizeLog, c as transformToRollupOutput, d as __decorate, g as MinimalPluginContextImpl, h as PlainObjectLike, m as lazyProp, n as BuiltinPlugin, p as transformAssetSource, u as transformRenderedChunk, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG } from "./normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-D4i1DYzt.mjs";
|
|
5
5
|
import { Worker } from "node:worker_threads";
|
|
6
6
|
import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1605,7 +1605,7 @@ const InputOptionsSchema = strictObject({
|
|
|
1605
1605
|
literal("exports-only"),
|
|
1606
1606
|
literal(false)
|
|
1607
1607
|
]))),
|
|
1608
|
-
tsconfig: pipe(optional(string()), description("Path to the tsconfig.json file."))
|
|
1608
|
+
tsconfig: pipe(optional(union([literal(true), string()])), description("Path to the tsconfig.json file."))
|
|
1609
1609
|
});
|
|
1610
1610
|
const InputCliOverrideSchema = strictObject({
|
|
1611
1611
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as logMultiplyNotifyOption } from "./logs-CPsamAuj.mjs";
|
|
2
2
|
import { t as arraify } from "./misc-5GYLGQ20.mjs";
|
|
3
|
-
import { w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
4
|
-
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-
|
|
5
|
-
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-
|
|
3
|
+
import { w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-BWJGpMD0.mjs";
|
|
5
|
+
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-D4i1DYzt.mjs";
|
|
6
6
|
import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.52",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
"browser": "./dist/experimental-index.browser.mjs",
|
|
40
40
|
"default": "./dist/experimental-index.mjs"
|
|
41
41
|
},
|
|
42
|
+
"./plugins": {
|
|
43
|
+
"browser": "./dist/plugins-index.browser.mjs",
|
|
44
|
+
"default": "./dist/plugins-index.mjs"
|
|
45
|
+
},
|
|
42
46
|
"./filter": "./dist/filter-index.mjs",
|
|
43
47
|
"./parallelPlugin": "./dist/parallel-plugin.mjs",
|
|
44
48
|
"./parseAst": "./dist/parse-ast-index.mjs",
|