@rolldown/browser 1.0.0-beta.57 → 1.0.0-beta.59
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 +6 -6
- package/dist/{constructors-hZ5LHCkF.js → constructors-c0HHH7Qq.js} +1 -1
- package/dist/experimental-index.browser.mjs +17 -3
- package/dist/experimental-index.d.mts +16 -4
- package/dist/experimental-index.mjs +19 -5
- package/dist/experimental-runtime-types.d.ts +6 -2
- package/dist/filter-index.d.mts +1 -1
- package/dist/get-log-filter.d.mts +1 -1
- package/dist/index.browser.mjs +4 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +6 -6
- package/dist/{normalize-string-or-regex-DewaIpuo.js → normalize-string-or-regex-BB1FWNyl.js} +3 -2
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.mts +2 -2
- 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.wasi.cjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-32P3iU2U.js → rolldown-build-Bfw5c2c3.js} +19 -10
- package/dist/shared/{binding-CDyF6W3D.d.mts → binding-MAEzB4KA.d.mts} +10 -0
- package/dist/shared/{bindingify-input-options-CwdDrVAR.mjs → bindingify-input-options-BTd8uAdf.mjs} +12 -7
- package/dist/shared/{constructors-Ch7pGFBC.mjs → constructors-C8tBnLHP.mjs} +1 -1
- package/dist/shared/{constructors-B0L_9ar3.d.mts → constructors-CQP6o3cR.d.mts} +2 -2
- package/dist/shared/{define-config-Bho_aQn8.d.mts → define-config-CpZLzJD0.d.mts} +484 -130
- package/dist/shared/{load-config-DUtgyO78.mjs → load-config-cKGxDu4K.mjs} +1 -1
- package/dist/shared/{logging-BpAvp7KV.d.mts → logging-B4x9qar8.d.mts} +1 -0
- package/dist/shared/{normalize-string-or-regex-Dt2VqAqy.mjs → normalize-string-or-regex-DJ5EwPtg.mjs} +3 -2
- package/dist/shared/{parse-ast-index-DZPue_kI.mjs → parse-ast-index-BLdgtc2B.mjs} +1 -1
- package/dist/shared/{rolldown-D1ymUD73.mjs → rolldown-8m9pjMU2.mjs} +2 -1
- package/dist/shared/{rolldown-build-rs9zb03O.mjs → rolldown-build-DKF_S8hw.mjs} +8 -4
- package/dist/shared/{utils-B3dcnHc8.d.mts → utils-BGxZdOXA.d.mts} +2 -2
- package/dist/shared/{watch-CbHTfwHk.mjs → watch-BEzOq0zm.mjs} +4 -3
- package/package.json +16 -16
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-BEzOq0zm.mjs";
|
|
2
2
|
import { t as arraify } from "./shared/misc-BubmxcE3.mjs";
|
|
3
|
-
import { b as description, x as version } from "./shared/normalize-string-or-regex-
|
|
4
|
-
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-
|
|
5
|
-
import "./shared/bindingify-input-options-
|
|
6
|
-
import "./shared/parse-ast-index-
|
|
7
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
8
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { b as description, x as version } from "./shared/normalize-string-or-regex-DJ5EwPtg.mjs";
|
|
4
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-DKF_S8hw.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-BTd8uAdf.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-BLdgtc2B.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-8m9pjMU2.mjs";
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-cKGxDu4K.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";
|
|
@@ -1237,7 +1237,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
//#endregion
|
|
1240
|
-
//#region \0@oxc-project+runtime@0.
|
|
1240
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/usingCtx.js
|
|
1241
1241
|
function _usingCtx() {
|
|
1242
1242
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1243
1243
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-CpZLzJD0.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
|
-
import { x as version } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import "./shared/rolldown-build-
|
|
3
|
-
import "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
5
|
-
import "./shared/rolldown-
|
|
1
|
+
import { x as version } from "./shared/normalize-string-or-regex-DJ5EwPtg.mjs";
|
|
2
|
+
import "./shared/rolldown-build-DKF_S8hw.mjs";
|
|
3
|
+
import "./shared/bindingify-input-options-BTd8uAdf.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-BLdgtc2B.mjs";
|
|
5
|
+
import "./shared/rolldown-8m9pjMU2.mjs";
|
|
6
6
|
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
7
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
7
|
+
import { t as loadConfig } from "./shared/load-config-cKGxDu4K.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/config.ts
|
|
10
10
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BB1FWNyl.js";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./normalize-string-or-regex-
|
|
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-
|
|
3
|
-
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./constructors-
|
|
1
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./normalize-string-or-regex-BB1FWNyl.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-Bfw5c2c3.js";
|
|
3
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./constructors-c0HHH7Qq.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";
|
|
6
6
|
|
|
@@ -80,6 +80,20 @@ var DevEngine = class DevEngine {
|
|
|
80
80
|
async close() {
|
|
81
81
|
await this.#inner.close();
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Compile a lazy entry module and return HMR-style patch code.
|
|
85
|
+
*
|
|
86
|
+
* This is called when a dynamically imported module is first requested at runtime.
|
|
87
|
+
* The module was previously stubbed with a proxy, and now we need to compile the
|
|
88
|
+
* actual module and its dependencies.
|
|
89
|
+
*
|
|
90
|
+
* @param moduleId - The absolute file path of the module to compile
|
|
91
|
+
* @param clientId - The client ID requesting this compilation
|
|
92
|
+
* @returns The compiled JavaScript code as a string (HMR patch format)
|
|
93
|
+
*/
|
|
94
|
+
async compileEntry(moduleId, clientId) {
|
|
95
|
+
return this.#inner.compileEntry(moduleId, clientId);
|
|
96
|
+
}
|
|
83
97
|
};
|
|
84
98
|
|
|
85
99
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as transformSync, B as ParserOptions, C as BindingViteManifestPluginConfig, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as isolatedDeclarationSync, K as createTokioRuntime, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transform, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as minifySync, Y as minify, Z as moduleRunnerTransform, _ as BindingViteCssPostPluginConfig, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclaration, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-
|
|
2
|
-
import {
|
|
3
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-
|
|
1
|
+
import { $ as transformSync, B as ParserOptions, C as BindingViteManifestPluginConfig, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as isolatedDeclarationSync, K as createTokioRuntime, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transform, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as minifySync, Y as minify, Z as moduleRunnerTransform, _ as BindingViteCssPostPluginConfig, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclaration, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-MAEzB4KA.mjs";
|
|
2
|
+
import { Dt as freeExternalMemory, M as SourceMapInput, P as OutputBundle, St as OutputChunk, Tt as RolldownOutput, U as defineParallelPlugin, W as MinimalPluginContext, et as NormalizedOutputOptions, o as InputOptions, yt as OutputOptions } from "./shared/define-config-CpZLzJD0.mjs";
|
|
3
|
+
import { t as BuiltinPlugin } from "./shared/utils-BGxZdOXA.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-CQP6o3cR.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -76,6 +76,18 @@ declare class DevEngine {
|
|
|
76
76
|
registerModules(clientId: string, modules: string[]): Promise<void>;
|
|
77
77
|
removeClient(clientId: string): Promise<void>;
|
|
78
78
|
close(): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Compile a lazy entry module and return HMR-style patch code.
|
|
81
|
+
*
|
|
82
|
+
* This is called when a dynamically imported module is first requested at runtime.
|
|
83
|
+
* The module was previously stubbed with a proxy, and now we need to compile the
|
|
84
|
+
* actual module and its dependencies.
|
|
85
|
+
*
|
|
86
|
+
* @param moduleId - The absolute file path of the module to compile
|
|
87
|
+
* @param clientId - The client ID requesting this compilation
|
|
88
|
+
* @returns The compiled JavaScript code as a string (HMR patch format)
|
|
89
|
+
*/
|
|
90
|
+
compileEntry(moduleId: string, clientId: string): Promise<string>;
|
|
79
91
|
}
|
|
80
92
|
//#endregion
|
|
81
93
|
//#region src/api/dev/index.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-
|
|
3
|
-
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-
|
|
4
|
-
import { i as parseSync, r as parse } from "./shared/parse-ast-index-
|
|
5
|
-
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-
|
|
1
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-DJ5EwPtg.mjs";
|
|
2
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-DKF_S8hw.mjs";
|
|
3
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-BTd8uAdf.mjs";
|
|
4
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-BLdgtc2B.mjs";
|
|
5
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-C8tBnLHP.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";
|
|
8
8
|
|
|
@@ -82,6 +82,20 @@ var DevEngine = class DevEngine {
|
|
|
82
82
|
async close() {
|
|
83
83
|
await this.#inner.close();
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Compile a lazy entry module and return HMR-style patch code.
|
|
87
|
+
*
|
|
88
|
+
* This is called when a dynamically imported module is first requested at runtime.
|
|
89
|
+
* The module was previously stubbed with a proxy, and now we need to compile the
|
|
90
|
+
* actual module and its dependencies.
|
|
91
|
+
*
|
|
92
|
+
* @param moduleId - The absolute file path of the module to compile
|
|
93
|
+
* @param clientId - The client ID requesting this compilation
|
|
94
|
+
* @returns The compiled JavaScript code as a string (HMR patch format)
|
|
95
|
+
*/
|
|
96
|
+
async compileEntry(moduleId, clientId) {
|
|
97
|
+
return this.#inner.compileEntry(moduleId, clientId);
|
|
98
|
+
}
|
|
85
99
|
};
|
|
86
100
|
|
|
87
101
|
//#endregion
|
|
@@ -55,8 +55,12 @@ export class DevRuntime {
|
|
|
55
55
|
__toCommonJS: any;
|
|
56
56
|
/** @internal */
|
|
57
57
|
__exportAll: any;
|
|
58
|
-
/**
|
|
59
|
-
|
|
58
|
+
/**
|
|
59
|
+
* @param {boolean} [isNodeMode]
|
|
60
|
+
* @returns {(mod: any) => any}
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
__toDynamicImportESM: (isNodeMode?: boolean) => (mod: any) => any;
|
|
60
64
|
/** @internal */
|
|
61
65
|
__reExport: any;
|
|
62
66
|
sendModuleRegisteredMessage: (module: string) => void;
|
package/dist/filter-index.d.mts
CHANGED
package/dist/index.browser.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { E as arraify, P as logMultiplyNotifyOption, w as LOG_LEVEL_WARN, y as VERSION } from "./normalize-string-or-regex-
|
|
2
|
-
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-
|
|
1
|
+
import { E as arraify, P as logMultiplyNotifyOption, w as LOG_LEVEL_WARN, y as VERSION } from "./normalize-string-or-regex-BB1FWNyl.js";
|
|
2
|
+
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-Bfw5c2c3.js";
|
|
3
3
|
import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
|
|
5
5
|
//#region src/api/rolldown/index.ts
|
|
6
|
+
/** @category Programmatic APIs */
|
|
6
7
|
const rolldown = async (input) => {
|
|
7
8
|
validateOption("input", input);
|
|
8
9
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
@@ -147,6 +148,7 @@ function getValidNotifyOption(bundlerOptions) {
|
|
|
147
148
|
|
|
148
149
|
//#endregion
|
|
149
150
|
//#region src/api/watch/index.ts
|
|
151
|
+
/** @category Programmatic APIs */
|
|
150
152
|
const watch = (input) => {
|
|
151
153
|
const emitter = new WatcherEmitter();
|
|
152
154
|
createWatcher(emitter, input);
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as RollupLog, i as RollupError, n as LogLevelOption, o as RollupLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-
|
|
2
|
-
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-
|
|
3
|
-
import { $ as InternalModuleFormat, A as VERSION, B as GetModuleInfo, C as ResolveIdResult, Ct as
|
|
4
|
-
import { i as WarningHandlerWithDefault, l as PartialNull, n as LoggingFunction } from "./shared/utils-
|
|
5
|
-
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, EmittedPrebuiltChunk, 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 };
|
|
1
|
+
import { a as RollupLog, i as RollupError, n as LogLevelOption, o as RollupLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-B4x9qar8.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-MAEzB4KA.mjs";
|
|
3
|
+
import { $ as InternalModuleFormat, A as VERSION, B as GetModuleInfo, C as ResolveIdResult, Ct as RenderedChunk, D as SourceDescription, E as RolldownPluginOption, Et as SourceMap, F as TreeshakingOptions, G as PluginContextMeta, H as DefineParallelPluginResult, I as TransformPluginContext, J as ModuleTypeFilter, K as GeneralHookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, Ot as ModuleInfo, P as OutputBundle, Q as RolldownFsModule, R as EmittedFile, S as ResolveIdExtraOptions, St as OutputChunk, T as RolldownPlugin, Tt as RolldownOutput, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as MinifyOptions, a as InputOption, at as RolldownWatcherEvent, b as PartialResolvedId, bt as PreRenderedAsset, c as OptimizationOptions, ct as RolldownBuild, d as CustomPluginOptions, dt as AddonFunction, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as ChunkFileNamesFunction, g as ModuleOptions, gt as GlobalsFunction, h as LoadResult, ht as GeneratedCodePreset, i as ExternalOption, it as RolldownWatcher, j as ExistingRawSourceMap, kt as SourcemapIgnoreListOption, l as WatcherOptions, lt as BuildOptions, m as ImportKind, mt as GeneratedCodeOptions, n as ConfigExport, nt as ChecksOptions, o as InputOptions, ot as WatchOptions, p as HookFilterExtension, pt as ChunkingContext, q as HookFilter, r as RolldownOptions, rt as watch, s as ModuleTypes, st as rolldown, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as build, v as ObjectHook, vt as ModuleFormat, w as ResolvedId, wt as RenderedModule, x as Plugin, xt as OutputAsset, y as ParallelPluginHooks, yt as OutputOptions, z as EmittedPrebuiltChunk } from "./shared/define-config-CpZLzJD0.mjs";
|
|
4
|
+
import { i as WarningHandlerWithDefault, l as PartialNull, n as LoggingFunction } from "./shared/utils-BGxZdOXA.mjs";
|
|
5
|
+
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, EmittedPrebuiltChunk, 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,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { y as VERSION } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import "./shared/rolldown-build-
|
|
4
|
-
import "./shared/bindingify-input-options-
|
|
5
|
-
import "./shared/parse-ast-index-
|
|
6
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BEzOq0zm.mjs";
|
|
2
|
+
import { y as VERSION } from "./shared/normalize-string-or-regex-DJ5EwPtg.mjs";
|
|
3
|
+
import "./shared/rolldown-build-DKF_S8hw.mjs";
|
|
4
|
+
import "./shared/bindingify-input-options-BTd8uAdf.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-BLdgtc2B.mjs";
|
|
6
|
+
import { t as rolldown } from "./shared/rolldown-8m9pjMU2.mjs";
|
|
7
7
|
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
8
8
|
import { isMainThread } from "node:worker_threads";
|
|
9
9
|
import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
package/dist/{normalize-string-or-regex-DewaIpuo.js → normalize-string-or-regex-BB1FWNyl.js}
RENAMED
|
@@ -236,10 +236,11 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
236
236
|
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region package.json
|
|
239
|
-
var version = "1.0.0-beta.
|
|
239
|
+
var version = "1.0.0-beta.59";
|
|
240
240
|
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region src/version.ts
|
|
243
|
+
/** @category Plugin APIs */
|
|
243
244
|
const VERSION = version;
|
|
244
245
|
|
|
245
246
|
//#endregion
|
|
@@ -393,7 +394,7 @@ function bindingAssetSource(source) {
|
|
|
393
394
|
}
|
|
394
395
|
|
|
395
396
|
//#endregion
|
|
396
|
-
//#region \0@oxc-project+runtime@0.
|
|
397
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/decorate.js
|
|
397
398
|
function __decorate(decorators, target, key, desc) {
|
|
398
399
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
399
400
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/normalize-string-or-regex-
|
|
2
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import "./shared/normalize-string-or-regex-DJ5EwPtg.mjs";
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-BTd8uAdf.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-BLdgtc2B.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as Plugin } from "./shared/define-config-
|
|
2
|
-
import { s as MaybePromise } from "./shared/utils-
|
|
1
|
+
import { x as Plugin } from "./shared/define-config-CpZLzJD0.mjs";
|
|
2
|
+
import { s as MaybePromise } from "./shared/utils-BGxZdOXA.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./constructors-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./normalize-string-or-regex-BB1FWNyl.js";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./constructors-c0HHH7Qq.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 { u as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-MAEzB4KA.mjs";
|
|
2
|
+
import { t as BuiltinPlugin } from "./shared/utils-BGxZdOXA.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CQP6o3cR.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-DJ5EwPtg.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-C8tBnLHP.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
|
@@ -39,7 +39,7 @@ if (__nodeFs.existsSync(__wasmDebugFilePath)) {
|
|
|
39
39
|
__wasmFilePath = __wasmDebugFilePath
|
|
40
40
|
} else if (!__nodeFs.existsSync(__wasmFilePath)) {
|
|
41
41
|
try {
|
|
42
|
-
__wasmFilePath =
|
|
42
|
+
__wasmFilePath = require.resolve('@rolldown/binding-wasm32-wasi/rolldown-binding.wasm32-wasi.wasm')
|
|
43
43
|
} catch {
|
|
44
44
|
throw new Error('Cannot find rolldown-binding.wasm32-wasi.wasm file, and @rolldown/binding-wasm32-wasi package is not installed.')
|
|
45
45
|
}
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as augmentCodeLocation, C as LOG_LEVEL_INFO, D as unimplemented, E as arraify, F as logNoFileSystemInBrowser, I as logParseError, L as logPluginError, M as logCycleLoading, N as logInputHookInOutputPlugin, O as unreachable, R as locate, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as PlainObjectLike, a as bindingifyManifestPlugin, b as normalizeLog, c as collectChangedBundle, d as bindingifySourcemap$1, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, i as bindingifyCSSPostPlugin, j as error, k as unsupported, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG, y as VERSION, z as getCodeFrame } from "./normalize-string-or-regex-
|
|
1
|
+
import { A as augmentCodeLocation, C as LOG_LEVEL_INFO, D as unimplemented, E as arraify, F as logNoFileSystemInBrowser, I as logParseError, L as logPluginError, M as logCycleLoading, N as logInputHookInOutputPlugin, O as unreachable, R as locate, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as PlainObjectLike, a as bindingifyManifestPlugin, b as normalizeLog, c as collectChangedBundle, d as bindingifySourcemap$1, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, i as bindingifyCSSPostPlugin, j as error, k as unsupported, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG, y as VERSION, z as getCodeFrame } from "./normalize-string-or-regex-BB1FWNyl.js";
|
|
2
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
|
|
@@ -433,7 +433,7 @@ const _path = {
|
|
|
433
433
|
|
|
434
434
|
//#endregion
|
|
435
435
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
436
|
-
const delimiter =
|
|
436
|
+
const delimiter = globalThis.process?.platform === "win32" ? ";" : ":";
|
|
437
437
|
const _platforms = {
|
|
438
438
|
posix: void 0,
|
|
439
439
|
win32: void 0
|
|
@@ -2108,12 +2108,13 @@ const InputOptionsSchema = strictObject({
|
|
|
2108
2108
|
baseUrl: optional(string()),
|
|
2109
2109
|
fileName: optional(string())
|
|
2110
2110
|
})])),
|
|
2111
|
-
nativeMagicString: optional(boolean())
|
|
2111
|
+
nativeMagicString: optional(boolean()),
|
|
2112
|
+
chunkOptimization: optional(boolean())
|
|
2112
2113
|
})),
|
|
2113
2114
|
transform: optional(TransformOptionsSchema),
|
|
2114
2115
|
watch: optional(union([WatchOptionsSchema, literal(false)])),
|
|
2115
2116
|
checks: optional(ChecksOptionsSchema),
|
|
2116
|
-
|
|
2117
|
+
devtools: pipe(optional(object({ sessionId: pipe(optional(string()), description("Used to name the build.")) })), description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),
|
|
2117
2118
|
preserveEntrySignatures: pipe(optional(union([
|
|
2118
2119
|
literal("strict"),
|
|
2119
2120
|
literal("allow-extension"),
|
|
@@ -2243,6 +2244,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
2243
2244
|
generatedCode: pipe(optional(partial(GeneratedCodeOptionsSchema)), description("Generated code options")),
|
|
2244
2245
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2245
2246
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2247
|
+
dynamicImportInCjs: pipe(optional(boolean()), description("Dynamic import in CJS output")),
|
|
2246
2248
|
manualChunks: optional(ManualChunksFunctionSchema),
|
|
2247
2249
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
2248
2250
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
@@ -2353,7 +2355,7 @@ var RolldownOutputImpl = class extends PlainObjectLike {
|
|
|
2353
2355
|
__decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
|
|
2354
2356
|
|
|
2355
2357
|
//#endregion
|
|
2356
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2358
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.107.0/node_modules/oxc-parser/src-js/wrap.js
|
|
2357
2359
|
function wrap$1(result) {
|
|
2358
2360
|
let program, module, comments, errors;
|
|
2359
2361
|
return {
|
|
@@ -2631,7 +2633,7 @@ function exclude(expr) {
|
|
|
2631
2633
|
}
|
|
2632
2634
|
|
|
2633
2635
|
//#endregion
|
|
2634
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2636
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.0/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
2635
2637
|
function e(e$1, t$2, n$1) {
|
|
2636
2638
|
let r = (n$2) => e$1(n$2, ...t$2);
|
|
2637
2639
|
return n$1 === void 0 ? r : Object.assign(r, {
|
|
@@ -2641,7 +2643,7 @@ function e(e$1, t$2, n$1) {
|
|
|
2641
2643
|
}
|
|
2642
2644
|
|
|
2643
2645
|
//#endregion
|
|
2644
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2646
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.0/node_modules/remeda/dist/purry-GjwKKIlp.js
|
|
2645
2647
|
function t$1(t$2, n$1, r) {
|
|
2646
2648
|
let i = t$2.length - n$1.length;
|
|
2647
2649
|
if (i === 0) return t$2(...n$1);
|
|
@@ -2650,7 +2652,7 @@ function t$1(t$2, n$1, r) {
|
|
|
2650
2652
|
}
|
|
2651
2653
|
|
|
2652
2654
|
//#endregion
|
|
2653
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2655
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.0/node_modules/remeda/dist/partition.js
|
|
2654
2656
|
function t(...t$2) {
|
|
2655
2657
|
return t$1(n, t$2);
|
|
2656
2658
|
}
|
|
@@ -3640,6 +3642,9 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
3640
3642
|
get inlineDynamicImports() {
|
|
3641
3643
|
return this.inner.inlineDynamicImports;
|
|
3642
3644
|
}
|
|
3645
|
+
get dynamicImportInCjs() {
|
|
3646
|
+
return this.inner.dynamicImportInCjs;
|
|
3647
|
+
}
|
|
3643
3648
|
get externalLiveBindings() {
|
|
3644
3649
|
return this.inner.externalLiveBindings;
|
|
3645
3650
|
}
|
|
@@ -3733,6 +3738,7 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "shimMissingExport
|
|
|
3733
3738
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "name", null);
|
|
3734
3739
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "file", null);
|
|
3735
3740
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImports", null);
|
|
3741
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "dynamicImportInCjs", null);
|
|
3736
3742
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
3737
3743
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "banner", null);
|
|
3738
3744
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "footer", null);
|
|
@@ -3934,7 +3940,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3934
3940
|
return ret;
|
|
3935
3941
|
},
|
|
3936
3942
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
3937
|
-
|
|
3943
|
+
devtools: inputOptions.devtools,
|
|
3938
3944
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3939
3945
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures),
|
|
3940
3946
|
optimization: inputOptions.optimization,
|
|
@@ -3987,7 +3993,8 @@ function bindingifyExperimental(experimental) {
|
|
|
3987
3993
|
chunkImportMap: experimental?.chunkImportMap,
|
|
3988
3994
|
onDemandWrapping: experimental?.onDemandWrapping,
|
|
3989
3995
|
incrementalBuild: experimental?.incrementalBuild,
|
|
3990
|
-
nativeMagicString: experimental?.nativeMagicString
|
|
3996
|
+
nativeMagicString: experimental?.nativeMagicString,
|
|
3997
|
+
chunkOptimization: experimental?.chunkOptimization
|
|
3991
3998
|
};
|
|
3992
3999
|
}
|
|
3993
4000
|
function bindingifyResolve(resolve$1) {
|
|
@@ -4173,6 +4180,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4173
4180
|
minify: outputOptions.minify,
|
|
4174
4181
|
externalLiveBindings: outputOptions.externalLiveBindings,
|
|
4175
4182
|
inlineDynamicImports: outputOptions.inlineDynamicImports,
|
|
4183
|
+
dynamicImportInCjs: outputOptions.dynamicImportInCjs,
|
|
4176
4184
|
advancedChunks,
|
|
4177
4185
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
4178
4186
|
sanitizeFileName,
|
|
@@ -4276,6 +4284,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
|
4276
4284
|
//#endregion
|
|
4277
4285
|
//#region src/api/rolldown/rolldown-build.ts
|
|
4278
4286
|
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
4287
|
+
/** @category Programmatic APIs */
|
|
4279
4288
|
var RolldownBuild = class RolldownBuild {
|
|
4280
4289
|
#inputOptions;
|
|
4281
4290
|
#bundler;
|
|
@@ -177,6 +177,15 @@ interface TreeShakeOptions {
|
|
|
177
177
|
* @default true
|
|
178
178
|
*/
|
|
179
179
|
unknownGlobalSideEffects?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Whether invalid import statements have side effects.
|
|
182
|
+
*
|
|
183
|
+
* Accessing a non-existing import name will throw an error.
|
|
184
|
+
* Also import statements that cannot be resolved will throw an error.
|
|
185
|
+
*
|
|
186
|
+
* @default true
|
|
187
|
+
*/
|
|
188
|
+
invalidImportSideEffects?: boolean;
|
|
180
189
|
}
|
|
181
190
|
interface Comment {
|
|
182
191
|
type: 'Line' | 'Block';
|
|
@@ -1301,6 +1310,7 @@ declare class BindingNormalizedOptions {
|
|
|
1301
1310
|
get exports(): 'default' | 'named' | 'none' | 'auto';
|
|
1302
1311
|
get esModule(): boolean | 'if-default-prop';
|
|
1303
1312
|
get inlineDynamicImports(): boolean;
|
|
1313
|
+
get dynamicImportInCjs(): boolean;
|
|
1304
1314
|
get sourcemap(): boolean | 'inline' | 'hidden';
|
|
1305
1315
|
get sourcemapBaseUrl(): string | null;
|
|
1306
1316
|
get banner(): string | undefined | null | undefined;
|
package/dist/shared/{bindingify-input-options-CwdDrVAR.mjs → bindingify-input-options-BTd8uAdf.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-DEfpOy5A.mjs";
|
|
2
2
|
import { a as unreachable, o as unsupported, t as arraify } from "./misc-BubmxcE3.mjs";
|
|
3
|
-
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-
|
|
4
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
3
|
+
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-DJ5EwPtg.mjs";
|
|
4
|
+
import { t as parseAst } from "./parse-ast-index-BLdgtc2B.mjs";
|
|
5
5
|
import { a as id, f as or, n as code, r as exclude, s as include, t as and, u as moduleType } from "./composable-filters-C5qA4jo-.mjs";
|
|
6
6
|
import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -132,7 +132,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
//#endregion
|
|
135
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
135
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.0/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
136
136
|
function e(e$1, t$2, n$1) {
|
|
137
137
|
let r = (n$2) => e$1(n$2, ...t$2);
|
|
138
138
|
return n$1 === void 0 ? r : Object.assign(r, {
|
|
@@ -142,7 +142,7 @@ function e(e$1, t$2, n$1) {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
//#endregion
|
|
145
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
145
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.0/node_modules/remeda/dist/purry-GjwKKIlp.js
|
|
146
146
|
function t$1(t$2, n$1, r) {
|
|
147
147
|
let i = t$2.length - n$1.length;
|
|
148
148
|
if (i === 0) return t$2(...n$1);
|
|
@@ -151,7 +151,7 @@ function t$1(t$2, n$1, r) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
//#endregion
|
|
154
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
154
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.0/node_modules/remeda/dist/partition.js
|
|
155
155
|
function t(...t$2) {
|
|
156
156
|
return t$1(n, t$2);
|
|
157
157
|
}
|
|
@@ -1136,6 +1136,9 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1136
1136
|
get inlineDynamicImports() {
|
|
1137
1137
|
return this.inner.inlineDynamicImports;
|
|
1138
1138
|
}
|
|
1139
|
+
get dynamicImportInCjs() {
|
|
1140
|
+
return this.inner.dynamicImportInCjs;
|
|
1141
|
+
}
|
|
1139
1142
|
get externalLiveBindings() {
|
|
1140
1143
|
return this.inner.externalLiveBindings;
|
|
1141
1144
|
}
|
|
@@ -1229,6 +1232,7 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "shimMissingExport
|
|
|
1229
1232
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "name", null);
|
|
1230
1233
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "file", null);
|
|
1231
1234
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImports", null);
|
|
1235
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "dynamicImportInCjs", null);
|
|
1232
1236
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
1233
1237
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "banner", null);
|
|
1234
1238
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "footer", null);
|
|
@@ -1430,7 +1434,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
1430
1434
|
return ret;
|
|
1431
1435
|
},
|
|
1432
1436
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
1433
|
-
|
|
1437
|
+
devtools: inputOptions.devtools,
|
|
1434
1438
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
1435
1439
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures),
|
|
1436
1440
|
optimization: inputOptions.optimization,
|
|
@@ -1483,7 +1487,8 @@ function bindingifyExperimental(experimental) {
|
|
|
1483
1487
|
chunkImportMap: experimental?.chunkImportMap,
|
|
1484
1488
|
onDemandWrapping: experimental?.onDemandWrapping,
|
|
1485
1489
|
incrementalBuild: experimental?.incrementalBuild,
|
|
1486
|
-
nativeMagicString: experimental?.nativeMagicString
|
|
1490
|
+
nativeMagicString: experimental?.nativeMagicString,
|
|
1491
|
+
chunkOptimization: experimental?.chunkOptimization
|
|
1487
1492
|
};
|
|
1488
1493
|
}
|
|
1489
1494
|
function bindingifyResolve(resolve) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DJ5EwPtg.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, 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-
|
|
2
|
-
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-
|
|
1
|
+
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, 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-MAEzB4KA.mjs";
|
|
2
|
+
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-BGxZdOXA.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|