rolldown 1.0.0-beta.4-commit.251e281 → 1.0.0-beta.4-commit.2b0f20f
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/cjs/cli.cjs +2 -1
- package/dist/cjs/experimental-index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/parallel-plugin-worker.cjs +1 -1
- package/dist/esm/cli.mjs +2 -1
- package/dist/esm/experimental-index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/{src-ClOrJJEc.cjs → src-CqqgWgwO.cjs} +36 -8
- package/dist/shared/{src-Bp4ucDPp.mjs → src-DKUMMSNY.mjs} +36 -8
- package/dist/types/binding.d.ts +15 -0
- package/dist/types/options/generated/checks-options.d.ts +12 -0
- package/dist/types/options/input-options.d.ts +3 -7
- package/dist/types/plugin/index.d.ts +2 -2
- package/package.json +17 -17
package/dist/cjs/cli.cjs
CHANGED
|
@@ -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-CqqgWgwO.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-Dh_sWnMa.cjs');
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
@@ -1745,6 +1745,7 @@ async function main() {
|
|
|
1745
1745
|
showHelp();
|
|
1746
1746
|
}
|
|
1747
1747
|
main().catch((err) => {
|
|
1748
|
+
if (err instanceof Error && typeof err.stack === "string") err.stack = err.stack.replace(err.message, "");
|
|
1748
1749
|
logger.error(err);
|
|
1749
1750
|
node_process.default.exit(1);
|
|
1750
1751
|
});
|
|
@@ -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-CqqgWgwO.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-Dh_sWnMa.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -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-CqqgWgwO.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-Dh_sWnMa.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colors } from "../shared/parse-ast-index-DIxeQDpE.mjs";
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-DKUMMSNY.mjs";
|
|
3
3
|
import process$1, { cwd } from "node:process";
|
|
4
4
|
import path, { sep } from "node:path";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -1741,6 +1741,7 @@ async function main() {
|
|
|
1741
1741
|
showHelp();
|
|
1742
1742
|
}
|
|
1743
1743
|
main().catch((err) => {
|
|
1744
|
+
if (err instanceof Error && typeof err.stack === "string") err.stack = err.stack.replace(err.message, "");
|
|
1744
1745
|
logger.error(err);
|
|
1745
1746
|
process$1.exit(1);
|
|
1746
1747
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { import_binding } from "../shared/parse-ast-index-DIxeQDpE.mjs";
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-DKUMMSNY.mjs";
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../shared/parse-ast-index-DIxeQDpE.mjs";
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-DKUMMSNY.mjs";
|
|
3
3
|
|
|
4
4
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { import_binding } from "../shared/parse-ast-index-DIxeQDpE.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-DKUMMSNY.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -504,7 +504,18 @@ const WatchOptionsSchema = valibot.strictObject({
|
|
|
504
504
|
skipWrite: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Skip the bundle.write() step")),
|
|
505
505
|
buildDelay: valibot.pipe(valibot.optional(valibot.number()), valibot.description("Throttle watch rebuilds"))
|
|
506
506
|
});
|
|
507
|
-
const ChecksOptionsSchema = valibot.strictObject({
|
|
507
|
+
const ChecksOptionsSchema = valibot.strictObject({
|
|
508
|
+
circularDependency: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
509
|
+
eval: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
510
|
+
missingGlobalName: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
511
|
+
missingNameOptionForIifeExport: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
512
|
+
mixedExport: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
513
|
+
unresolvedEntry: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
514
|
+
unresolvedImport: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
515
|
+
filenameConflict: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
516
|
+
commonJsVariableInEsm: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
517
|
+
importIsUndefined: valibot.pipe(valibot.optional(valibot.boolean()))
|
|
518
|
+
});
|
|
508
519
|
const MinifyOptionsSchema = valibot.strictObject({
|
|
509
520
|
mangle: valibot.boolean(),
|
|
510
521
|
compress: valibot.boolean(),
|
|
@@ -803,11 +814,12 @@ function normalizeErrors(rawErrors) {
|
|
|
803
814
|
}));
|
|
804
815
|
let summary = `Build failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
805
816
|
for (let i = 0; i < errors.length; i++) {
|
|
817
|
+
summary += "\n";
|
|
806
818
|
if (i >= 5) {
|
|
807
|
-
summary += "
|
|
819
|
+
summary += "...";
|
|
808
820
|
break;
|
|
809
821
|
}
|
|
810
|
-
summary += getErrorMessage(errors[i])
|
|
822
|
+
summary += getErrorMessage(errors[i]);
|
|
811
823
|
}
|
|
812
824
|
const wrapper = new Error(summary);
|
|
813
825
|
Object.defineProperty(wrapper, "errors", {
|
|
@@ -1119,7 +1131,8 @@ function bindingifySideEffects(sideEffects) {
|
|
|
1119
1131
|
function transformResolvedExternal(bindingResolvedExternal$1) {
|
|
1120
1132
|
switch (bindingResolvedExternal$1.type) {
|
|
1121
1133
|
case "Bool": return bindingResolvedExternal$1.field0;
|
|
1122
|
-
|
|
1134
|
+
case "Absolute": return "absolute";
|
|
1135
|
+
case "Relative": unreachable(`The PluginContext resolve result external couldn't be 'relative'`);
|
|
1123
1136
|
}
|
|
1124
1137
|
}
|
|
1125
1138
|
function bindingResolvedExternal(external) {
|
|
@@ -1127,6 +1140,8 @@ function bindingResolvedExternal(external) {
|
|
|
1127
1140
|
type: "Bool",
|
|
1128
1141
|
field0: external
|
|
1129
1142
|
};
|
|
1143
|
+
if (external === "absolute") return { type: "Absolute" };
|
|
1144
|
+
if (external === "relative") return { type: "Relative" };
|
|
1130
1145
|
}
|
|
1131
1146
|
|
|
1132
1147
|
//#endregion
|
|
@@ -1361,9 +1376,13 @@ function bindingifyResolveId(args) {
|
|
|
1361
1376
|
if (ret == null) return;
|
|
1362
1377
|
if (ret === false) return {
|
|
1363
1378
|
id: specifier,
|
|
1364
|
-
external: bindingResolvedExternal(true)
|
|
1379
|
+
external: bindingResolvedExternal(true),
|
|
1380
|
+
normalizeExternalId: true
|
|
1381
|
+
};
|
|
1382
|
+
if (typeof ret === "string") return {
|
|
1383
|
+
id: ret,
|
|
1384
|
+
normalizeExternalId: true
|
|
1365
1385
|
};
|
|
1366
|
-
if (typeof ret === "string") return { id: ret };
|
|
1367
1386
|
let exist = args.pluginContextData.updateModuleOption(ret.id, {
|
|
1368
1387
|
meta: ret.meta || {},
|
|
1369
1388
|
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
@@ -1372,6 +1391,7 @@ function bindingifyResolveId(args) {
|
|
|
1372
1391
|
return {
|
|
1373
1392
|
id: ret.id,
|
|
1374
1393
|
external: bindingResolvedExternal(ret.external),
|
|
1394
|
+
normalizeExternalId: false,
|
|
1375
1395
|
sideEffects: bindingifySideEffects(exist.moduleSideEffects)
|
|
1376
1396
|
};
|
|
1377
1397
|
},
|
|
@@ -2079,7 +2099,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
2079
2099
|
});
|
|
2080
2100
|
});
|
|
2081
2101
|
return ret;
|
|
2082
|
-
}
|
|
2102
|
+
},
|
|
2103
|
+
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative)
|
|
2083
2104
|
};
|
|
2084
2105
|
}
|
|
2085
2106
|
function bindingifyExternal(external) {
|
|
@@ -2205,6 +2226,13 @@ function bindingifyTreeshakeOptions(config) {
|
|
|
2205
2226
|
else normalizedConfig.moduleSideEffects = config.moduleSideEffects;
|
|
2206
2227
|
return normalizedConfig;
|
|
2207
2228
|
}
|
|
2229
|
+
function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative) {
|
|
2230
|
+
if (makeAbsoluteExternalsRelative === "ifRelativeSource") return { type: "IfRelativeSource" };
|
|
2231
|
+
if (typeof makeAbsoluteExternalsRelative === "boolean") return {
|
|
2232
|
+
type: "Bool",
|
|
2233
|
+
field0: makeAbsoluteExternalsRelative
|
|
2234
|
+
};
|
|
2235
|
+
}
|
|
2208
2236
|
|
|
2209
2237
|
//#endregion
|
|
2210
2238
|
//#region ../../node_modules/.pnpm/remeda@2.21.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
@@ -2820,7 +2848,7 @@ const watch = (input) => {
|
|
|
2820
2848
|
|
|
2821
2849
|
//#endregion
|
|
2822
2850
|
//#region package.json
|
|
2823
|
-
var version = "1.0.0-beta.4-commit.
|
|
2851
|
+
var version = "1.0.0-beta.4-commit.2b0f20f";
|
|
2824
2852
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2825
2853
|
|
|
2826
2854
|
//#endregion
|
|
@@ -502,7 +502,18 @@ const WatchOptionsSchema = v.strictObject({
|
|
|
502
502
|
skipWrite: v.pipe(v.optional(v.boolean()), v.description("Skip the bundle.write() step")),
|
|
503
503
|
buildDelay: v.pipe(v.optional(v.number()), v.description("Throttle watch rebuilds"))
|
|
504
504
|
});
|
|
505
|
-
const ChecksOptionsSchema = v.strictObject({
|
|
505
|
+
const ChecksOptionsSchema = v.strictObject({
|
|
506
|
+
circularDependency: v.pipe(v.optional(v.boolean())),
|
|
507
|
+
eval: v.pipe(v.optional(v.boolean())),
|
|
508
|
+
missingGlobalName: v.pipe(v.optional(v.boolean())),
|
|
509
|
+
missingNameOptionForIifeExport: v.pipe(v.optional(v.boolean())),
|
|
510
|
+
mixedExport: v.pipe(v.optional(v.boolean())),
|
|
511
|
+
unresolvedEntry: v.pipe(v.optional(v.boolean())),
|
|
512
|
+
unresolvedImport: v.pipe(v.optional(v.boolean())),
|
|
513
|
+
filenameConflict: v.pipe(v.optional(v.boolean())),
|
|
514
|
+
commonJsVariableInEsm: v.pipe(v.optional(v.boolean())),
|
|
515
|
+
importIsUndefined: v.pipe(v.optional(v.boolean()))
|
|
516
|
+
});
|
|
506
517
|
const MinifyOptionsSchema = v.strictObject({
|
|
507
518
|
mangle: v.boolean(),
|
|
508
519
|
compress: v.boolean(),
|
|
@@ -801,11 +812,12 @@ function normalizeErrors(rawErrors) {
|
|
|
801
812
|
}));
|
|
802
813
|
let summary = `Build failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
803
814
|
for (let i = 0; i < errors.length; i++) {
|
|
815
|
+
summary += "\n";
|
|
804
816
|
if (i >= 5) {
|
|
805
|
-
summary += "
|
|
817
|
+
summary += "...";
|
|
806
818
|
break;
|
|
807
819
|
}
|
|
808
|
-
summary += getErrorMessage(errors[i])
|
|
820
|
+
summary += getErrorMessage(errors[i]);
|
|
809
821
|
}
|
|
810
822
|
const wrapper = new Error(summary);
|
|
811
823
|
Object.defineProperty(wrapper, "errors", {
|
|
@@ -1117,7 +1129,8 @@ function bindingifySideEffects(sideEffects) {
|
|
|
1117
1129
|
function transformResolvedExternal(bindingResolvedExternal$1) {
|
|
1118
1130
|
switch (bindingResolvedExternal$1.type) {
|
|
1119
1131
|
case "Bool": return bindingResolvedExternal$1.field0;
|
|
1120
|
-
|
|
1132
|
+
case "Absolute": return "absolute";
|
|
1133
|
+
case "Relative": unreachable(`The PluginContext resolve result external couldn't be 'relative'`);
|
|
1121
1134
|
}
|
|
1122
1135
|
}
|
|
1123
1136
|
function bindingResolvedExternal(external) {
|
|
@@ -1125,6 +1138,8 @@ function bindingResolvedExternal(external) {
|
|
|
1125
1138
|
type: "Bool",
|
|
1126
1139
|
field0: external
|
|
1127
1140
|
};
|
|
1141
|
+
if (external === "absolute") return { type: "Absolute" };
|
|
1142
|
+
if (external === "relative") return { type: "Relative" };
|
|
1128
1143
|
}
|
|
1129
1144
|
|
|
1130
1145
|
//#endregion
|
|
@@ -1359,9 +1374,13 @@ function bindingifyResolveId(args) {
|
|
|
1359
1374
|
if (ret == null) return;
|
|
1360
1375
|
if (ret === false) return {
|
|
1361
1376
|
id: specifier,
|
|
1362
|
-
external: bindingResolvedExternal(true)
|
|
1377
|
+
external: bindingResolvedExternal(true),
|
|
1378
|
+
normalizeExternalId: true
|
|
1379
|
+
};
|
|
1380
|
+
if (typeof ret === "string") return {
|
|
1381
|
+
id: ret,
|
|
1382
|
+
normalizeExternalId: true
|
|
1363
1383
|
};
|
|
1364
|
-
if (typeof ret === "string") return { id: ret };
|
|
1365
1384
|
let exist = args.pluginContextData.updateModuleOption(ret.id, {
|
|
1366
1385
|
meta: ret.meta || {},
|
|
1367
1386
|
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
@@ -1370,6 +1389,7 @@ function bindingifyResolveId(args) {
|
|
|
1370
1389
|
return {
|
|
1371
1390
|
id: ret.id,
|
|
1372
1391
|
external: bindingResolvedExternal(ret.external),
|
|
1392
|
+
normalizeExternalId: false,
|
|
1373
1393
|
sideEffects: bindingifySideEffects(exist.moduleSideEffects)
|
|
1374
1394
|
};
|
|
1375
1395
|
},
|
|
@@ -2077,7 +2097,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
2077
2097
|
});
|
|
2078
2098
|
});
|
|
2079
2099
|
return ret;
|
|
2080
|
-
}
|
|
2100
|
+
},
|
|
2101
|
+
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative)
|
|
2081
2102
|
};
|
|
2082
2103
|
}
|
|
2083
2104
|
function bindingifyExternal(external) {
|
|
@@ -2203,6 +2224,13 @@ function bindingifyTreeshakeOptions(config) {
|
|
|
2203
2224
|
else normalizedConfig.moduleSideEffects = config.moduleSideEffects;
|
|
2204
2225
|
return normalizedConfig;
|
|
2205
2226
|
}
|
|
2227
|
+
function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative) {
|
|
2228
|
+
if (makeAbsoluteExternalsRelative === "ifRelativeSource") return { type: "IfRelativeSource" };
|
|
2229
|
+
if (typeof makeAbsoluteExternalsRelative === "boolean") return {
|
|
2230
|
+
type: "Bool",
|
|
2231
|
+
field0: makeAbsoluteExternalsRelative
|
|
2232
|
+
};
|
|
2233
|
+
}
|
|
2206
2234
|
|
|
2207
2235
|
//#endregion
|
|
2208
2236
|
//#region ../../node_modules/.pnpm/remeda@2.21.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
@@ -2818,7 +2846,7 @@ const watch = (input) => {
|
|
|
2818
2846
|
|
|
2819
2847
|
//#endregion
|
|
2820
2848
|
//#region package.json
|
|
2821
|
-
var version = "1.0.0-beta.4-commit.
|
|
2849
|
+
var version = "1.0.0-beta.4-commit.2b0f20f";
|
|
2822
2850
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2823
2851
|
|
|
2824
2852
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -246,6 +246,15 @@ export interface BindingBundlerOptions {
|
|
|
246
246
|
|
|
247
247
|
export interface BindingChecksOptions {
|
|
248
248
|
circularDependency?: boolean
|
|
249
|
+
eval?: boolean
|
|
250
|
+
missingGlobalName?: boolean
|
|
251
|
+
missingNameOptionForIifeExport?: boolean
|
|
252
|
+
mixedExport?: boolean
|
|
253
|
+
unresolvedEntry?: boolean
|
|
254
|
+
unresolvedImport?: boolean
|
|
255
|
+
filenameConflict?: boolean
|
|
256
|
+
commonJsVariableInEsm?: boolean
|
|
257
|
+
importIsUndefined?: boolean
|
|
249
258
|
}
|
|
250
259
|
|
|
251
260
|
export interface BindingDeferSyncScanData {
|
|
@@ -323,6 +332,7 @@ export interface BindingHookResolveIdExtraArgs {
|
|
|
323
332
|
export interface BindingHookResolveIdOutput {
|
|
324
333
|
id: string
|
|
325
334
|
external?: BindingResolvedExternal
|
|
335
|
+
normalizeExternalId?: boolean
|
|
326
336
|
sideEffects?: BindingHookSideEffects
|
|
327
337
|
}
|
|
328
338
|
|
|
@@ -380,6 +390,7 @@ export interface BindingInputOptions {
|
|
|
380
390
|
keepNames?: boolean
|
|
381
391
|
checks?: BindingChecksOptions
|
|
382
392
|
deferSyncScanData?: undefined | (() => BindingDeferSyncScanData[])
|
|
393
|
+
makeAbsoluteExternalsRelative?: BindingMakeAbsoluteExternalsRelative
|
|
383
394
|
}
|
|
384
395
|
|
|
385
396
|
export interface BindingJsonPluginConfig {
|
|
@@ -428,6 +439,10 @@ export declare enum BindingLogLevel {
|
|
|
428
439
|
Debug = 3
|
|
429
440
|
}
|
|
430
441
|
|
|
442
|
+
export type BindingMakeAbsoluteExternalsRelative =
|
|
443
|
+
| { type: 'Bool', field0: boolean }
|
|
444
|
+
| { type: 'IfRelativeSource' }
|
|
445
|
+
|
|
431
446
|
export interface BindingManifestPluginConfig {
|
|
432
447
|
root: string
|
|
433
448
|
outPath: string
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ChecksOptions {
|
|
2
|
+
circularDependency?: boolean;
|
|
3
|
+
eval?: boolean;
|
|
4
|
+
missingGlobalName?: boolean;
|
|
5
|
+
missingNameOptionForIifeExport?: boolean;
|
|
6
|
+
mixedExport?: boolean;
|
|
7
|
+
unresolvedEntry?: boolean;
|
|
8
|
+
unresolvedImport?: boolean;
|
|
9
|
+
filenameConflict?: boolean;
|
|
10
|
+
commonJsVariableInEsm?: boolean;
|
|
11
|
+
importIsUndefined?: boolean;
|
|
12
|
+
}
|
|
@@ -3,6 +3,7 @@ import type { LogLevel, LogLevelOption, LogOrStringHandler, RollupLog, RollupLog
|
|
|
3
3
|
import type { NullValue, StringOrRegExp } from '../types/utils';
|
|
4
4
|
import type { TreeshakingOptions } from '../types/module-side-effects';
|
|
5
5
|
import { TransformOptions } from '../binding';
|
|
6
|
+
import type { ChecksOptions } from './generated/checks-options';
|
|
6
7
|
export type InputOption = string | string[] | Record<string, string>;
|
|
7
8
|
type OxcTransformOption = Omit<TransformOptions, 'sourceType' | 'lang' | 'cwd' | 'sourcemap' | 'jsx' | 'define' | 'inject' | 'target'>;
|
|
8
9
|
export type ExternalOption = StringOrRegExp | StringOrRegExp[] | ((id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>);
|
|
@@ -26,13 +27,7 @@ export interface WatchOptions {
|
|
|
26
27
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
27
28
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
28
29
|
}
|
|
29
|
-
export
|
|
30
|
-
/**
|
|
31
|
-
* Whether to emit warnings when detecting circular dependencies.
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
circularDependency?: boolean;
|
|
35
|
-
}
|
|
30
|
+
export type MakeAbsoluteExternalsRelative = boolean | 'ifRelativeSource';
|
|
36
31
|
export interface InputOptions {
|
|
37
32
|
input?: InputOption;
|
|
38
33
|
plugins?: RolldownPluginOption;
|
|
@@ -171,6 +166,7 @@ export interface InputOptions {
|
|
|
171
166
|
dropLabels?: string[];
|
|
172
167
|
keepNames?: boolean;
|
|
173
168
|
checks?: ChecksOptions;
|
|
169
|
+
makeAbsoluteExternalsRelative?: MakeAbsoluteExternalsRelative;
|
|
174
170
|
}
|
|
175
171
|
interface OverwriteInputOptionsForCli {
|
|
176
172
|
external?: string[];
|
|
@@ -30,11 +30,11 @@ export interface ModuleOptions {
|
|
|
30
30
|
invalidate?: boolean;
|
|
31
31
|
}
|
|
32
32
|
export interface ResolvedId extends ModuleOptions {
|
|
33
|
-
external: boolean;
|
|
33
|
+
external: boolean | 'absolute';
|
|
34
34
|
id: string;
|
|
35
35
|
}
|
|
36
36
|
export interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {
|
|
37
|
-
external?: boolean;
|
|
37
|
+
external?: boolean | 'absolute' | 'relative';
|
|
38
38
|
id: string;
|
|
39
39
|
}
|
|
40
40
|
export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.4-commit.
|
|
3
|
+
"version": "1.0.0-beta.4-commit.2b0f20f",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@oxc-project/types": "0.
|
|
87
|
+
"@oxc-project/types": "0.58.1",
|
|
88
88
|
"@valibot/to-json-schema": "1.0.0-rc.0",
|
|
89
89
|
"valibot": "1.0.0-rc.3"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@oxc-project/runtime": "0.
|
|
92
|
+
"@oxc-project/runtime": "0.58.1"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"@oxc-project/runtime": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
101
|
-
"@napi-rs/cli": "^3.0.0-alpha.
|
|
101
|
+
"@napi-rs/cli": "^3.0.0-alpha.74",
|
|
102
102
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
103
103
|
"@oxc-node/core": "^0.0.20",
|
|
104
104
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -122,21 +122,21 @@
|
|
|
122
122
|
"unbuild": "^3.0.0",
|
|
123
123
|
"why-is-node-running": "^3.0.0",
|
|
124
124
|
"@rolldown/testing": "0.0.1",
|
|
125
|
-
"rolldown": "1.0.0-beta.4-commit.
|
|
125
|
+
"rolldown": "1.0.0-beta.4-commit.2b0f20f"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-darwin-
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-linux-
|
|
132
|
-
"@rolldown/binding-linux-arm64-
|
|
133
|
-
"@rolldown/binding-
|
|
134
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.4-commit.
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-win32-
|
|
139
|
-
"@rolldown/binding-win32-
|
|
128
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.4-commit.2b0f20f",
|
|
129
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.4-commit.2b0f20f",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.4-commit.2b0f20f",
|
|
131
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.4-commit.2b0f20f",
|
|
132
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.4-commit.2b0f20f",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.4-commit.2b0f20f",
|
|
134
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.4-commit.2b0f20f",
|
|
135
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.4-commit.2b0f20f",
|
|
136
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.4-commit.2b0f20f",
|
|
137
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.4-commit.2b0f20f",
|
|
138
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.4-commit.2b0f20f",
|
|
139
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.4-commit.2b0f20f"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|