@rolldown/browser 1.0.0-beta.54 → 1.0.0-beta.56
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 +18 -18
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +7 -7
- package/dist/{constructors-CPxFX1pF.js → constructors-DMeuUDyD.js} +1 -1
- package/dist/experimental-index.browser.mjs +39 -4
- package/dist/experimental-index.d.mts +38 -5
- package/dist/experimental-index.mjs +37 -6
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +2 -2
- package/dist/get-log-filter.d.mts +7 -0
- package/dist/get-log-filter.mjs +48 -0
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +7 -7
- package/dist/{normalize-string-or-regex-Crhxh-US.js → normalize-string-or-regex-B-Y4k0qo.js} +6 -4
- 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.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-BEfycLl9.js → rolldown-build-BEV6JVIl.js} +76 -29
- package/dist/shared/{binding-yIBVkeOE.d.mts → binding-CDyF6W3D.d.mts} +15 -10
- package/dist/shared/{bindingify-input-options-CxbvPG4D.mjs → bindingify-input-options-kzSFdf_-.mjs} +53 -17
- package/dist/shared/{constructors-D9uR3o6d.d.mts → constructors-B0L_9ar3.d.mts} +2 -2
- package/dist/shared/{constructors-C4qFjfHR.mjs → constructors-Dw9UOO6Z.mjs} +1 -1
- package/dist/shared/{define-config-DkpMlrZ3.d.mts → define-config-CrCCK_Ci.d.mts} +19 -7
- package/dist/shared/{load-config-BqTtlue1.mjs → load-config-vlnYfd7q.mjs} +1 -1
- package/dist/shared/logging-BpAvp7KV.d.mts +37 -0
- package/dist/shared/{logs-CPsamAuj.mjs → logs-DEfpOy5A.mjs} +4 -2
- package/dist/shared/{normalize-string-or-regex-B8NuOx7w.mjs → normalize-string-or-regex-CwM9ci6w.mjs} +4 -4
- package/dist/shared/{parse-ast-index-C0k-VwRM.mjs → parse-ast-index-DZPue_kI.mjs} +11 -8
- package/dist/shared/{rolldown-BeAWDsL_.mjs → rolldown-DtiFL1Ph.mjs} +1 -1
- package/dist/shared/{rolldown-build-yjeMNdrl.mjs → rolldown-build-B3XDwemQ.mjs} +22 -14
- package/dist/shared/utils-B3dcnHc8.d.mts +29 -0
- package/dist/shared/{watch-C7zN9oTc.mjs → watch-BHMj7YNj.mjs} +9 -9
- package/package.json +1 -1
- package/dist/shared/utils-mjPIk7Yj.d.mts +0 -64
- /package/dist/shared/{composable-filters-DZ5ToxRJ.mjs → composable-filters-G1eqjHFo.mjs} +0 -0
- /package/dist/shared/{define-config-DfeZGBEt.mjs → define-config-BF4P-Pum.mjs} +0 -0
- /package/dist/shared/{misc-5GYLGQ20.mjs → misc-BubmxcE3.mjs} +0 -0
- /package/dist/shared/{prompt-pmGBC3ws.mjs → prompt-CNt8OM9C.mjs} +0 -0
package/dist/cli.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { t as arraify } from "./shared/misc-
|
|
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-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BHMj7YNj.mjs";
|
|
2
|
+
import { t as arraify } from "./shared/misc-BubmxcE3.mjs";
|
|
3
|
+
import { b as description, x as version } from "./shared/normalize-string-or-regex-CwM9ci6w.mjs";
|
|
4
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-B3XDwemQ.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-kzSFdf_-.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-DZPue_kI.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-DtiFL1Ph.mjs";
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-vlnYfd7q.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";
|
|
@@ -530,7 +530,7 @@ function getColor$1(color, fallback = "reset") {
|
|
|
530
530
|
return colors[color] || colors[fallback];
|
|
531
531
|
}
|
|
532
532
|
const ansiRegex$1 = [String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`, String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");
|
|
533
|
-
function stripAnsi(text) {
|
|
533
|
+
function stripAnsi$1(text) {
|
|
534
534
|
return text.replace(new RegExp(ansiRegex$1, "g"), "");
|
|
535
535
|
}
|
|
536
536
|
const boxStylePresets = {
|
|
@@ -623,14 +623,14 @@ function box(text, _opts = {}) {
|
|
|
623
623
|
if (_color) for (const key in borderStyle) borderStyle[key] = _color(borderStyle[key]);
|
|
624
624
|
const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
|
|
625
625
|
const height = textLines.length + paddingOffset;
|
|
626
|
-
const width = Math.max(...textLines.map((line) => stripAnsi(line).length), opts.title ? stripAnsi(opts.title).length : 0) + paddingOffset;
|
|
626
|
+
const width = Math.max(...textLines.map((line) => stripAnsi$1(line).length), opts.title ? stripAnsi$1(opts.title).length : 0) + paddingOffset;
|
|
627
627
|
const widthOffset = width + paddingOffset;
|
|
628
628
|
const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
|
|
629
629
|
if (opts.style.marginTop > 0) boxLines.push("".repeat(opts.style.marginTop));
|
|
630
630
|
if (opts.title) {
|
|
631
631
|
const title = _color ? _color(opts.title) : opts.title;
|
|
632
|
-
const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
|
|
633
|
-
const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
|
|
632
|
+
const left = borderStyle.h.repeat(Math.floor((width - stripAnsi$1(opts.title).length) / 2));
|
|
633
|
+
const right = borderStyle.h.repeat(width - stripAnsi$1(opts.title).length - stripAnsi$1(left).length + paddingOffset);
|
|
634
634
|
boxLines.push(`${leftSpace}${borderStyle.tl}${left}${title}${right}${borderStyle.tr}`);
|
|
635
635
|
} else boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
|
|
636
636
|
const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
|
|
@@ -638,7 +638,7 @@ function box(text, _opts = {}) {
|
|
|
638
638
|
else {
|
|
639
639
|
const line = textLines[i$1 - valignOffset];
|
|
640
640
|
const left = " ".repeat(paddingOffset);
|
|
641
|
-
const right = " ".repeat(width - stripAnsi(line).length);
|
|
641
|
+
const right = " ".repeat(width - stripAnsi$1(line).length);
|
|
642
642
|
boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
|
|
643
643
|
}
|
|
644
644
|
boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
|
|
@@ -811,7 +811,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
811
811
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
812
812
|
}
|
|
813
813
|
const regex = ansiRegex();
|
|
814
|
-
function stripAnsi
|
|
814
|
+
function stripAnsi(string) {
|
|
815
815
|
if (typeof string !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
816
816
|
return string.replace(regex, "");
|
|
817
817
|
}
|
|
@@ -840,7 +840,7 @@ const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
|
840
840
|
function stringWidth$1(string, options$1 = {}) {
|
|
841
841
|
if (typeof string !== "string" || string.length === 0) return 0;
|
|
842
842
|
const { ambiguousIsNarrow = true, countAnsiEscapeCodes = false } = options$1;
|
|
843
|
-
if (!countAnsiEscapeCodes) string = stripAnsi
|
|
843
|
+
if (!countAnsiEscapeCodes) string = stripAnsi(string);
|
|
844
844
|
if (string.length === 0) return 0;
|
|
845
845
|
let width = 0;
|
|
846
846
|
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
@@ -893,7 +893,7 @@ const TYPE_ICONS = {
|
|
|
893
893
|
log: ""
|
|
894
894
|
};
|
|
895
895
|
function stringWidth(str) {
|
|
896
|
-
if (!(typeof Intl === "object") || !Intl.Segmenter) return stripAnsi(str).length;
|
|
896
|
+
if (!(typeof Intl === "object") || !Intl.Segmenter) return stripAnsi$1(str).length;
|
|
897
897
|
return stringWidth$1(str);
|
|
898
898
|
}
|
|
899
899
|
var FancyReporter = class extends BasicReporter {
|
|
@@ -950,7 +950,7 @@ function createConsola(options$1 = {}) {
|
|
|
950
950
|
defaults: { level },
|
|
951
951
|
stdout: process.stdout,
|
|
952
952
|
stderr: process.stderr,
|
|
953
|
-
prompt: (...args) => import("./shared/prompt-
|
|
953
|
+
prompt: (...args) => import("./shared/prompt-CNt8OM9C.mjs").then((m) => m.prompt(...args)),
|
|
954
954
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
955
955
|
...options$1
|
|
956
956
|
});
|
|
@@ -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.103.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-CrCCK_Ci.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-
|
|
6
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
7
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
1
|
+
import { x as version } from "./shared/normalize-string-or-regex-CwM9ci6w.mjs";
|
|
2
|
+
import "./shared/rolldown-build-B3XDwemQ.mjs";
|
|
3
|
+
import "./shared/bindingify-input-options-kzSFdf_-.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-DZPue_kI.mjs";
|
|
5
|
+
import "./shared/rolldown-DtiFL1Ph.mjs";
|
|
6
|
+
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
7
|
+
import { t as loadConfig } from "./shared/load-config-vlnYfd7q.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-B-Y4k0qo.js";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -1,6 +1,7 @@
|
|
|
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-B-Y4k0qo.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-BEV6JVIl.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-DMeuUDyD.js";
|
|
4
|
+
import * as binding from "./rolldown-binding.wasi-browser.js";
|
|
4
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";
|
|
5
6
|
|
|
6
7
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -232,4 +233,38 @@ function viteManifestPlugin(config) {
|
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
//#endregion
|
|
235
|
-
|
|
236
|
+
//#region src/experimental-index.ts
|
|
237
|
+
/**
|
|
238
|
+
* In-memory file system for browser builds.
|
|
239
|
+
*
|
|
240
|
+
* This is a re-export of the {@link https://github.com/streamich/memfs | memfs} package used by the WASI runtime.
|
|
241
|
+
* It allows you to read and write files to a virtual filesystem when using rolldown in browser environments.
|
|
242
|
+
*
|
|
243
|
+
* - `fs`: A Node.js-compatible filesystem API (`IFs` from memfs)
|
|
244
|
+
* - `volume`: The underlying `Volume` instance that stores the filesystem state
|
|
245
|
+
*
|
|
246
|
+
* Returns `undefined` in Node.js builds (only available in browser builds via `@rolldown/browser`).
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```typescript
|
|
250
|
+
* import { memfs } from 'rolldown/experimental';
|
|
251
|
+
*
|
|
252
|
+
* // Write files to virtual filesystem before bundling
|
|
253
|
+
* memfs?.volume.fromJSON({
|
|
254
|
+
* '/src/index.js': 'export const foo = 42;',
|
|
255
|
+
* '/package.json': '{"name": "my-app"}'
|
|
256
|
+
* });
|
|
257
|
+
*
|
|
258
|
+
* // Read files from the virtual filesystem
|
|
259
|
+
* const content = memfs?.fs.readFileSync('/src/index.js', 'utf8');
|
|
260
|
+
* ```
|
|
261
|
+
*
|
|
262
|
+
* @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
|
|
263
|
+
*/
|
|
264
|
+
const memfs = {
|
|
265
|
+
fs: binding.__fs,
|
|
266
|
+
volume: binding.__volume
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
//#endregion
|
|
270
|
+
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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-CDyF6W3D.mjs";
|
|
2
|
+
import { Et as freeExternalMemory, M as SourceMapInput, P as OutputBundle, U as defineParallelPlugin, W as MinimalPluginContext, et as NormalizedOutputOptions, o as InputOptions, vt as OutputOptions, wt as RolldownOutput, xt as OutputChunk } from "./shared/define-config-CrCCK_Ci.mjs";
|
|
3
|
+
import { t as BuiltinPlugin } from "./shared/utils-B3dcnHc8.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-B0L_9ar3.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -192,4 +192,37 @@ type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"
|
|
|
192
192
|
};
|
|
193
193
|
declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
|
|
194
194
|
//#endregion
|
|
195
|
-
|
|
195
|
+
//#region src/experimental-index.d.ts
|
|
196
|
+
/**
|
|
197
|
+
* In-memory file system for browser builds.
|
|
198
|
+
*
|
|
199
|
+
* This is a re-export of the {@link https://github.com/streamich/memfs | memfs} package used by the WASI runtime.
|
|
200
|
+
* It allows you to read and write files to a virtual filesystem when using rolldown in browser environments.
|
|
201
|
+
*
|
|
202
|
+
* - `fs`: A Node.js-compatible filesystem API (`IFs` from memfs)
|
|
203
|
+
* - `volume`: The underlying `Volume` instance that stores the filesystem state
|
|
204
|
+
*
|
|
205
|
+
* Returns `undefined` in Node.js builds (only available in browser builds via `@rolldown/browser`).
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* ```typescript
|
|
209
|
+
* import { memfs } from 'rolldown/experimental';
|
|
210
|
+
*
|
|
211
|
+
* // Write files to virtual filesystem before bundling
|
|
212
|
+
* memfs?.volume.fromJSON({
|
|
213
|
+
* '/src/index.js': 'export const foo = 42;',
|
|
214
|
+
* '/package.json': '{"name": "my-app"}'
|
|
215
|
+
* });
|
|
216
|
+
*
|
|
217
|
+
* // Read files from the virtual filesystem
|
|
218
|
+
* const content = memfs?.fs.readFileSync('/src/index.js', 'utf8');
|
|
219
|
+
* ```
|
|
220
|
+
*
|
|
221
|
+
* @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
|
|
222
|
+
*/
|
|
223
|
+
declare const memfs: {
|
|
224
|
+
fs: any;
|
|
225
|
+
volume: any;
|
|
226
|
+
} | undefined;
|
|
227
|
+
//#endregion
|
|
228
|
+
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, 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 };
|
|
@@ -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-CwM9ci6w.mjs";
|
|
2
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-B3XDwemQ.mjs";
|
|
3
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-kzSFdf_-.mjs";
|
|
4
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-DZPue_kI.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-Dw9UOO6Z.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
|
|
|
@@ -240,4 +240,35 @@ function viteManifestPlugin(config) {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
//#endregion
|
|
243
|
-
|
|
243
|
+
//#region src/experimental-index.ts
|
|
244
|
+
/**
|
|
245
|
+
* In-memory file system for browser builds.
|
|
246
|
+
*
|
|
247
|
+
* This is a re-export of the {@link https://github.com/streamich/memfs | memfs} package used by the WASI runtime.
|
|
248
|
+
* It allows you to read and write files to a virtual filesystem when using rolldown in browser environments.
|
|
249
|
+
*
|
|
250
|
+
* - `fs`: A Node.js-compatible filesystem API (`IFs` from memfs)
|
|
251
|
+
* - `volume`: The underlying `Volume` instance that stores the filesystem state
|
|
252
|
+
*
|
|
253
|
+
* Returns `undefined` in Node.js builds (only available in browser builds via `@rolldown/browser`).
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```typescript
|
|
257
|
+
* import { memfs } from 'rolldown/experimental';
|
|
258
|
+
*
|
|
259
|
+
* // Write files to virtual filesystem before bundling
|
|
260
|
+
* memfs?.volume.fromJSON({
|
|
261
|
+
* '/src/index.js': 'export const foo = 42;',
|
|
262
|
+
* '/package.json': '{"name": "my-app"}'
|
|
263
|
+
* });
|
|
264
|
+
*
|
|
265
|
+
* // Read files from the virtual filesystem
|
|
266
|
+
* const content = memfs?.fs.readFileSync('/src/index.js', 'utf8');
|
|
267
|
+
* ```
|
|
268
|
+
*
|
|
269
|
+
* @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
|
|
270
|
+
*/
|
|
271
|
+
const memfs = void 0;
|
|
272
|
+
|
|
273
|
+
//#endregion
|
|
274
|
+
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 };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { k as withFilter } from "./shared/define-config-
|
|
1
|
+
import { k as withFilter } from "./shared/define-config-CrCCK_Ci.mjs";
|
|
2
2
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
3
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as isPromiseLike, t as arraify } from "./shared/misc-
|
|
2
|
-
import { a as include, c as or, i as id, l as queries, n as code, o as moduleType, r as exclude, s as not, t as and, u as query } from "./shared/composable-filters-
|
|
1
|
+
import { n as isPromiseLike, t as arraify } from "./shared/misc-BubmxcE3.mjs";
|
|
2
|
+
import { a as include, c as or, i as id, l as queries, n as code, o as moduleType, r as exclude, s as not, t as and, u as query } from "./shared/composable-filters-G1eqjHFo.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/with-filter.ts
|
|
5
5
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a as RollupLog } from "./shared/logging-BpAvp7KV.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/get-log-filter.d.ts
|
|
4
|
+
type GetLogFilter = (filters: string[]) => (log: RollupLog) => boolean;
|
|
5
|
+
declare const getLogFilter: GetLogFilter;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { GetLogFilter, type RollupLog, getLogFilter as default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//#region src/get-log-filter.ts
|
|
2
|
+
const getLogFilter = (filters) => {
|
|
3
|
+
if (filters.length === 0) return () => true;
|
|
4
|
+
const normalizedFilters = filters.map((filter) => filter.split("&").map((subFilter) => {
|
|
5
|
+
const inverted = subFilter.startsWith("!");
|
|
6
|
+
if (inverted) subFilter = subFilter.slice(1);
|
|
7
|
+
const [key, ...value] = subFilter.split(":");
|
|
8
|
+
return {
|
|
9
|
+
inverted,
|
|
10
|
+
key: key.split("."),
|
|
11
|
+
parts: value.join(":").split("*")
|
|
12
|
+
};
|
|
13
|
+
}));
|
|
14
|
+
return (log) => {
|
|
15
|
+
nextIntersectedFilter: for (const intersectedFilters of normalizedFilters) {
|
|
16
|
+
for (const { inverted, key, parts } of intersectedFilters) {
|
|
17
|
+
const isFilterSatisfied = testFilter(log, key, parts);
|
|
18
|
+
if (inverted ? isFilterSatisfied : !isFilterSatisfied) continue nextIntersectedFilter;
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
const testFilter = (log, key, parts) => {
|
|
26
|
+
let rawValue = log;
|
|
27
|
+
for (let index = 0; index < key.length; index++) {
|
|
28
|
+
if (!rawValue) return false;
|
|
29
|
+
const part = key[index];
|
|
30
|
+
if (!(part in rawValue)) return false;
|
|
31
|
+
rawValue = rawValue[part];
|
|
32
|
+
}
|
|
33
|
+
let value = typeof rawValue === "object" ? JSON.stringify(rawValue) : String(rawValue);
|
|
34
|
+
if (parts.length === 1) return value === parts[0];
|
|
35
|
+
if (!value.startsWith(parts[0])) return false;
|
|
36
|
+
const lastPartIndex = parts.length - 1;
|
|
37
|
+
for (let index = 1; index < lastPartIndex; index++) {
|
|
38
|
+
const part = parts[index];
|
|
39
|
+
const position = value.indexOf(part);
|
|
40
|
+
if (position === -1) return false;
|
|
41
|
+
value = value.slice(position + part.length);
|
|
42
|
+
}
|
|
43
|
+
return value.endsWith(parts[lastPartIndex]);
|
|
44
|
+
};
|
|
45
|
+
var get_log_filter_default = getLogFilter;
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { get_log_filter_default as default };
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-B-Y4k0qo.js";
|
|
2
|
+
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-BEV6JVIl.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,5 @@
|
|
|
1
|
-
import {
|
|
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 RenderedModule, D as SourceDescription, Dt as ModuleInfo, E as RolldownPluginOption, 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 SourcemapIgnoreListOption, P as OutputBundle, Q as RolldownFsModule, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedChunk, T as RolldownPlugin, Tt as SourceMap, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as ModuleFormat, a as InputOption, at as WatchOptions, b as PartialResolvedId, bt as OutputAsset, c as OptimizationOptions, ct as BuildOptions, d as CustomPluginOptions, dt as ChunkFileNamesFunction, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as ChunkingContext, g as ModuleOptions, gt as MinifyOptions, h as LoadResult, ht as GlobalsFunction, i as ExternalOption, it as RolldownWatcherEvent, j as ExistingRawSourceMap, l as WatcherOptions, lt as build, m as ImportKind, mt as GeneratedCodePreset, n as ConfigExport, nt as watch, o as InputOptions, ot as rolldown, p as HookFilterExtension, pt as GeneratedCodeOptions, q as HookFilter, r as RolldownOptions, rt as RolldownWatcher, s as ModuleTypes, st as RolldownBuild, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as AddonFunction, v as ObjectHook, vt as OutputOptions, w as ResolvedId, wt as RolldownOutput, x as Plugin, xt as OutputChunk, y as ParallelPluginHooks, yt as PreRenderedAsset, z as EmittedPrebuiltChunk } from "./shared/define-config-
|
|
1
|
+
import { a as RollupLog, i as RollupError, n as LogLevelOption, o as RollupLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BpAvp7KV.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-CDyF6W3D.mjs";
|
|
3
|
+
import { $ as InternalModuleFormat, A as VERSION, B as GetModuleInfo, C as ResolveIdResult, Ct as RenderedModule, D as SourceDescription, Dt as ModuleInfo, E as RolldownPluginOption, 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 SourcemapIgnoreListOption, P as OutputBundle, Q as RolldownFsModule, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedChunk, T as RolldownPlugin, Tt as SourceMap, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as ModuleFormat, a as InputOption, at as WatchOptions, b as PartialResolvedId, bt as OutputAsset, c as OptimizationOptions, ct as BuildOptions, d as CustomPluginOptions, dt as ChunkFileNamesFunction, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as ChunkingContext, g as ModuleOptions, gt as MinifyOptions, h as LoadResult, ht as GlobalsFunction, i as ExternalOption, it as RolldownWatcherEvent, j as ExistingRawSourceMap, l as WatcherOptions, lt as build, m as ImportKind, mt as GeneratedCodePreset, n as ConfigExport, nt as watch, o as InputOptions, ot as rolldown, p as HookFilterExtension, pt as GeneratedCodeOptions, q as HookFilter, r as RolldownOptions, rt as RolldownWatcher, s as ModuleTypes, st as RolldownBuild, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as AddonFunction, v as ObjectHook, vt as OutputOptions, w as ResolvedId, wt as RolldownOutput, x as Plugin, xt as OutputChunk, y as ParallelPluginHooks, yt as PreRenderedAsset, z as EmittedPrebuiltChunk } from "./shared/define-config-CrCCK_Ci.mjs";
|
|
4
|
+
import { i as WarningHandlerWithDefault, l as PartialNull, n as LoggingFunction } from "./shared/utils-B3dcnHc8.mjs";
|
|
4
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
7
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BHMj7YNj.mjs";
|
|
2
|
+
import { y as VERSION } from "./shared/normalize-string-or-regex-CwM9ci6w.mjs";
|
|
3
|
+
import "./shared/rolldown-build-B3XDwemQ.mjs";
|
|
4
|
+
import "./shared/bindingify-input-options-kzSFdf_-.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-DZPue_kI.mjs";
|
|
6
|
+
import { t as rolldown } from "./shared/rolldown-DtiFL1Ph.mjs";
|
|
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";
|
|
10
10
|
|
package/dist/{normalize-string-or-regex-Crhxh-US.js → normalize-string-or-regex-B-Y4k0qo.js}
RENAMED
|
@@ -102,10 +102,12 @@ function locate(source, search, options) {
|
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/log/logs.ts
|
|
104
104
|
const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR", NO_FS_IN_BROWSER = "NO_FS_IN_BROWSER";
|
|
105
|
-
function logParseError(message) {
|
|
105
|
+
function logParseError(message, id, pos) {
|
|
106
106
|
return {
|
|
107
107
|
code: PARSE_ERROR,
|
|
108
|
-
|
|
108
|
+
id,
|
|
109
|
+
message,
|
|
110
|
+
pos
|
|
109
111
|
};
|
|
110
112
|
}
|
|
111
113
|
function logInvalidLogPosition(pluginName) {
|
|
@@ -234,7 +236,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
234
236
|
|
|
235
237
|
//#endregion
|
|
236
238
|
//#region package.json
|
|
237
|
-
var version = "1.0.0-beta.
|
|
239
|
+
var version = "1.0.0-beta.56";
|
|
238
240
|
|
|
239
241
|
//#endregion
|
|
240
242
|
//#region src/version.ts
|
|
@@ -391,7 +393,7 @@ function bindingAssetSource(source) {
|
|
|
391
393
|
}
|
|
392
394
|
|
|
393
395
|
//#endregion
|
|
394
|
-
//#region \0@oxc-project+runtime@0.
|
|
396
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/decorate.js
|
|
395
397
|
function __decorate(decorators, target, key, desc) {
|
|
396
398
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
397
399
|
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-CwM9ci6w.mjs";
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-kzSFdf_-.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-DZPue_kI.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 {
|
|
2
|
-
import {
|
|
1
|
+
import { x as Plugin } from "./shared/define-config-CrCCK_Ci.mjs";
|
|
2
|
+
import { s as MaybePromise } from "./shared/utils-B3dcnHc8.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-B-Y4k0qo.js";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./constructors-DMeuUDyD.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 {
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-CDyF6W3D.mjs";
|
|
2
|
+
import { t as BuiltinPlugin } from "./shared/utils-B3dcnHc8.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-B0L_9ar3.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-CwM9ci6w.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-Dw9UOO6Z.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
|
Binary file
|