@rolldown/browser 1.0.0-beta.7-commit.a7cf9ac → 1.0.0-beta.7-commit.b80d472
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/browser.mjs +67 -4
- package/dist/cli.cjs +81 -16
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +81 -16
- package/dist/experimental-index.cjs +3 -3
- package/dist/experimental-index.d.cts +65 -0
- package/dist/experimental-index.d.mts +65 -0
- package/dist/experimental-index.mjs +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +3 -3
- package/dist/parallel-plugin-worker.d.cts +1 -0
- package/dist/parallel-plugin-worker.d.mts +1 -0
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.cts +14 -0
- package/dist/parallel-plugin.d.mts +14 -0
- package/dist/parallel-plugin.mjs +0 -1
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +9 -0
- package/dist/parse-ast-index.d.mts +9 -0
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/chunk-DSsiIF1Z.mjs +30 -0
- package/dist/shared/{chunk-Dc32QXFI.cjs → chunk-qZFfknuJ.cjs} +9 -0
- package/dist/shared/input-options.d-Dhy0onEz.d.mts +1046 -0
- package/dist/shared/input-options.d-DuEVbue0.d.cts +1046 -0
- package/dist/shared/{parse-ast-index-CBDb3Hys.mjs → parse-ast-index-B5HMwEw9.mjs} +1 -1
- package/dist/shared/{parse-ast-index-Rn-i2y3M.cjs → parse-ast-index-lAAkaDQi.cjs} +1 -1
- package/dist/shared/{prompt-B3VJLbs9.mjs → prompt-B7SnYdwU.mjs} +1 -1
- package/dist/shared/{prompt-wpCBKCzA.cjs → prompt-_yrURmmm.cjs} +1 -1
- package/dist/shared/{src-B0csdUUQ.mjs → src-BL95s43J.mjs} +73 -6
- package/dist/shared/{src-B0-c-FLL.cjs → src-C47ObUwZ.cjs} +69 -6
- package/package.json +5 -12
- package/dist/shared/chunk-BuCFLigr.mjs +0 -12
- package/dist/types/api/build.d.ts +0 -18
- package/dist/types/api/experimental.d.ts +0 -7
- package/dist/types/api/rolldown/index.d.ts +0 -3
- package/dist/types/api/rolldown/rolldown-build.d.ts +0 -15
- package/dist/types/api/watch/index.d.ts +0 -3
- package/dist/types/api/watch/watch-emitter.d.ts +0 -31
- package/dist/types/api/watch/watcher.d.ts +0 -13
- package/dist/types/binding.d.ts +0 -1507
- package/dist/types/builtin-plugin/alias-plugin.d.ts +0 -10
- package/dist/types/builtin-plugin/constructors.d.ts +0 -23
- package/dist/types/builtin-plugin/replace-plugin.d.ts +0 -27
- package/dist/types/builtin-plugin/transform-plugin.d.ts +0 -9
- package/dist/types/builtin-plugin/utils.d.ts +0 -8
- package/dist/types/cli/arguments/alias.d.ts +0 -16
- package/dist/types/cli/arguments/index.d.ts +0 -15
- package/dist/types/cli/arguments/normalize.d.ts +0 -16
- package/dist/types/cli/arguments/utils.d.ts +0 -8
- package/dist/types/cli/commands/bundle.d.ts +0 -3
- package/dist/types/cli/commands/help.d.ts +0 -1
- package/dist/types/cli/index.d.ts +0 -1
- package/dist/types/cli/load-config.d.ts +0 -5
- package/dist/types/cli/logger.d.ts +0 -5
- package/dist/types/constants/plugin-context.d.ts +0 -7
- package/dist/types/constants/plugin.d.ts +0 -45
- package/dist/types/experimental-index.d.ts +0 -9
- package/dist/types/index.d.ts +0 -31
- package/dist/types/log/log-handler.d.ts +0 -4
- package/dist/types/log/logger.d.ts +0 -6
- package/dist/types/log/logging.d.ts +0 -12
- package/dist/types/log/logs.d.ts +0 -18
- package/dist/types/options/generated/checks-options.d.ts +0 -57
- package/dist/types/options/input-options.d.ts +0 -185
- package/dist/types/options/normalized-input-options.d.ts +0 -18
- package/dist/types/options/normalized-output-options.d.ts +0 -70
- package/dist/types/options/output-options.d.ts +0 -182
- package/dist/types/options/watch-options.d.ts +0 -5
- package/dist/types/parallel-plugin-worker.d.ts +0 -1
- package/dist/types/parallel-plugin.d.ts +0 -1
- package/dist/types/parse-ast-index.d.ts +0 -5
- package/dist/types/plugin/bindingify-build-hooks.d.ts +0 -10
- package/dist/types/plugin/bindingify-hook-filter.d.ts +0 -7
- package/dist/types/plugin/bindingify-output-hooks.d.ts +0 -14
- package/dist/types/plugin/bindingify-plugin-hook-meta.d.ts +0 -8
- package/dist/types/plugin/bindingify-plugin.d.ts +0 -17
- package/dist/types/plugin/bindingify-watch-hooks.d.ts +0 -5
- package/dist/types/plugin/hook-filter.d.ts +0 -49
- package/dist/types/plugin/index.d.ts +0 -141
- package/dist/types/plugin/minimal-plugin-context.d.ts +0 -24
- package/dist/types/plugin/parallel-plugin-implementation.d.ts +0 -10
- package/dist/types/plugin/parallel-plugin.d.ts +0 -9
- package/dist/types/plugin/plugin-context-data.d.ts +0 -22
- package/dist/types/plugin/plugin-context.d.ts +0 -67
- package/dist/types/plugin/plugin-driver.d.ts +0 -10
- package/dist/types/plugin/transform-plugin-context.d.ts +0 -28
- package/dist/types/plugin/with-filter.d.ts +0 -10
- package/dist/types/types/assert.d.ts +0 -14
- package/dist/types/types/config-export.d.ts +0 -5
- package/dist/types/types/misc.d.ts +0 -40
- package/dist/types/types/module-info.d.ts +0 -15
- package/dist/types/types/module-side-effects.d.ts +0 -12
- package/dist/types/types/output-bundle.d.ts +0 -4
- package/dist/types/types/rolldown-options.d.ts +0 -5
- package/dist/types/types/rolldown-output.d.ts +0 -66
- package/dist/types/types/schema.d.ts +0 -33
- package/dist/types/types/sourcemap.d.ts +0 -14
- package/dist/types/types/utils.d.ts +0 -13
- package/dist/types/types.d.ts +0 -7
- package/dist/types/utils/asset-source.d.ts +0 -4
- package/dist/types/utils/async-flatten.d.ts +0 -1
- package/dist/types/utils/bindingify-input-options.d.ts +0 -7
- package/dist/types/utils/bindingify-output-options.d.ts +0 -5
- package/dist/types/utils/code-frame.d.ts +0 -1
- package/dist/types/utils/compose-js-plugins.d.ts +0 -2
- package/dist/types/utils/create-bundler-option.d.ts +0 -11
- package/dist/types/utils/create-bundler.d.ts +0 -9
- package/dist/types/utils/define-config.d.ts +0 -5
- package/dist/types/utils/error.d.ts +0 -2
- package/dist/types/utils/initialize-parallel-plugins.d.ts +0 -17
- package/dist/types/utils/misc.d.ts +0 -7
- package/dist/types/utils/normalize-hook.d.ts +0 -7
- package/dist/types/utils/normalize-plugin-option.d.ts +0 -13
- package/dist/types/utils/normalize-string-or-regex.d.ts +0 -2
- package/dist/types/utils/plugin/index.d.ts +0 -2
- package/dist/types/utils/resolved-external.d.ts +0 -4
- package/dist/types/utils/transform-module-info.d.ts +0 -4
- package/dist/types/utils/transform-rendered-chunk.d.ts +0 -4
- package/dist/types/utils/transform-rendered-module.d.ts +0 -3
- package/dist/types/utils/transform-side-effects.d.ts +0 -3
- package/dist/types/utils/transform-sourcemap.d.ts +0 -3
- package/dist/types/utils/transform-to-rollup-output.d.ts +0 -11
- package/dist/types/utils/validator.d.ts +0 -6
package/dist/browser.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import "@valibot/to-json-schema";
|
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
|
|
7
7
|
//#region package.json
|
|
8
|
-
var version = "1.0.0-beta.7-commit.
|
|
8
|
+
var version = "1.0.0-beta.7-commit.b80d472";
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -712,9 +712,10 @@ const InputOptionsSchema = v.strictObject({
|
|
|
712
712
|
dropLabels: v.pipe(v.optional(v.array(v.string())), v.description("Remove labeled statements with these label names")),
|
|
713
713
|
checks: v.optional(ChecksOptionsSchema),
|
|
714
714
|
keepNames: v.pipe(v.optional(v.boolean()), v.description("Keep function/class name")),
|
|
715
|
-
debug: v.pipe(v.optional(v.object({
|
|
715
|
+
debug: v.pipe(v.optional(v.object({ sessionId: v.pipe(v.optional(v.string()), v.description("Used to name the build.")) })), v.description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly."))
|
|
716
716
|
});
|
|
717
717
|
const InputCliOverrideSchema = v.strictObject({
|
|
718
|
+
input: v.pipe(v.optional(v.array(v.string())), v.description("Entry file")),
|
|
718
719
|
external: v.pipe(v.optional(v.array(v.string())), v.description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
|
|
719
720
|
inject: v.pipe(v.optional(v.record(v.string(), v.string())), v.description("Inject import statements on demand")),
|
|
720
721
|
treeshake: v.pipe(v.optional(v.boolean()), v.description("enable treeshaking")),
|
|
@@ -724,7 +725,6 @@ const InputCliOptionsSchema = v.omit(v.strictObject({
|
|
|
724
725
|
...InputOptionsSchema.entries,
|
|
725
726
|
...InputCliOverrideSchema.entries
|
|
726
727
|
}), [
|
|
727
|
-
"input",
|
|
728
728
|
"plugins",
|
|
729
729
|
"onwarn",
|
|
730
730
|
"onLog",
|
|
@@ -2027,6 +2027,67 @@ function bindingifyCloseWatcher(args) {
|
|
|
2027
2027
|
};
|
|
2028
2028
|
}
|
|
2029
2029
|
|
|
2030
|
+
//#endregion
|
|
2031
|
+
//#region src/plugin/generated/hook-usage.ts
|
|
2032
|
+
let HookUsageKind = /* @__PURE__ */ function(HookUsageKind$1) {
|
|
2033
|
+
HookUsageKind$1[HookUsageKind$1["buildStart"] = 1] = "buildStart";
|
|
2034
|
+
HookUsageKind$1[HookUsageKind$1["resolveId"] = 2] = "resolveId";
|
|
2035
|
+
HookUsageKind$1[HookUsageKind$1["resolveDynamicImport"] = 4] = "resolveDynamicImport";
|
|
2036
|
+
HookUsageKind$1[HookUsageKind$1["load"] = 8] = "load";
|
|
2037
|
+
HookUsageKind$1[HookUsageKind$1["transform"] = 16] = "transform";
|
|
2038
|
+
HookUsageKind$1[HookUsageKind$1["moduleParsed"] = 32] = "moduleParsed";
|
|
2039
|
+
HookUsageKind$1[HookUsageKind$1["buildEnd"] = 64] = "buildEnd";
|
|
2040
|
+
HookUsageKind$1[HookUsageKind$1["renderStart"] = 128] = "renderStart";
|
|
2041
|
+
HookUsageKind$1[HookUsageKind$1["renderError"] = 256] = "renderError";
|
|
2042
|
+
HookUsageKind$1[HookUsageKind$1["renderChunk"] = 512] = "renderChunk";
|
|
2043
|
+
HookUsageKind$1[HookUsageKind$1["augmentChunkHash"] = 1024] = "augmentChunkHash";
|
|
2044
|
+
HookUsageKind$1[HookUsageKind$1["generateBundle"] = 2048] = "generateBundle";
|
|
2045
|
+
HookUsageKind$1[HookUsageKind$1["writeBundle"] = 4096] = "writeBundle";
|
|
2046
|
+
HookUsageKind$1[HookUsageKind$1["closeBundle"] = 8192] = "closeBundle";
|
|
2047
|
+
HookUsageKind$1[HookUsageKind$1["watchChange"] = 16384] = "watchChange";
|
|
2048
|
+
HookUsageKind$1[HookUsageKind$1["closeWatcher"] = 32768] = "closeWatcher";
|
|
2049
|
+
HookUsageKind$1[HookUsageKind$1["transformAst"] = 65536] = "transformAst";
|
|
2050
|
+
HookUsageKind$1[HookUsageKind$1["banner"] = 131072] = "banner";
|
|
2051
|
+
HookUsageKind$1[HookUsageKind$1["footer"] = 262144] = "footer";
|
|
2052
|
+
HookUsageKind$1[HookUsageKind$1["intro"] = 524288] = "intro";
|
|
2053
|
+
HookUsageKind$1[HookUsageKind$1["outro"] = 1048576] = "outro";
|
|
2054
|
+
return HookUsageKind$1;
|
|
2055
|
+
}({});
|
|
2056
|
+
var HookUsage = class {
|
|
2057
|
+
bitflag = BigInt(0);
|
|
2058
|
+
constructor() {}
|
|
2059
|
+
union(kind) {
|
|
2060
|
+
this.bitflag |= BigInt(kind);
|
|
2061
|
+
}
|
|
2062
|
+
inner() {
|
|
2063
|
+
return Number(this.bitflag);
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
function extractHookUsage(plugin) {
|
|
2067
|
+
let hookUsage = new HookUsage();
|
|
2068
|
+
if (plugin.buildStart) hookUsage.union(HookUsageKind.buildStart);
|
|
2069
|
+
if (plugin.resolveId) hookUsage.union(HookUsageKind.resolveId);
|
|
2070
|
+
if (plugin.resolveDynamicImport) hookUsage.union(HookUsageKind.resolveDynamicImport);
|
|
2071
|
+
if (plugin.load) hookUsage.union(HookUsageKind.load);
|
|
2072
|
+
if (plugin.transform) hookUsage.union(HookUsageKind.transform);
|
|
2073
|
+
if (plugin.moduleParsed) hookUsage.union(HookUsageKind.moduleParsed);
|
|
2074
|
+
if (plugin.buildEnd) hookUsage.union(HookUsageKind.buildEnd);
|
|
2075
|
+
if (plugin.renderStart) hookUsage.union(HookUsageKind.renderStart);
|
|
2076
|
+
if (plugin.renderError) hookUsage.union(HookUsageKind.renderError);
|
|
2077
|
+
if (plugin.renderChunk) hookUsage.union(HookUsageKind.renderChunk);
|
|
2078
|
+
if (plugin.augmentChunkHash) hookUsage.union(HookUsageKind.augmentChunkHash);
|
|
2079
|
+
if (plugin.generateBundle) hookUsage.union(HookUsageKind.generateBundle);
|
|
2080
|
+
if (plugin.writeBundle) hookUsage.union(HookUsageKind.writeBundle);
|
|
2081
|
+
if (plugin.closeBundle) hookUsage.union(HookUsageKind.closeBundle);
|
|
2082
|
+
if (plugin.watchChange) hookUsage.union(HookUsageKind.watchChange);
|
|
2083
|
+
if (plugin.closeWatcher) hookUsage.union(HookUsageKind.closeWatcher);
|
|
2084
|
+
if (plugin.banner) hookUsage.union(HookUsageKind.banner);
|
|
2085
|
+
if (plugin.footer) hookUsage.union(HookUsageKind.footer);
|
|
2086
|
+
if (plugin.intro) hookUsage.union(HookUsageKind.intro);
|
|
2087
|
+
if (plugin.outro) hookUsage.union(HookUsageKind.outro);
|
|
2088
|
+
return hookUsage;
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2030
2091
|
//#endregion
|
|
2031
2092
|
//#region src/plugin/bindingify-plugin.ts
|
|
2032
2093
|
function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
@@ -2060,6 +2121,7 @@ function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, nor
|
|
|
2060
2121
|
const { plugin: outro, meta: outroMeta } = bindingifyOutro(args);
|
|
2061
2122
|
const { plugin: watchChange, meta: watchChangeMeta } = bindingifyWatchChange(args);
|
|
2062
2123
|
const { plugin: closeWatcher, meta: closeWatcherMeta } = bindingifyCloseWatcher(args);
|
|
2124
|
+
let hookUsage = extractHookUsage(plugin).inner();
|
|
2063
2125
|
const result = {
|
|
2064
2126
|
name: plugin.name,
|
|
2065
2127
|
buildStart,
|
|
@@ -2104,7 +2166,8 @@ function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, nor
|
|
|
2104
2166
|
watchChange,
|
|
2105
2167
|
watchChangeMeta,
|
|
2106
2168
|
closeWatcher,
|
|
2107
|
-
closeWatcherMeta
|
|
2169
|
+
closeWatcherMeta,
|
|
2170
|
+
hookUsage
|
|
2108
2171
|
};
|
|
2109
2172
|
return wrapHandlers(result);
|
|
2110
2173
|
}
|
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_chunk = require('./shared/chunk-
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
+
const require_src = require('./shared/src-C47ObUwZ.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-lAAkaDQi.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
6
6
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -958,7 +958,7 @@ function createConsola(options$1 = {}) {
|
|
|
958
958
|
stdout: process.stdout,
|
|
959
959
|
stderr: process.stderr,
|
|
960
960
|
prompt: (...args) => Promise.resolve().then(function() {
|
|
961
|
-
return require("./shared/prompt-
|
|
961
|
+
return require("./shared/prompt-_yrURmmm.cjs");
|
|
962
962
|
}).then((m) => m.prompt(...args)),
|
|
963
963
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
964
964
|
...options$1
|
|
@@ -1121,7 +1121,8 @@ function normalizeCliOptions(cliOptions, positionals) {
|
|
|
1121
1121
|
process.exit(1);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
if (!result.config && positionals.length > 0) result.input.input
|
|
1124
|
+
if (!result.config && positionals.length > 0) if (Array.isArray(result.input.input)) result.input.input.push(...positionals);
|
|
1125
|
+
else result.input.input = positionals;
|
|
1125
1126
|
return result;
|
|
1126
1127
|
}
|
|
1127
1128
|
|
|
@@ -1515,6 +1516,67 @@ async function loadConfig(configPath) {
|
|
|
1515
1516
|
}
|
|
1516
1517
|
}
|
|
1517
1518
|
|
|
1519
|
+
//#endregion
|
|
1520
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.64.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1521
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.64.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1522
|
+
function _usingCtx() {
|
|
1523
|
+
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1524
|
+
var n$2 = Error();
|
|
1525
|
+
return n$2.name = "SuppressedError", n$2.error = r$2, n$2.suppressed = e$1, n$2;
|
|
1526
|
+
}, e = {}, n$1 = [];
|
|
1527
|
+
function using(r$2, e$1) {
|
|
1528
|
+
if (null != e$1) {
|
|
1529
|
+
if (Object(e$1) !== e$1) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
|
|
1530
|
+
if (r$2) var o$1 = e$1[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
|
|
1531
|
+
if (void 0 === o$1 && (o$1 = e$1[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r$2)) var t$1 = o$1;
|
|
1532
|
+
if ("function" != typeof o$1) throw new TypeError("Object is not disposable.");
|
|
1533
|
+
t$1 && (o$1 = function o$2() {
|
|
1534
|
+
try {
|
|
1535
|
+
t$1.call(e$1);
|
|
1536
|
+
} catch (r$3) {
|
|
1537
|
+
return Promise.reject(r$3);
|
|
1538
|
+
}
|
|
1539
|
+
}), n$1.push({
|
|
1540
|
+
v: e$1,
|
|
1541
|
+
d: o$1,
|
|
1542
|
+
a: r$2
|
|
1543
|
+
});
|
|
1544
|
+
} else r$2 && n$1.push({
|
|
1545
|
+
d: e$1,
|
|
1546
|
+
a: r$2
|
|
1547
|
+
});
|
|
1548
|
+
return e$1;
|
|
1549
|
+
}
|
|
1550
|
+
return {
|
|
1551
|
+
e,
|
|
1552
|
+
u: using.bind(null, !1),
|
|
1553
|
+
a: using.bind(null, !0),
|
|
1554
|
+
d: function d() {
|
|
1555
|
+
var o$1, t$1 = this.e, s$1 = 0;
|
|
1556
|
+
function next() {
|
|
1557
|
+
for (; o$1 = n$1.pop();) try {
|
|
1558
|
+
if (!o$1.a && 1 === s$1) return s$1 = 0, n$1.push(o$1), Promise.resolve().then(next);
|
|
1559
|
+
if (o$1.d) {
|
|
1560
|
+
var r$2 = o$1.d.call(o$1.v);
|
|
1561
|
+
if (o$1.a) return s$1 |= 2, Promise.resolve(r$2).then(next, err);
|
|
1562
|
+
} else s$1 |= 1;
|
|
1563
|
+
} catch (r$3) {
|
|
1564
|
+
return err(r$3);
|
|
1565
|
+
}
|
|
1566
|
+
if (1 === s$1) return t$1 !== e ? Promise.reject(t$1) : Promise.resolve();
|
|
1567
|
+
if (t$1 !== e) throw t$1;
|
|
1568
|
+
}
|
|
1569
|
+
function err(n$2) {
|
|
1570
|
+
return t$1 = t$1 !== e ? new r$1(n$2, t$1) : n$2, next();
|
|
1571
|
+
}
|
|
1572
|
+
return next();
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1577
|
+
} });
|
|
1578
|
+
var import_usingCtx = require_chunk.__toESM(require_usingCtx());
|
|
1579
|
+
|
|
1518
1580
|
//#endregion
|
|
1519
1581
|
//#region src/cli/commands/bundle.ts
|
|
1520
1582
|
async function bundleWithConfig(configPath, cliOptions) {
|
|
@@ -1527,17 +1589,18 @@ async function bundleWithConfig(configPath, cliOptions) {
|
|
|
1527
1589
|
else await bundleInner(config, cliOptions);
|
|
1528
1590
|
}
|
|
1529
1591
|
async function bundleWithCliOptions(cliOptions) {
|
|
1530
|
-
if (cliOptions.output.dir || cliOptions.output.file) {
|
|
1531
|
-
const operation = cliOptions.watch ? watchInner : bundleInner;
|
|
1532
|
-
await operation({}, cliOptions);
|
|
1533
|
-
return;
|
|
1534
|
-
}
|
|
1535
|
-
if (cliOptions.watch) {
|
|
1536
|
-
logger.error("You must specify `output.dir` to use watch mode");
|
|
1537
|
-
process.exit(1);
|
|
1538
|
-
}
|
|
1539
|
-
const build = await require_src.rolldown(cliOptions.input);
|
|
1540
1592
|
try {
|
|
1593
|
+
var _usingCtx$1 = (0, import_usingCtx.default)();
|
|
1594
|
+
if (cliOptions.output.dir || cliOptions.output.file) {
|
|
1595
|
+
const operation = cliOptions.watch ? watchInner : bundleInner;
|
|
1596
|
+
await operation({}, cliOptions);
|
|
1597
|
+
return;
|
|
1598
|
+
}
|
|
1599
|
+
if (cliOptions.watch) {
|
|
1600
|
+
logger.error("You must specify `output.dir` to use watch mode");
|
|
1601
|
+
process.exit(1);
|
|
1602
|
+
}
|
|
1603
|
+
const build = _usingCtx$1.a(await require_src.rolldown(cliOptions.input));
|
|
1541
1604
|
const { output: outputs } = await build.generate(cliOptions.output);
|
|
1542
1605
|
if (outputs.length === 0) {
|
|
1543
1606
|
logger.error("No output generated");
|
|
@@ -1547,8 +1610,10 @@ async function bundleWithCliOptions(cliOptions) {
|
|
|
1547
1610
|
if (outputs.length > 1) logger.log(`\n${ansis.default.cyan(ansis.default.bold(`|→ ${file.fileName}:`))}\n`);
|
|
1548
1611
|
console.log(file.type === "asset" ? file.source : file.code);
|
|
1549
1612
|
}
|
|
1613
|
+
} catch (_$1) {
|
|
1614
|
+
_usingCtx$1.e = _$1;
|
|
1550
1615
|
} finally {
|
|
1551
|
-
await
|
|
1616
|
+
await _usingCtx$1.d();
|
|
1552
1617
|
}
|
|
1553
1618
|
}
|
|
1554
1619
|
async function watchInner(config, cliOptions) {
|
package/dist/cli.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/cli.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __commonJS, __esm } from "./shared/chunk-
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-BL95s43J.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-B5HMwEw9.mjs";
|
|
4
4
|
import path, { sep } from "node:path";
|
|
5
5
|
import colors from "ansis";
|
|
6
6
|
import process$1, { cwd } from "node:process";
|
|
@@ -760,7 +760,7 @@ function createConsola(options$1 = {}) {
|
|
|
760
760
|
defaults: { level },
|
|
761
761
|
stdout: process.stdout,
|
|
762
762
|
stderr: process.stderr,
|
|
763
|
-
prompt: (...args) => import("./shared/prompt-
|
|
763
|
+
prompt: (...args) => import("./shared/prompt-B7SnYdwU.mjs").then((m) => m.prompt(...args)),
|
|
764
764
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
765
765
|
...options$1
|
|
766
766
|
});
|
|
@@ -1144,7 +1144,8 @@ function normalizeCliOptions(cliOptions, positionals) {
|
|
|
1144
1144
|
process.exit(1);
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
if (!result.config && positionals.length > 0) result.input.input
|
|
1147
|
+
if (!result.config && positionals.length > 0) if (Array.isArray(result.input.input)) result.input.input.push(...positionals);
|
|
1148
|
+
else result.input.input = positionals;
|
|
1148
1149
|
return result;
|
|
1149
1150
|
}
|
|
1150
1151
|
var init_normalize = __esm({ "src/cli/arguments/normalize.ts"() {
|
|
@@ -1562,6 +1563,67 @@ var init_load_config = __esm({ "src/cli/load-config.ts"() {
|
|
|
1562
1563
|
DEFAULT_CONFIG_BASE = "rolldown.config";
|
|
1563
1564
|
} });
|
|
1564
1565
|
|
|
1566
|
+
//#endregion
|
|
1567
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.64.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1568
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.64.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1569
|
+
function _usingCtx() {
|
|
1570
|
+
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1571
|
+
var n$2 = Error();
|
|
1572
|
+
return n$2.name = "SuppressedError", n$2.error = r$2, n$2.suppressed = e$1, n$2;
|
|
1573
|
+
}, e = {}, n$1 = [];
|
|
1574
|
+
function using(r$2, e$1) {
|
|
1575
|
+
if (null != e$1) {
|
|
1576
|
+
if (Object(e$1) !== e$1) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
|
|
1577
|
+
if (r$2) var o$1 = e$1[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
|
|
1578
|
+
if (void 0 === o$1 && (o$1 = e$1[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r$2)) var t$1 = o$1;
|
|
1579
|
+
if ("function" != typeof o$1) throw new TypeError("Object is not disposable.");
|
|
1580
|
+
t$1 && (o$1 = function o$2() {
|
|
1581
|
+
try {
|
|
1582
|
+
t$1.call(e$1);
|
|
1583
|
+
} catch (r$3) {
|
|
1584
|
+
return Promise.reject(r$3);
|
|
1585
|
+
}
|
|
1586
|
+
}), n$1.push({
|
|
1587
|
+
v: e$1,
|
|
1588
|
+
d: o$1,
|
|
1589
|
+
a: r$2
|
|
1590
|
+
});
|
|
1591
|
+
} else r$2 && n$1.push({
|
|
1592
|
+
d: e$1,
|
|
1593
|
+
a: r$2
|
|
1594
|
+
});
|
|
1595
|
+
return e$1;
|
|
1596
|
+
}
|
|
1597
|
+
return {
|
|
1598
|
+
e,
|
|
1599
|
+
u: using.bind(null, !1),
|
|
1600
|
+
a: using.bind(null, !0),
|
|
1601
|
+
d: function d() {
|
|
1602
|
+
var o$1, t$1 = this.e, s$1 = 0;
|
|
1603
|
+
function next() {
|
|
1604
|
+
for (; o$1 = n$1.pop();) try {
|
|
1605
|
+
if (!o$1.a && 1 === s$1) return s$1 = 0, n$1.push(o$1), Promise.resolve().then(next);
|
|
1606
|
+
if (o$1.d) {
|
|
1607
|
+
var r$2 = o$1.d.call(o$1.v);
|
|
1608
|
+
if (o$1.a) return s$1 |= 2, Promise.resolve(r$2).then(next, err);
|
|
1609
|
+
} else s$1 |= 1;
|
|
1610
|
+
} catch (r$3) {
|
|
1611
|
+
return err(r$3);
|
|
1612
|
+
}
|
|
1613
|
+
if (1 === s$1) return t$1 !== e ? Promise.reject(t$1) : Promise.resolve();
|
|
1614
|
+
if (t$1 !== e) throw t$1;
|
|
1615
|
+
}
|
|
1616
|
+
function err(n$2) {
|
|
1617
|
+
return t$1 = t$1 !== e ? new r$1(n$2, t$1) : n$2, next();
|
|
1618
|
+
}
|
|
1619
|
+
return next();
|
|
1620
|
+
}
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1624
|
+
} });
|
|
1625
|
+
var import_usingCtx = __toESM(require_usingCtx());
|
|
1626
|
+
|
|
1565
1627
|
//#endregion
|
|
1566
1628
|
//#region src/cli/commands/bundle.ts
|
|
1567
1629
|
async function bundleWithConfig(configPath, cliOptions) {
|
|
@@ -1574,17 +1636,18 @@ async function bundleWithConfig(configPath, cliOptions) {
|
|
|
1574
1636
|
else await bundleInner(config, cliOptions);
|
|
1575
1637
|
}
|
|
1576
1638
|
async function bundleWithCliOptions(cliOptions) {
|
|
1577
|
-
if (cliOptions.output.dir || cliOptions.output.file) {
|
|
1578
|
-
const operation = cliOptions.watch ? watchInner : bundleInner;
|
|
1579
|
-
await operation({}, cliOptions);
|
|
1580
|
-
return;
|
|
1581
|
-
}
|
|
1582
|
-
if (cliOptions.watch) {
|
|
1583
|
-
logger.error("You must specify `output.dir` to use watch mode");
|
|
1584
|
-
process.exit(1);
|
|
1585
|
-
}
|
|
1586
|
-
const build = await rolldown(cliOptions.input);
|
|
1587
1639
|
try {
|
|
1640
|
+
var _usingCtx$1 = (0, import_usingCtx.default)();
|
|
1641
|
+
if (cliOptions.output.dir || cliOptions.output.file) {
|
|
1642
|
+
const operation = cliOptions.watch ? watchInner : bundleInner;
|
|
1643
|
+
await operation({}, cliOptions);
|
|
1644
|
+
return;
|
|
1645
|
+
}
|
|
1646
|
+
if (cliOptions.watch) {
|
|
1647
|
+
logger.error("You must specify `output.dir` to use watch mode");
|
|
1648
|
+
process.exit(1);
|
|
1649
|
+
}
|
|
1650
|
+
const build = _usingCtx$1.a(await rolldown(cliOptions.input));
|
|
1588
1651
|
const { output: outputs } = await build.generate(cliOptions.output);
|
|
1589
1652
|
if (outputs.length === 0) {
|
|
1590
1653
|
logger.error("No output generated");
|
|
@@ -1594,8 +1657,10 @@ async function bundleWithCliOptions(cliOptions) {
|
|
|
1594
1657
|
if (outputs.length > 1) logger.log(`\n${colors.cyan(colors.bold(`|→ ${file.fileName}:`))}\n`);
|
|
1595
1658
|
console.log(file.type === "asset" ? file.source : file.code);
|
|
1596
1659
|
}
|
|
1660
|
+
} catch (_$1) {
|
|
1661
|
+
_usingCtx$1.e = _$1;
|
|
1597
1662
|
} finally {
|
|
1598
|
-
await
|
|
1663
|
+
await _usingCtx$1.d();
|
|
1599
1664
|
}
|
|
1600
1665
|
}
|
|
1601
1666
|
async function watchInner(config, cliOptions) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_chunk = require('./shared/chunk-
|
|
3
|
-
const require_src = require('./shared/src-
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
2
|
+
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
3
|
+
const require_src = require('./shared/src-C47ObUwZ.cjs');
|
|
4
|
+
require('./shared/parse-ast-index-lAAkaDQi.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
7
7
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-DuEVbue0.cjs";
|
|
2
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/api/experimental.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* This is an experimental API. It's behavior may change in the future.
|
|
7
|
+
*
|
|
8
|
+
* Calling this API will only execute the scan stage of rolldown.
|
|
9
|
+
*/
|
|
10
|
+
declare const experimental_scan: (input: InputOptions) => Promise<void>;
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/utils/compose-js-plugins.d.ts
|
|
14
|
+
declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
18
|
+
type AliasPluginAlias = {
|
|
19
|
+
find: string | RegExp
|
|
20
|
+
replacement: string
|
|
21
|
+
};
|
|
22
|
+
type AliasPluginConfig = {
|
|
23
|
+
entries: AliasPluginAlias[]
|
|
24
|
+
};
|
|
25
|
+
declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
29
|
+
/**
|
|
30
|
+
* Replaces targeted strings in files while bundling.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* // Basic usage
|
|
34
|
+
* ```js
|
|
35
|
+
* replacePlugin({
|
|
36
|
+
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
37
|
+
* __buildDate__: () => JSON.stringify(new Date()),
|
|
38
|
+
* __buildVersion: 15
|
|
39
|
+
* })
|
|
40
|
+
* ```
|
|
41
|
+
* @example
|
|
42
|
+
* // With options
|
|
43
|
+
* ```js
|
|
44
|
+
* replacePlugin({
|
|
45
|
+
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
46
|
+
* __buildDate__: () => JSON.stringify(new Date()),
|
|
47
|
+
* __buildVersion: 15
|
|
48
|
+
* }, {
|
|
49
|
+
* preventAssignment: false,
|
|
50
|
+
* })
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
57
|
+
type TransformPattern = string | RegExp | (RegExp | string)[];
|
|
58
|
+
type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude"> & {
|
|
59
|
+
include?: TransformPattern
|
|
60
|
+
exclude?: TransformPattern
|
|
61
|
+
};
|
|
62
|
+
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { TransformOptions, TransformResult, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/input-options.d-Dhy0onEz.mjs";
|
|
2
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/api/experimental.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* This is an experimental API. It's behavior may change in the future.
|
|
7
|
+
*
|
|
8
|
+
* Calling this API will only execute the scan stage of rolldown.
|
|
9
|
+
*/
|
|
10
|
+
declare const experimental_scan: (input: InputOptions) => Promise<void>;
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/utils/compose-js-plugins.d.ts
|
|
14
|
+
declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
18
|
+
type AliasPluginAlias = {
|
|
19
|
+
find: string | RegExp
|
|
20
|
+
replacement: string
|
|
21
|
+
};
|
|
22
|
+
type AliasPluginConfig = {
|
|
23
|
+
entries: AliasPluginAlias[]
|
|
24
|
+
};
|
|
25
|
+
declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
29
|
+
/**
|
|
30
|
+
* Replaces targeted strings in files while bundling.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* // Basic usage
|
|
34
|
+
* ```js
|
|
35
|
+
* replacePlugin({
|
|
36
|
+
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
37
|
+
* __buildDate__: () => JSON.stringify(new Date()),
|
|
38
|
+
* __buildVersion: 15
|
|
39
|
+
* })
|
|
40
|
+
* ```
|
|
41
|
+
* @example
|
|
42
|
+
* // With options
|
|
43
|
+
* ```js
|
|
44
|
+
* replacePlugin({
|
|
45
|
+
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
46
|
+
* __buildDate__: () => JSON.stringify(new Date()),
|
|
47
|
+
* __buildVersion: 15
|
|
48
|
+
* }, {
|
|
49
|
+
* preventAssignment: false,
|
|
50
|
+
* })
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
57
|
+
type TransformPattern = string | RegExp | (RegExp | string)[];
|
|
58
|
+
type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude"> & {
|
|
59
|
+
include?: TransformPattern
|
|
60
|
+
exclude?: TransformPattern
|
|
61
|
+
};
|
|
62
|
+
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { TransformOptions, TransformResult, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-BL95s43J.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-B5HMwEw9.mjs";
|
|
3
3
|
import { moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_src = require('./shared/src-C47ObUwZ.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-lAAkaDQi.cjs');
|
|
3
3
|
|
|
4
4
|
exports.VERSION = require_src.VERSION
|
|
5
5
|
exports.build = require_src.build
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-DuEVbue0.cjs";
|
|
2
|
+
|
|
3
|
+
export { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch, withFilter$1 as withFilter } from "./shared/input-options.d-Dhy0onEz.mjs";
|
|
2
|
+
|
|
3
|
+
export { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-BL95s43J.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-B5HMwEw9.mjs";
|
|
3
3
|
|
|
4
4
|
init_src();
|
|
5
5
|
export { VERSION, build, defineConfig, rolldown, watch, withFilter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_chunk = require('./shared/chunk-
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
+
const require_src = require('./shared/src-C47ObUwZ.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-lAAkaDQi.cjs');
|
|
4
4
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __commonJS } from "./shared/chunk-
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-BL95s43J.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-B5HMwEw9.mjs";
|
|
4
4
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MaybePromise, Plugin } from "./shared/input-options.d-DuEVbue0.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
|
+
type ParallelPluginImplementation = Plugin;
|
|
5
|
+
type Context = {
|
|
6
|
+
/**
|
|
7
|
+
* Thread number
|
|
8
|
+
*/
|
|
9
|
+
threadNumber: number
|
|
10
|
+
};
|
|
11
|
+
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MaybePromise, Plugin } from "./shared/input-options.d-Dhy0onEz.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
|
+
type ParallelPluginImplementation = Plugin;
|
|
5
|
+
type Context = {
|
|
6
|
+
/**
|
|
7
|
+
* Thread number
|
|
8
|
+
*/
|
|
9
|
+
threadNumber: number
|
|
10
|
+
};
|
|
11
|
+
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
package/dist/parallel-plugin.mjs
CHANGED
package/dist/parse-ast-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
1
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-lAAkaDQi.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync
|