rolldown 1.0.0-beta.8-commit.8951737 → 1.0.0-beta.8-commit.d95f99e
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.cjs +11 -124
- package/dist/cli.mjs +5 -122
- package/dist/config.cjs +13 -0
- package/dist/config.d.cts +12 -0
- package/dist/config.d.mts +12 -0
- package/dist/config.mjs +12 -0
- package/dist/experimental-index.cjs +20 -20
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +1 -1
- package/dist/filter-index.cjs +1 -1
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.cjs +1 -1
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +2 -2
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/shared/{binding.d-CIezRvPc.d.cts → binding.d-Da3YoPSu.d.mts} +1 -0
- package/dist/shared/{binding.d-Dzvdb9zV.d.mts → binding.d-Dzicu1RN.d.cts} +1 -0
- package/dist/shared/{input-options.d-C_cplVCl.d.cts → define-config.d-BmvkkUSo.d.cts} +26 -24
- package/dist/shared/{input-options.d-Eu4mqqAi.d.mts → define-config.d-DtRVBBH4.d.mts} +26 -24
- package/dist/shared/load-config-CudfTGGr.mjs +124 -0
- package/dist/shared/load-config-Dh5sBh9i.cjs +126 -0
- package/dist/shared/{prompt-At99RuKY.cjs → prompt-jvA1XQOy.cjs} +1 -1
- package/dist/shared/{src-BIHbNnlT.cjs → src-DYkvXVDC.cjs} +9 -4
- package/dist/shared/{src-OpVglm5Z.mjs → src-DeSv5_2X.mjs} +10 -5
- package/package.json +19 -15
- /package/dist/shared/{prompt-AXtOIn-r.mjs → prompt-uGrwvyp0.mjs} +0 -0
package/dist/cli.cjs
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-DYkvXVDC.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
4
4
|
const require_misc = require('./shared/misc-BWx4LNta.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_load_config = require('./shared/load-config-Dh5sBh9i.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
8
|
-
const node_url = require_chunk.__toESM(require("node:url"));
|
|
9
8
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
10
9
|
const node_util = require_chunk.__toESM(require("node:util"));
|
|
11
10
|
const node_tty = require_chunk.__toESM(require("node:tty"));
|
|
12
11
|
const node_perf_hooks = require_chunk.__toESM(require("node:perf_hooks"));
|
|
13
|
-
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
14
12
|
|
|
15
13
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
16
14
|
const LogLevels = {
|
|
@@ -400,8 +398,8 @@ function createConsola$1(options$1 = {}) {
|
|
|
400
398
|
//#endregion
|
|
401
399
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs
|
|
402
400
|
function parseStack(stack, message) {
|
|
403
|
-
const cwd
|
|
404
|
-
const lines = stack.split("\n").splice(message.split("\n").length).map((l$1) => l$1.trim().replace("file://", "").replace(cwd
|
|
401
|
+
const cwd = process.cwd() + node_path.sep;
|
|
402
|
+
const lines = stack.split("\n").splice(message.split("\n").length).map((l$1) => l$1.trim().replace("file://", "").replace(cwd, ""));
|
|
405
403
|
return lines;
|
|
406
404
|
}
|
|
407
405
|
function writeStream(data, stream) {
|
|
@@ -971,7 +969,7 @@ function createConsola(options$1 = {}) {
|
|
|
971
969
|
// Terminus (<0.2.27)
|
|
972
970
|
// ConEmu and cmder
|
|
973
971
|
function() {
|
|
974
|
-
return require("./shared/prompt-
|
|
972
|
+
return require("./shared/prompt-jvA1XQOy.cjs");
|
|
975
973
|
}
|
|
976
974
|
).then((m) => m.prompt(...args)),
|
|
977
975
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
@@ -1079,8 +1077,8 @@ function flattenSchema(schema, base = {}, parent = "") {
|
|
|
1079
1077
|
}
|
|
1080
1078
|
return base;
|
|
1081
1079
|
}
|
|
1082
|
-
function setNestedProperty(obj, path$
|
|
1083
|
-
const keys = path$
|
|
1080
|
+
function setNestedProperty(obj, path$1, value) {
|
|
1081
|
+
const keys = path$1.split(".");
|
|
1084
1082
|
let current = obj;
|
|
1085
1083
|
for (let i$1 = 0; i$1 < keys.length - 1; i$1++) {
|
|
1086
1084
|
if (!current[keys[i$1]]) current[keys[i$1]] = {};
|
|
@@ -1448,117 +1446,6 @@ var SignalExit = class extends SignalExitBase {
|
|
|
1448
1446
|
const process$2 = globalThis.process;
|
|
1449
1447
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1450
1448
|
|
|
1451
|
-
//#endregion
|
|
1452
|
-
//#region src/cli/load-config.ts
|
|
1453
|
-
async function bundleTsConfig(configFile, isEsm) {
|
|
1454
|
-
const dirnameVarName = "injected_original_dirname";
|
|
1455
|
-
const filenameVarName = "injected_original_filename";
|
|
1456
|
-
const importMetaUrlVarName = "injected_original_import_meta_url";
|
|
1457
|
-
const bundle = await require_src.rolldown({
|
|
1458
|
-
input: configFile,
|
|
1459
|
-
platform: "node",
|
|
1460
|
-
resolve: { mainFields: ["main"] },
|
|
1461
|
-
define: {
|
|
1462
|
-
__dirname: dirnameVarName,
|
|
1463
|
-
__filename: filenameVarName,
|
|
1464
|
-
"import.meta.url": importMetaUrlVarName,
|
|
1465
|
-
"import.meta.dirname": dirnameVarName,
|
|
1466
|
-
"import.meta.filename": filenameVarName
|
|
1467
|
-
},
|
|
1468
|
-
treeshake: false,
|
|
1469
|
-
external: [/^[\w@][^:]/],
|
|
1470
|
-
plugins: [{
|
|
1471
|
-
name: "inject-file-scope-variables",
|
|
1472
|
-
transform: {
|
|
1473
|
-
filter: { id: /\.[cm]?[jt]s$/ },
|
|
1474
|
-
async handler(code, id) {
|
|
1475
|
-
const injectValues = `const ${dirnameVarName} = ${JSON.stringify(node_path.default.dirname(id))};const ${filenameVarName} = ${JSON.stringify(id)};const ${importMetaUrlVarName} = ${JSON.stringify((0, node_url.pathToFileURL)(id).href)};`;
|
|
1476
|
-
return {
|
|
1477
|
-
code: injectValues + code,
|
|
1478
|
-
map: null
|
|
1479
|
-
};
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
}]
|
|
1483
|
-
});
|
|
1484
|
-
const outputDir = node_path.default.dirname(configFile);
|
|
1485
|
-
const result = await bundle.write({
|
|
1486
|
-
dir: outputDir,
|
|
1487
|
-
format: isEsm ? "esm" : "cjs",
|
|
1488
|
-
sourcemap: "inline",
|
|
1489
|
-
entryFileNames: `rolldown.config.[hash]${node_path.default.extname(configFile).replace("ts", "js")}`
|
|
1490
|
-
});
|
|
1491
|
-
const fileName = result.output.find((chunk) => chunk.type === "chunk" && chunk.isEntry).fileName;
|
|
1492
|
-
return node_path.default.join(outputDir, fileName);
|
|
1493
|
-
}
|
|
1494
|
-
const SUPPORTED_JS_CONFIG_FORMATS = [
|
|
1495
|
-
".js",
|
|
1496
|
-
".mjs",
|
|
1497
|
-
".cjs"
|
|
1498
|
-
];
|
|
1499
|
-
const SUPPORTED_TS_CONFIG_FORMATS = [
|
|
1500
|
-
".ts",
|
|
1501
|
-
".mts",
|
|
1502
|
-
".cts"
|
|
1503
|
-
];
|
|
1504
|
-
const SUPPORTED_CONFIG_FORMATS = [...SUPPORTED_JS_CONFIG_FORMATS, ...SUPPORTED_TS_CONFIG_FORMATS];
|
|
1505
|
-
const DEFAULT_CONFIG_BASE = "rolldown.config";
|
|
1506
|
-
async function findConfigFileNameInCwd() {
|
|
1507
|
-
const filesInWorkingDirectory = new Set(await (0, node_fs_promises.readdir)((0, node_process.cwd)()));
|
|
1508
|
-
for (const extension of SUPPORTED_CONFIG_FORMATS) {
|
|
1509
|
-
const fileName = `${DEFAULT_CONFIG_BASE}${extension}`;
|
|
1510
|
-
if (filesInWorkingDirectory.has(fileName)) return fileName;
|
|
1511
|
-
}
|
|
1512
|
-
throw new Error("No `rolldown.config` configuration file found.");
|
|
1513
|
-
}
|
|
1514
|
-
async function loadTsConfig(configFile) {
|
|
1515
|
-
const isEsm = isFilePathESM(configFile);
|
|
1516
|
-
const file = await bundleTsConfig(configFile, isEsm);
|
|
1517
|
-
try {
|
|
1518
|
-
return (await import((0, node_url.pathToFileURL)(file).href)).default;
|
|
1519
|
-
} finally {
|
|
1520
|
-
node_fs.default.unlink(file, () => {});
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
function isFilePathESM(filePath) {
|
|
1524
|
-
if (/\.m[jt]s$/.test(filePath)) return true;
|
|
1525
|
-
else if (/\.c[jt]s$/.test(filePath)) return false;
|
|
1526
|
-
else {
|
|
1527
|
-
const pkg = findNearestPackageData(node_path.default.dirname(filePath));
|
|
1528
|
-
if (pkg) return pkg.type === "module";
|
|
1529
|
-
return false;
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
function findNearestPackageData(basedir) {
|
|
1533
|
-
while (basedir) {
|
|
1534
|
-
const pkgPath = node_path.default.join(basedir, "package.json");
|
|
1535
|
-
if (tryStatSync(pkgPath)?.isFile()) try {
|
|
1536
|
-
return JSON.parse(node_fs.default.readFileSync(pkgPath, "utf-8"));
|
|
1537
|
-
} catch {}
|
|
1538
|
-
const nextBasedir = node_path.default.dirname(basedir);
|
|
1539
|
-
if (nextBasedir === basedir) break;
|
|
1540
|
-
basedir = nextBasedir;
|
|
1541
|
-
}
|
|
1542
|
-
return null;
|
|
1543
|
-
}
|
|
1544
|
-
function tryStatSync(file) {
|
|
1545
|
-
try {
|
|
1546
|
-
return node_fs.default.statSync(file, { throwIfNoEntry: false });
|
|
1547
|
-
} catch {}
|
|
1548
|
-
}
|
|
1549
|
-
async function loadConfig(configPath) {
|
|
1550
|
-
const ext = node_path.default.extname(configPath = configPath || await findConfigFileNameInCwd());
|
|
1551
|
-
try {
|
|
1552
|
-
if (SUPPORTED_JS_CONFIG_FORMATS.includes(ext) || process.env.NODE_OPTIONS?.includes("--import=tsx") && SUPPORTED_TS_CONFIG_FORMATS.includes(ext)) return (await import((0, node_url.pathToFileURL)(configPath).href)).default;
|
|
1553
|
-
else if (SUPPORTED_TS_CONFIG_FORMATS.includes(ext)) {
|
|
1554
|
-
const rawConfigPath = node_path.default.resolve(configPath);
|
|
1555
|
-
return await loadTsConfig(rawConfigPath);
|
|
1556
|
-
} else throw new Error(`Unsupported config format. Expected: \`${SUPPORTED_CONFIG_FORMATS.join(",")}\` but got \`${ext}\``);
|
|
1557
|
-
} catch (err) {
|
|
1558
|
-
throw new Error("Error happened while loading config.", { cause: err });
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
1449
|
//#endregion
|
|
1563
1450
|
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.69.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1564
1451
|
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.69.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
@@ -1627,7 +1514,7 @@ async function bundleWithConfig(configPath, cliOptions) {
|
|
|
1627
1514
|
process.env.ROLLUP_WATCH = "true";
|
|
1628
1515
|
process.env.ROLLDOWN_WATCH = "true";
|
|
1629
1516
|
}
|
|
1630
|
-
const config = await loadConfig(configPath);
|
|
1517
|
+
const config = await require_load_config.loadConfig(configPath);
|
|
1631
1518
|
if (!config) {
|
|
1632
1519
|
logger.error(`No configuration found at ${config}`);
|
|
1633
1520
|
process.exit(1);
|
|
@@ -1784,9 +1671,9 @@ function printOutputEntries(entries, sizeAdjustment, distPath) {
|
|
|
1784
1671
|
}
|
|
1785
1672
|
}
|
|
1786
1673
|
}
|
|
1787
|
-
function withTrailingSlash(path$
|
|
1788
|
-
if (path$
|
|
1789
|
-
return path$
|
|
1674
|
+
function withTrailingSlash(path$1) {
|
|
1675
|
+
if (path$1[path$1.length - 1] !== "/") return `${path$1}/`;
|
|
1676
|
+
return path$1;
|
|
1790
1677
|
}
|
|
1791
1678
|
function ms(duration) {
|
|
1792
1679
|
return duration < 1e3 ? `${duration.toFixed(2)} ms` : `${(duration / 1e3).toFixed(2)} s`;
|
package/dist/cli.mjs
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-DeSv5_2X.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-CMF-2Ku4.mjs";
|
|
4
4
|
import { arraify, init_misc } from "./shared/misc-DGAe2XOW.mjs";
|
|
5
|
-
import
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-CudfTGGr.mjs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
8
|
-
import
|
|
9
|
-
import process$1, { cwd } from "node:process";
|
|
8
|
+
import process$1 from "node:process";
|
|
10
9
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
11
10
|
import * as tty from "node:tty";
|
|
12
11
|
import { performance } from "node:perf_hooks";
|
|
13
|
-
import { readdir } from "node:fs/promises";
|
|
14
12
|
|
|
15
13
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
16
14
|
function isPlainObject$1(value) {
|
|
@@ -761,7 +759,7 @@ function createConsola(options$1 = {}) {
|
|
|
761
759
|
defaults: { level },
|
|
762
760
|
stdout: process.stdout,
|
|
763
761
|
stderr: process.stderr,
|
|
764
|
-
prompt: (...args) => import("./shared/prompt-
|
|
762
|
+
prompt: (...args) => import("./shared/prompt-uGrwvyp0.mjs").then((m) => m.prompt(...args)),
|
|
765
763
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
766
764
|
...options$1
|
|
767
765
|
});
|
|
@@ -1449,121 +1447,6 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
|
|
|
1449
1447
|
({onExit, load, unload} = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback()));
|
|
1450
1448
|
} });
|
|
1451
1449
|
|
|
1452
|
-
//#endregion
|
|
1453
|
-
//#region src/cli/load-config.ts
|
|
1454
|
-
async function bundleTsConfig(configFile, isEsm) {
|
|
1455
|
-
const dirnameVarName = "injected_original_dirname";
|
|
1456
|
-
const filenameVarName = "injected_original_filename";
|
|
1457
|
-
const importMetaUrlVarName = "injected_original_import_meta_url";
|
|
1458
|
-
const bundle = await rolldown({
|
|
1459
|
-
input: configFile,
|
|
1460
|
-
platform: "node",
|
|
1461
|
-
resolve: { mainFields: ["main"] },
|
|
1462
|
-
define: {
|
|
1463
|
-
__dirname: dirnameVarName,
|
|
1464
|
-
__filename: filenameVarName,
|
|
1465
|
-
"import.meta.url": importMetaUrlVarName,
|
|
1466
|
-
"import.meta.dirname": dirnameVarName,
|
|
1467
|
-
"import.meta.filename": filenameVarName
|
|
1468
|
-
},
|
|
1469
|
-
treeshake: false,
|
|
1470
|
-
external: [/^[\w@][^:]/],
|
|
1471
|
-
plugins: [{
|
|
1472
|
-
name: "inject-file-scope-variables",
|
|
1473
|
-
transform: {
|
|
1474
|
-
filter: { id: /\.[cm]?[jt]s$/ },
|
|
1475
|
-
async handler(code, id) {
|
|
1476
|
-
const injectValues = `const ${dirnameVarName} = ${JSON.stringify(path.dirname(id))};const ${filenameVarName} = ${JSON.stringify(id)};const ${importMetaUrlVarName} = ${JSON.stringify(pathToFileURL(id).href)};`;
|
|
1477
|
-
return {
|
|
1478
|
-
code: injectValues + code,
|
|
1479
|
-
map: null
|
|
1480
|
-
};
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
}]
|
|
1484
|
-
});
|
|
1485
|
-
const outputDir = path.dirname(configFile);
|
|
1486
|
-
const result = await bundle.write({
|
|
1487
|
-
dir: outputDir,
|
|
1488
|
-
format: isEsm ? "esm" : "cjs",
|
|
1489
|
-
sourcemap: "inline",
|
|
1490
|
-
entryFileNames: `rolldown.config.[hash]${path.extname(configFile).replace("ts", "js")}`
|
|
1491
|
-
});
|
|
1492
|
-
const fileName = result.output.find((chunk) => chunk.type === "chunk" && chunk.isEntry).fileName;
|
|
1493
|
-
return path.join(outputDir, fileName);
|
|
1494
|
-
}
|
|
1495
|
-
async function findConfigFileNameInCwd() {
|
|
1496
|
-
const filesInWorkingDirectory = new Set(await readdir(cwd()));
|
|
1497
|
-
for (const extension of SUPPORTED_CONFIG_FORMATS) {
|
|
1498
|
-
const fileName = `${DEFAULT_CONFIG_BASE}${extension}`;
|
|
1499
|
-
if (filesInWorkingDirectory.has(fileName)) return fileName;
|
|
1500
|
-
}
|
|
1501
|
-
throw new Error("No `rolldown.config` configuration file found.");
|
|
1502
|
-
}
|
|
1503
|
-
async function loadTsConfig(configFile) {
|
|
1504
|
-
const isEsm = isFilePathESM(configFile);
|
|
1505
|
-
const file = await bundleTsConfig(configFile, isEsm);
|
|
1506
|
-
try {
|
|
1507
|
-
return (await import(pathToFileURL(file).href)).default;
|
|
1508
|
-
} finally {
|
|
1509
|
-
fs.unlink(file, () => {});
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
function isFilePathESM(filePath) {
|
|
1513
|
-
if (/\.m[jt]s$/.test(filePath)) return true;
|
|
1514
|
-
else if (/\.c[jt]s$/.test(filePath)) return false;
|
|
1515
|
-
else {
|
|
1516
|
-
const pkg = findNearestPackageData(path.dirname(filePath));
|
|
1517
|
-
if (pkg) return pkg.type === "module";
|
|
1518
|
-
return false;
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
function findNearestPackageData(basedir) {
|
|
1522
|
-
while (basedir) {
|
|
1523
|
-
const pkgPath = path.join(basedir, "package.json");
|
|
1524
|
-
if (tryStatSync(pkgPath)?.isFile()) try {
|
|
1525
|
-
return JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
|
|
1526
|
-
} catch {}
|
|
1527
|
-
const nextBasedir = path.dirname(basedir);
|
|
1528
|
-
if (nextBasedir === basedir) break;
|
|
1529
|
-
basedir = nextBasedir;
|
|
1530
|
-
}
|
|
1531
|
-
return null;
|
|
1532
|
-
}
|
|
1533
|
-
function tryStatSync(file) {
|
|
1534
|
-
try {
|
|
1535
|
-
return fs.statSync(file, { throwIfNoEntry: false });
|
|
1536
|
-
} catch {}
|
|
1537
|
-
}
|
|
1538
|
-
async function loadConfig(configPath) {
|
|
1539
|
-
const ext = path.extname(configPath = configPath || await findConfigFileNameInCwd());
|
|
1540
|
-
try {
|
|
1541
|
-
if (SUPPORTED_JS_CONFIG_FORMATS.includes(ext) || process.env.NODE_OPTIONS?.includes("--import=tsx") && SUPPORTED_TS_CONFIG_FORMATS.includes(ext)) return (await import(pathToFileURL(configPath).href)).default;
|
|
1542
|
-
else if (SUPPORTED_TS_CONFIG_FORMATS.includes(ext)) {
|
|
1543
|
-
const rawConfigPath = path.resolve(configPath);
|
|
1544
|
-
return await loadTsConfig(rawConfigPath);
|
|
1545
|
-
} else throw new Error(`Unsupported config format. Expected: \`${SUPPORTED_CONFIG_FORMATS.join(",")}\` but got \`${ext}\``);
|
|
1546
|
-
} catch (err) {
|
|
1547
|
-
throw new Error("Error happened while loading config.", { cause: err });
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
var SUPPORTED_JS_CONFIG_FORMATS, SUPPORTED_TS_CONFIG_FORMATS, SUPPORTED_CONFIG_FORMATS, DEFAULT_CONFIG_BASE;
|
|
1551
|
-
var init_load_config = __esm({ "src/cli/load-config.ts"() {
|
|
1552
|
-
init_rolldown();
|
|
1553
|
-
SUPPORTED_JS_CONFIG_FORMATS = [
|
|
1554
|
-
".js",
|
|
1555
|
-
".mjs",
|
|
1556
|
-
".cjs"
|
|
1557
|
-
];
|
|
1558
|
-
SUPPORTED_TS_CONFIG_FORMATS = [
|
|
1559
|
-
".ts",
|
|
1560
|
-
".mts",
|
|
1561
|
-
".cts"
|
|
1562
|
-
];
|
|
1563
|
-
SUPPORTED_CONFIG_FORMATS = [...SUPPORTED_JS_CONFIG_FORMATS, ...SUPPORTED_TS_CONFIG_FORMATS];
|
|
1564
|
-
DEFAULT_CONFIG_BASE = "rolldown.config";
|
|
1565
|
-
} });
|
|
1566
|
-
|
|
1567
1450
|
//#endregion
|
|
1568
1451
|
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.69.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1569
1452
|
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.69.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
@@ -1793,8 +1676,8 @@ var init_bundle = __esm({ "src/cli/commands/bundle.ts"() {
|
|
|
1793
1676
|
init_mjs();
|
|
1794
1677
|
init_rolldown();
|
|
1795
1678
|
init_watch();
|
|
1796
|
-
init_misc();
|
|
1797
1679
|
init_load_config();
|
|
1680
|
+
init_misc();
|
|
1798
1681
|
init_logger();
|
|
1799
1682
|
import_usingCtx = __toESM(require_usingCtx());
|
|
1800
1683
|
numberFormatter = new Intl.NumberFormat("en", {
|
package/dist/config.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_src = require('./shared/src-DYkvXVDC.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
4
|
+
require('./shared/misc-BWx4LNta.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-Dh5sBh9i.cjs');
|
|
6
|
+
|
|
7
|
+
//#region src/config.ts
|
|
8
|
+
const VERSION = require_src.version;
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.VERSION = VERSION;
|
|
12
|
+
exports.defineConfig = require_src.defineConfig;
|
|
13
|
+
exports.loadConfig = require_load_config.loadConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./shared/binding.d-Dzicu1RN.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-BmvkkUSo.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/load-config.d.ts
|
|
5
|
+
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/config.d.ts
|
|
9
|
+
declare const VERSION: string;
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { VERSION, defineConfig, loadConfig };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./shared/binding.d-Da3YoPSu.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-DtRVBBH4.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/load-config.d.ts
|
|
5
|
+
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/config.d.ts
|
|
9
|
+
declare const VERSION: string;
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { VERSION, defineConfig, loadConfig };
|
package/dist/config.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineConfig, init_define_config, version } from "./shared/src-DeSv5_2X.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CMF-2Ku4.mjs";
|
|
3
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-CudfTGGr.mjs";
|
|
5
|
+
|
|
6
|
+
//#region src/config.ts
|
|
7
|
+
init_define_config();
|
|
8
|
+
init_load_config();
|
|
9
|
+
const VERSION = version;
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('./shared/src-
|
|
3
|
+
const require_src = require('./shared/src-DYkvXVDC.cjs');
|
|
4
4
|
const require_parse_ast_index = require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
5
5
|
require('./shared/misc-BWx4LNta.cjs');
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -92,40 +92,40 @@ Object.defineProperty(exports, 'ResolverFactory', {
|
|
|
92
92
|
return import_binding.ResolverFactory;
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
exports.aliasPlugin = aliasPlugin
|
|
96
|
-
exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin
|
|
97
|
-
exports.composePlugins = require_src.composeJsPlugins
|
|
98
|
-
exports.defineParallelPlugin = defineParallelPlugin
|
|
99
|
-
exports.dynamicImportVarsPlugin = require_src.dynamicImportVarsPlugin
|
|
100
|
-
exports.importGlobPlugin = require_src.importGlobPlugin
|
|
95
|
+
exports.aliasPlugin = aliasPlugin;
|
|
96
|
+
exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin;
|
|
97
|
+
exports.composePlugins = require_src.composeJsPlugins;
|
|
98
|
+
exports.defineParallelPlugin = defineParallelPlugin;
|
|
99
|
+
exports.dynamicImportVarsPlugin = require_src.dynamicImportVarsPlugin;
|
|
100
|
+
exports.importGlobPlugin = require_src.importGlobPlugin;
|
|
101
101
|
Object.defineProperty(exports, 'isolatedDeclaration', {
|
|
102
102
|
enumerable: true,
|
|
103
103
|
get: function () {
|
|
104
104
|
return import_binding.isolatedDeclaration;
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
exports.isolatedDeclarationPlugin = require_src.isolatedDeclarationPlugin
|
|
108
|
-
exports.jsonPlugin = require_src.jsonPlugin
|
|
109
|
-
exports.loadFallbackPlugin = require_src.loadFallbackPlugin
|
|
110
|
-
exports.manifestPlugin = require_src.manifestPlugin
|
|
111
|
-
exports.moduleFederationPlugin = require_src.moduleFederationPlugin
|
|
112
|
-
exports.modulePreloadPolyfillPlugin = require_src.modulePreloadPolyfillPlugin
|
|
107
|
+
exports.isolatedDeclarationPlugin = require_src.isolatedDeclarationPlugin;
|
|
108
|
+
exports.jsonPlugin = require_src.jsonPlugin;
|
|
109
|
+
exports.loadFallbackPlugin = require_src.loadFallbackPlugin;
|
|
110
|
+
exports.manifestPlugin = require_src.manifestPlugin;
|
|
111
|
+
exports.moduleFederationPlugin = require_src.moduleFederationPlugin;
|
|
112
|
+
exports.modulePreloadPolyfillPlugin = require_src.modulePreloadPolyfillPlugin;
|
|
113
113
|
Object.defineProperty(exports, 'moduleRunnerTransform', {
|
|
114
114
|
enumerable: true,
|
|
115
115
|
get: function () {
|
|
116
116
|
return import_binding.moduleRunnerTransform;
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
exports.replacePlugin = replacePlugin
|
|
120
|
-
exports.reportPlugin = require_src.reportPlugin
|
|
121
|
-
exports.scan = experimental_scan
|
|
119
|
+
exports.replacePlugin = replacePlugin;
|
|
120
|
+
exports.reportPlugin = require_src.reportPlugin;
|
|
121
|
+
exports.scan = experimental_scan;
|
|
122
122
|
Object.defineProperty(exports, 'transform', {
|
|
123
123
|
enumerable: true,
|
|
124
124
|
get: function () {
|
|
125
125
|
return import_binding.transform;
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
|
-
exports.transformPlugin = transformPlugin
|
|
129
|
-
exports.viteResolvePlugin = require_src.viteResolvePlugin
|
|
130
|
-
exports.wasmFallbackPlugin = require_src.wasmFallbackPlugin
|
|
131
|
-
exports.wasmHelperPlugin = require_src.wasmHelperPlugin
|
|
128
|
+
exports.transformPlugin = transformPlugin;
|
|
129
|
+
exports.viteResolvePlugin = require_src.viteResolvePlugin;
|
|
130
|
+
exports.wasmFallbackPlugin = require_src.wasmFallbackPlugin;
|
|
131
|
+
exports.wasmHelperPlugin = require_src.wasmHelperPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-Dzicu1RN.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/define-config.d-BmvkkUSo.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
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/
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-Da3YoPSu.mjs";
|
|
2
|
+
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/define-config.d-DtRVBBH4.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
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 { 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-DeSv5_2X.mjs";
|
|
3
3
|
import { require_binding } from "./shared/parse-ast-index-CMF-2Ku4.mjs";
|
|
4
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
package/dist/filter-index.cjs
CHANGED
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { withFilter } from "./shared/
|
|
1
|
+
import "./shared/binding.d-Dzicu1RN.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-BmvkkUSo.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { withFilter } from "./shared/
|
|
1
|
+
import "./shared/binding.d-Da3YoPSu.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-DtRVBBH4.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-DYkvXVDC.cjs');
|
|
2
2
|
require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
3
3
|
require('./shared/misc-BWx4LNta.cjs');
|
|
4
4
|
|
|
5
|
-
exports.VERSION = require_src.VERSION
|
|
6
|
-
exports.build = require_src.build
|
|
7
|
-
exports.defineConfig = require_src.defineConfig
|
|
8
|
-
exports.rolldown = require_src.rolldown
|
|
9
|
-
exports.watch = require_src.watch
|
|
5
|
+
exports.VERSION = require_src.VERSION;
|
|
6
|
+
exports.build = require_src.build;
|
|
7
|
+
exports.defineConfig = require_src.defineConfig;
|
|
8
|
+
exports.rolldown = require_src.rolldown;
|
|
9
|
+
exports.watch = require_src.watch;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding.d-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding.d-Dzicu1RN.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config.d-BmvkkUSo.cjs";
|
|
3
3
|
|
|
4
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, 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, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
|
4
|
+
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, 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, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding.d-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding.d-Da3YoPSu.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-DtRVBBH4.mjs";
|
|
3
3
|
|
|
4
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, 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, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
|
4
|
+
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, 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, 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,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-DeSv5_2X.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-CMF-2Ku4.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-DYkvXVDC.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
4
4
|
require('./shared/misc-BWx4LNta.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-DeSv5_2X.mjs";
|
|
3
3
|
import { require_binding } from "./shared/parse-ast-index-CMF-2Ku4.mjs";
|
|
4
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
package/dist/parallel-plugin.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/
|
|
1
|
+
import "./shared/binding.d-Dzicu1RN.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-BmvkkUSo.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/
|
|
1
|
+
import "./shared/binding.d-Da3YoPSu.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-DtRVBBH4.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const require_parse_ast_index = require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
2
2
|
|
|
3
|
-
exports.parseAst = require_parse_ast_index.parseAst
|
|
4
|
-
exports.parseAstAsync = require_parse_ast_index.parseAstAsync
|
|
3
|
+
exports.parseAst = require_parse_ast_index.parseAst;
|
|
4
|
+
exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
|