@rolldown/browser 1.0.0-rc.6 → 1.0.0-rc.7
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 +10 -21
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +9 -10
- package/dist/{constructors-WyngiSlS.js → constructors-BgL_dmUe.js} +2 -4
- package/dist/{error-D4EjR7H_.js → error-DkAP_6fk.js} +1 -6
- package/dist/experimental-index.browser.mjs +22 -19
- package/dist/experimental-index.d.mts +18 -4
- package/dist/experimental-index.mjs +24 -21
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +2 -6
- package/dist/get-log-filter.mjs +1 -2
- package/dist/index.browser.mjs +67 -73
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +9 -12
- package/dist/{normalize-string-or-regex-B0X1hEA4.js → normalize-string-or-regex-TtAGUp42.js} +5 -11
- package/dist/parallel-plugin-worker.mjs +6 -8
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parallel-plugin.mjs +1 -2
- package/dist/parse-ast-index.mjs +3 -5
- package/dist/plugins-index.browser.mjs +3 -5
- package/dist/plugins-index.mjs +3 -5
- package/dist/rolldown-binding.wasi-browser.js +0 -1
- package/dist/rolldown-binding.wasi.cjs +0 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-DwnjyX40.js → rolldown-build-D97C-VhN.js} +440 -522
- package/dist/shared/{bindingify-input-options-CSIYh5O4.mjs → bindingify-input-options-kCVufQp0.mjs} +33 -56
- package/dist/shared/{composable-filters-C_jBPRPI.mjs → composable-filters-B2ByPP8y.mjs} +1 -4
- package/dist/shared/{constructors-B2viugwd.mjs → constructors-C7Kkidxk.mjs} +2 -4
- package/dist/shared/{define-config-DMEhSrNE.d.mts → define-config-Cci3IvO_.d.mts} +65 -29
- package/dist/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/shared/{error-DDzqVYr_.mjs → error-CQ6njWsV.mjs} +1 -4
- package/dist/shared/{load-config-CmC4WvoS.mjs → load-config-DNGVjxdv.mjs} +2 -4
- package/dist/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/shared/{normalize-string-or-regex-FTOVR1Jb.mjs → normalize-string-or-regex-CF3Uz6aU.mjs} +2 -5
- package/dist/shared/{parse-DIZtKd4C.mjs → parse-DDUnGYGU.mjs} +1 -4
- package/dist/shared/{prompt-B56gTa4S.mjs → prompt-BYQIwEjg.mjs} +1 -3
- package/dist/shared/{rolldown-D7O5_axp.mjs → rolldown-C9kn7lTZ.mjs} +2 -4
- package/dist/shared/{rolldown-build-BV90HQts.mjs → rolldown-build-8_xyZuDH.mjs} +423 -472
- package/dist/shared/{transform-D49mi4JH.mjs → transform-B_n5An0U.mjs} +2 -5
- package/dist/shared/{watch-COON6c2j.mjs → watch-dCFQWE8a.mjs} +69 -75
- package/dist/{transform-qJgOBSav.js → transform-UkHb5h4g.js} +2 -5
- package/dist/utils-index.browser.mjs +7 -16
- package/dist/utils-index.mjs +8 -17
- package/package.json +1 -1
- package/dist/cli-setup.d.mts +0 -1
- package/dist/cli-setup.mjs +0 -16
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { c as logPluginError, n as error } from "./logs-
|
|
1
|
+
import { c as logPluginError, n as error } from "./logs-D80CXhvg.mjs";
|
|
2
2
|
import { BindingCallableBuiltinPlugin } from "../rolldown-binding.wasi.cjs";
|
|
3
|
-
|
|
4
3
|
//#region src/builtin-plugin/utils.ts
|
|
5
4
|
var BuiltinPlugin = class {
|
|
6
5
|
/** Vite-specific option to control plugin ordering */
|
|
@@ -44,7 +43,6 @@ function bindingifyManifestPlugin(plugin, pluginContextData) {
|
|
|
44
43
|
}
|
|
45
44
|
};
|
|
46
45
|
}
|
|
47
|
-
|
|
48
46
|
//#endregion
|
|
49
47
|
//#region src/utils/normalize-string-or-regex.ts
|
|
50
48
|
function normalizedStringOrRegex(pattern) {
|
|
@@ -55,6 +53,5 @@ function normalizedStringOrRegex(pattern) {
|
|
|
55
53
|
function isReadonlyArray(input) {
|
|
56
54
|
return Array.isArray(input);
|
|
57
55
|
}
|
|
58
|
-
|
|
59
56
|
//#endregion
|
|
60
|
-
export { makeBuiltinPluginCallable as a, bindingifyManifestPlugin as i, BuiltinPlugin as n, bindingifyBuiltInPlugin as r, normalizedStringOrRegex as t };
|
|
57
|
+
export { makeBuiltinPluginCallable as a, bindingifyManifestPlugin as i, BuiltinPlugin as n, bindingifyBuiltInPlugin as r, normalizedStringOrRegex as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/wrap.js
|
|
4
3
|
function wrap(result) {
|
|
5
4
|
let program, module, comments, errors;
|
|
@@ -35,7 +34,6 @@ function applyFix(program, fixPath) {
|
|
|
35
34
|
node.value = RegExp(node.regex.pattern, node.regex.flags);
|
|
36
35
|
} catch {}
|
|
37
36
|
}
|
|
38
|
-
|
|
39
37
|
//#endregion
|
|
40
38
|
//#region src/utils/parse.ts
|
|
41
39
|
/**
|
|
@@ -71,6 +69,5 @@ async function parse$1(filename, sourceText, options) {
|
|
|
71
69
|
function parseSync$1(filename, sourceText, options) {
|
|
72
70
|
return wrap(parseSync(filename, sourceText, options));
|
|
73
71
|
}
|
|
74
|
-
|
|
75
72
|
//#endregion
|
|
76
|
-
export { parseSync$1 as n, parse$1 as t };
|
|
73
|
+
export { parseSync$1 as n, parse$1 as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import process$1, { stdin, stdout } from "node:process";
|
|
2
2
|
import { WriteStream } from "node:tty";
|
|
3
3
|
import f from "node:readline";
|
|
4
|
-
|
|
5
4
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
|
|
6
5
|
function getDefaultExportFromCjs(x) {
|
|
7
6
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -842,6 +841,5 @@ async function prompt(message, opts = {}) {
|
|
|
842
841
|
}).then(handleCancel);
|
|
843
842
|
throw new Error(`Unknown prompt type: ${opts.type}`);
|
|
844
843
|
}
|
|
845
|
-
|
|
846
844
|
//#endregion
|
|
847
|
-
export { prompt };
|
|
845
|
+
export { prompt };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
2
|
-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-8_xyZuDH.mjs";
|
|
3
2
|
//#region src/api/rolldown/index.ts
|
|
4
3
|
/**
|
|
5
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -37,6 +36,5 @@ const rolldown = async (input) => {
|
|
|
37
36
|
validateOption("input", input);
|
|
38
37
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
39
38
|
};
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
|
-
export { rolldown as t };
|
|
40
|
+
export { rolldown as t };
|