rolldown 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-setup.mjs +1 -1
- package/dist/cli.mjs +9 -9
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +7 -7
- package/dist/experimental-index.d.mts +15 -3
- package/dist/experimental-index.mjs +36 -23
- package/dist/experimental-runtime-types.d.ts +6 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/get-log-filter.d.mts +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +7 -7
- package/dist/parallel-plugin-worker.mjs +4 -4
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -3
- package/dist/shared/{binding-CDyF6W3D.d.mts → binding-MAEzB4KA.d.mts} +10 -0
- package/dist/shared/{binding-Cuiiq-jL.mjs → binding-QUhP-0wQ.mjs} +29 -28
- package/dist/shared/{bindingify-input-options-B8B4dvr-.mjs → bindingify-input-options-CJ8NjPpl.mjs} +13 -8
- package/dist/shared/{constructors-CxTKGwaB.mjs → constructors-Ckn63GYh.mjs} +1 -1
- package/dist/shared/{constructors-BnPlw43Q.d.mts → constructors-DcGyaGNV.d.mts} +2 -2
- package/dist/shared/{define-config-kYHtCO-M.d.mts → define-config-Cg9apQLa.d.mts} +483 -129
- package/dist/shared/{load-config-BvbZUaFt.mjs → load-config-BY_fkh6T.mjs} +1 -1
- package/dist/shared/{logging-BpAvp7KV.d.mts → logging-B4x9qar8.d.mts} +1 -0
- package/dist/shared/{normalize-string-or-regex-0t36Z7KW.mjs → normalize-string-or-regex-DbyImenn.mjs} +4 -3
- package/dist/shared/{parse-ast-index-Bcjhsr8U.mjs → parse-ast-index-Dxd6PXtU.mjs} +2 -2
- package/dist/shared/{rolldown-CF29fS6Z.mjs → rolldown-BR9L9ovo.mjs} +2 -1
- package/dist/shared/{rolldown-build--qygLwCL.mjs → rolldown-build-ciWo5RN-.mjs} +9 -5
- package/dist/shared/{watch-CyvuFK7g.mjs → watch-CN4zUkzW.mjs} +5 -4
- package/package.json +58 -58
package/dist/cli-setup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-QUhP-0wQ.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/setup-index.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import "./shared/binding-QUhP-0wQ.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CN4zUkzW.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-DpjTMcQQ.mjs";
|
|
4
|
-
import { b as description, x 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-
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { b as description, x as version } from "./shared/normalize-string-or-regex-DbyImenn.mjs";
|
|
5
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-ciWo5RN-.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-CJ8NjPpl.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-Dxd6PXtU.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-BR9L9ovo.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-BY_fkh6T.mjs";
|
|
10
10
|
import path, { sep } from "node:path";
|
|
11
11
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
12
12
|
import process$1 from "node:process";
|
|
@@ -1238,7 +1238,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
1240
1240
|
//#endregion
|
|
1241
|
-
//#region \0@oxc-project+runtime@0.
|
|
1241
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/usingCtx.js
|
|
1242
1242
|
function _usingCtx() {
|
|
1243
1243
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1244
1244
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-MAEzB4KA.mjs";
|
|
2
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-Cg9apQLa.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { x 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 "./shared/rolldown-
|
|
1
|
+
import "./shared/binding-QUhP-0wQ.mjs";
|
|
2
|
+
import { x as version } from "./shared/normalize-string-or-regex-DbyImenn.mjs";
|
|
3
|
+
import "./shared/rolldown-build-ciWo5RN-.mjs";
|
|
4
|
+
import "./shared/bindingify-input-options-CJ8NjPpl.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-Dxd6PXtU.mjs";
|
|
6
|
+
import "./shared/rolldown-BR9L9ovo.mjs";
|
|
7
7
|
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
8
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-BY_fkh6T.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/config.ts
|
|
11
11
|
const VERSION = version;
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { A as BuiltinPlugin,
|
|
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 "./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 { A as BuiltinPlugin, F as OutputBundle, G as MinimalPluginContext, N as SourceMapInput, Nt as freeExternalMemory, Ot as OutputChunk, St as OutputOptions, W as defineParallelPlugin, jt as RolldownOutput, o as InputOptions, tt as NormalizedOutputOptions } from "./shared/define-config-Cg9apQLa.mjs";
|
|
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 "./shared/constructors-DcGyaGNV.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/api/dev/dev-options.d.ts
|
|
6
6
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -75,6 +75,18 @@ declare class DevEngine {
|
|
|
75
75
|
registerModules(clientId: string, modules: string[]): Promise<void>;
|
|
76
76
|
removeClient(clientId: string): Promise<void>;
|
|
77
77
|
close(): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Compile a lazy entry module and return HMR-style patch code.
|
|
80
|
+
*
|
|
81
|
+
* This is called when a dynamically imported module is first requested at runtime.
|
|
82
|
+
* The module was previously stubbed with a proxy, and now we need to compile the
|
|
83
|
+
* actual module and its dependencies.
|
|
84
|
+
*
|
|
85
|
+
* @param moduleId - The absolute file path of the module to compile
|
|
86
|
+
* @param clientId - The client ID requesting this compilation
|
|
87
|
+
* @returns The compiled JavaScript code as a string (HMR patch format)
|
|
88
|
+
*/
|
|
89
|
+
compileEntry(moduleId: string, clientId: string): Promise<string>;
|
|
78
90
|
}
|
|
79
91
|
//#endregion
|
|
80
92
|
//#region src/api/dev/index.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build
|
|
4
|
-
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-
|
|
5
|
-
import { i as parseSync, r as parse } from "./shared/parse-ast-index-
|
|
6
|
-
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 { n as __toESM, t as require_binding } from "./shared/binding-QUhP-0wQ.mjs";
|
|
2
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-DbyImenn.mjs";
|
|
3
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-ciWo5RN-.mjs";
|
|
4
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-CJ8NjPpl.mjs";
|
|
5
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-Dxd6PXtU.mjs";
|
|
6
|
+
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-Ckn63GYh.mjs";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
8
|
|
|
9
9
|
//#region src/api/dev/dev-engine.ts
|
|
10
|
-
var import_binding
|
|
10
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
11
11
|
var DevEngine = class DevEngine {
|
|
12
12
|
#inner;
|
|
13
13
|
#cachedBuildFinishPromise = null;
|
|
@@ -38,7 +38,7 @@ var DevEngine = class DevEngine {
|
|
|
38
38
|
}
|
|
39
39
|
userOnOutput(transformToRollupOutput(result));
|
|
40
40
|
} : void 0,
|
|
41
|
-
rebuildStrategy: devOptions.rebuildStrategy ? devOptions.rebuildStrategy === "always" ? import_binding
|
|
41
|
+
rebuildStrategy: devOptions.rebuildStrategy ? devOptions.rebuildStrategy === "always" ? import_binding.BindingRebuildStrategy.Always : devOptions.rebuildStrategy === "auto" ? import_binding.BindingRebuildStrategy.Auto : import_binding.BindingRebuildStrategy.Never : void 0,
|
|
42
42
|
watch: devOptions.watch && {
|
|
43
43
|
skipWrite: devOptions.watch.skipWrite,
|
|
44
44
|
usePolling: devOptions.watch.usePolling,
|
|
@@ -49,7 +49,7 @@ var DevEngine = class DevEngine {
|
|
|
49
49
|
debounceTickRate: devOptions.watch.debounceTickRate
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
return new DevEngine(new import_binding
|
|
52
|
+
return new DevEngine(new import_binding.BindingDevEngine(options.bundlerOptions, bindingDevOptions));
|
|
53
53
|
}
|
|
54
54
|
constructor(inner) {
|
|
55
55
|
this.#inner = inner;
|
|
@@ -83,6 +83,20 @@ var DevEngine = class DevEngine {
|
|
|
83
83
|
async close() {
|
|
84
84
|
await this.#inner.close();
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Compile a lazy entry module and return HMR-style patch code.
|
|
88
|
+
*
|
|
89
|
+
* This is called when a dynamically imported module is first requested at runtime.
|
|
90
|
+
* The module was previously stubbed with a proxy, and now we need to compile the
|
|
91
|
+
* actual module and its dependencies.
|
|
92
|
+
*
|
|
93
|
+
* @param moduleId - The absolute file path of the module to compile
|
|
94
|
+
* @param clientId - The client ID requesting this compilation
|
|
95
|
+
* @returns The compiled JavaScript code as a string (HMR patch format)
|
|
96
|
+
*/
|
|
97
|
+
async compileEntry(moduleId, clientId) {
|
|
98
|
+
return this.#inner.compileEntry(moduleId, clientId);
|
|
99
|
+
}
|
|
86
100
|
};
|
|
87
101
|
|
|
88
102
|
//#endregion
|
|
@@ -151,12 +165,12 @@ const scan = async (rawInputOptions, rawOutputOptions = {}) => {
|
|
|
151
165
|
validateOption("input", rawInputOptions);
|
|
152
166
|
validateOption("output", rawOutputOptions);
|
|
153
167
|
const ret = await createBundlerOptions(await PluginDriver.callOptionsHook(rawInputOptions), rawOutputOptions, false);
|
|
154
|
-
const bundler = new import_binding
|
|
155
|
-
if (RolldownBuild.asyncRuntimeShutdown) (0, import_binding
|
|
168
|
+
const bundler = new import_binding.BindingBundler();
|
|
169
|
+
if (RolldownBuild.asyncRuntimeShutdown) (0, import_binding.startAsyncRuntime)();
|
|
156
170
|
async function cleanup() {
|
|
157
171
|
await bundler.close();
|
|
158
172
|
await ret.stopWorkers?.();
|
|
159
|
-
(0, import_binding
|
|
173
|
+
(0, import_binding.shutdownAsyncRuntime)();
|
|
160
174
|
RolldownBuild.asyncRuntimeShutdown = true;
|
|
161
175
|
}
|
|
162
176
|
let cleanupPromise = Promise.resolve();
|
|
@@ -242,7 +256,6 @@ function viteManifestPlugin(config) {
|
|
|
242
256
|
|
|
243
257
|
//#endregion
|
|
244
258
|
//#region src/experimental-index.ts
|
|
245
|
-
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
246
259
|
/**
|
|
247
260
|
* In-memory file system for browser builds.
|
|
248
261
|
*
|
|
@@ -273,14 +286,14 @@ var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
|
273
286
|
const memfs = void 0;
|
|
274
287
|
|
|
275
288
|
//#endregion
|
|
276
|
-
var BindingRebuildStrategy = import_binding
|
|
277
|
-
var ResolverFactory = import_binding
|
|
278
|
-
var createTokioRuntime = import_binding
|
|
279
|
-
var isolatedDeclaration = import_binding
|
|
280
|
-
var isolatedDeclarationSync = import_binding
|
|
281
|
-
var minify = import_binding
|
|
282
|
-
var minifySync = import_binding
|
|
283
|
-
var moduleRunnerTransform = import_binding
|
|
284
|
-
var transform = import_binding
|
|
285
|
-
var transformSync = import_binding
|
|
289
|
+
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
290
|
+
var ResolverFactory = import_binding.ResolverFactory;
|
|
291
|
+
var createTokioRuntime = import_binding.createTokioRuntime;
|
|
292
|
+
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
293
|
+
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
294
|
+
var minify = import_binding.minify;
|
|
295
|
+
var minifySync = import_binding.minifySync;
|
|
296
|
+
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
297
|
+
var transform = import_binding.transform;
|
|
298
|
+
var transformSync = import_binding.transformSync;
|
|
286
299
|
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, 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 };
|
|
@@ -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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { k as withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-MAEzB4KA.mjs";
|
|
2
|
+
import { k as withFilter } from "./shared/define-config-Cg9apQLa.mjs";
|
|
3
3
|
export * from "@rolldown/pluginutils/filter";
|
|
4
4
|
export { withFilter };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 RolldownFsModule, At as
|
|
4
|
-
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 RolldownFsModule, At as RenderedModule, B as EmittedPrebuiltChunk, C as ResolveIdResult, Ct as PreRenderedAsset, D as SourceDescription, Dt as OutputAsset, E as RolldownPluginOption, F as OutputBundle, Ft as SourcemapIgnoreListOption, G as MinimalPluginContext, H as PluginContext, I as TreeshakingOptions, J as HookFilter, K as PluginContextMeta, L as TransformPluginContext, M as ExistingRawSourceMap, Mt as SourceMap, N as SourceMapInput, O as TransformResult, Ot as OutputChunk, P as RolldownOptionsFunction, Pt as ModuleInfo, Q as RolldownFileStats, R as EmittedAsset, S as ResolveIdExtraOptions, St as OutputOptions, T as RolldownPlugin, Tt as PartialNull, U as DefineParallelPluginResult, V as GetModuleInfo, X as BufferEncoding, Y as ModuleTypeFilter, Z as RolldownDirectoryEntry, _ as ModuleType, _t as GeneratedCodeOptions, a as InputOption, at as WarningHandlerWithDefault, b as PartialResolvedId, bt as MinifyOptions, c as OptimizationOptions, ct as RolldownWatcherEvent, d as CustomPluginOptions, dt as RolldownBuild, et as InternalModuleFormat, f as FunctionPluginHooks, ft as BuildOptions, g as ModuleOptions, gt as ChunkingContext, h as LoadResult, ht as ChunkFileNamesFunction, i as ExternalOption, it as LoggingFunction, j as VERSION, jt as RolldownOutput, kt as RenderedChunk, l as WatcherOptions, lt as WatchOptions, m as ImportKind, mt as AddonFunction, n as ConfigExport, nt as NormalizedInputOptions, o as InputOptions, ot as watch, p as HookFilterExtension, pt as build, q as GeneralHookFilter, r as RolldownOptions, rt as ChecksOptions, s as ModuleTypes, st as RolldownWatcher, t as defineConfig, tt as NormalizedOutputOptions, u as AsyncPluginHooks, ut as rolldown, v as ObjectHook, vt as GeneratedCodePreset, w as ResolvedId, x as Plugin, xt as ModuleFormat, y as ParallelPluginHooks, yt as GlobalsFunction, z as EmittedFile } from "./shared/define-config-Cg9apQLa.mjs";
|
|
4
|
+
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,10 +1,10 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import { 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-
|
|
7
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-QUhP-0wQ.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CN4zUkzW.mjs";
|
|
3
|
+
import { y as VERSION } from "./shared/normalize-string-or-regex-DbyImenn.mjs";
|
|
4
|
+
import "./shared/rolldown-build-ciWo5RN-.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-CJ8NjPpl.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-Dxd6PXtU.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-BR9L9ovo.mjs";
|
|
8
8
|
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
9
9
|
import { isMainThread } from "node:worker_threads";
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-QUhP-0wQ.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-DbyImenn.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CJ8NjPpl.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-Dxd6PXtU.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import "./shared/binding-MAEzB4KA.mjs";
|
|
2
|
+
import { wt as MaybePromise, x as Plugin } from "./shared/define-config-Cg9apQLa.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,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-
|
|
1
|
+
import "./shared/binding-QUhP-0wQ.mjs";
|
|
2
|
+
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-Dxd6PXtU.mjs";
|
|
3
3
|
|
|
4
4
|
export { parseAst, parseAstAsync };
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { A as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-MAEzB4KA.mjs";
|
|
2
|
+
import { A as BuiltinPlugin } from "./shared/define-config-Cg9apQLa.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DcGyaGNV.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import "./shared/binding-QUhP-0wQ.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-DbyImenn.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-Ckn63GYh.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
6
6
|
/**
|
|
@@ -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;
|