rolldown 1.0.0-beta.3-commit.558ea78 → 1.0.0-beta.3-commit.a884059
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 -2
- package/dist/cjs/experimental-index.cjs +2 -2
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/parallel-plugin-worker.cjs +2 -2
- package/dist/cjs/parse-ast-index.cjs +1 -1
- package/dist/esm/cli.mjs +2 -2
- package/dist/esm/experimental-index.mjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/parallel-plugin-worker.mjs +2 -2
- package/dist/esm/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding-_xN4hdfO.mjs → binding-CFTx0Fs7.mjs} +3 -3
- package/dist/shared/{binding-B9_Bsc0_.cjs → binding-DTKqYZn-.cjs} +3 -3
- package/dist/shared/{src-Z84gVvFu.cjs → src-D-rrDhV8.cjs} +26 -9
- package/dist/shared/{src-Cis0qYEg.mjs → src-dToDVYqD.mjs} +26 -9
- package/dist/types/binding.d.ts +7 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/plugin/index.d.ts +1 -0
- package/package.json +19 -19
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_binding = require('../shared/binding-
|
|
3
|
+
const require_src = require('../shared/src-D-rrDhV8.cjs');
|
|
4
|
+
const require_binding = require('../shared/binding-DTKqYZn-.cjs');
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_binding = require('../shared/binding-
|
|
3
|
+
const require_src = require('../shared/src-D-rrDhV8.cjs');
|
|
4
|
+
const require_binding = require('../shared/binding-DTKqYZn-.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
|
|
7
7
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('../shared/src-
|
|
2
|
-
require('../shared/binding-
|
|
1
|
+
const require_src = require('../shared/src-D-rrDhV8.cjs');
|
|
2
|
+
require('../shared/binding-DTKqYZn-.cjs');
|
|
3
3
|
|
|
4
4
|
exports.VERSION = require_src.VERSION
|
|
5
5
|
exports.build = require_src.build
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_binding = require('../shared/binding-
|
|
3
|
+
const require_src = require('../shared/src-D-rrDhV8.cjs');
|
|
4
|
+
const require_binding = require('../shared/binding-DTKqYZn-.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { colors } from "../shared/binding-
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-
|
|
1
|
+
import { colors } from "../shared/binding-CFTx0Fs7.mjs";
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-dToDVYqD.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { import_binding } from "../shared/binding-
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/binding-CFTx0Fs7.mjs";
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-dToDVYqD.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
|
-
import "../shared/binding-
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
1
|
+
import "../shared/binding-CFTx0Fs7.mjs";
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-dToDVYqD.mjs";
|
|
3
3
|
|
|
4
4
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { import_binding } from "../shared/binding-
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/binding-CFTx0Fs7.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-dToDVYqD.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { error, getCodeFrame, import_binding, locate, logParseError } from "../shared/binding-
|
|
1
|
+
import { error, getCodeFrame, import_binding, locate, logParseError } from "../shared/binding-CFTx0Fs7.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, sourceText) {
|
|
@@ -279,8 +279,8 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
//#endregion
|
|
282
|
-
//#region src/binding.
|
|
283
|
-
var require_binding = __commonJS({ "src/binding.
|
|
282
|
+
//#region src/binding.js
|
|
283
|
+
var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
284
284
|
const { createRequire: createRequire$1 } = __require("node:module");
|
|
285
285
|
const { readFileSync } = __require("node:fs");
|
|
286
286
|
let nativeBinding = null;
|
|
@@ -604,7 +604,7 @@ var require_binding = __commonJS({ "src/binding.cjs"(exports, module) {
|
|
|
604
604
|
module.exports.Severity = nativeBinding.Severity;
|
|
605
605
|
module.exports.transform = nativeBinding.transform;
|
|
606
606
|
} });
|
|
607
|
-
var import_binding = __toESM(require_binding()
|
|
607
|
+
var import_binding = __toESM(require_binding());
|
|
608
608
|
|
|
609
609
|
//#endregion
|
|
610
610
|
export { augmentCodeLocation, colors, error, getCodeFrame, import_binding, locate, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logParseError, logPluginError };
|
|
@@ -252,8 +252,8 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
//#endregion
|
|
255
|
-
//#region src/binding.
|
|
256
|
-
var require_binding = require_chunk.__commonJS({ "src/binding.
|
|
255
|
+
//#region src/binding.js
|
|
256
|
+
var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, module) {
|
|
257
257
|
const { createRequire } = require("node:module");
|
|
258
258
|
require = createRequire(__filename);
|
|
259
259
|
const { readFileSync } = require("node:fs");
|
|
@@ -578,7 +578,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.cjs"(exports, modu
|
|
|
578
578
|
module.exports.Severity = nativeBinding.Severity;
|
|
579
579
|
module.exports.transform = nativeBinding.transform;
|
|
580
580
|
} });
|
|
581
|
-
var import_binding = require_chunk.__toESM(require_binding()
|
|
581
|
+
var import_binding = require_chunk.__toESM(require_binding());
|
|
582
582
|
|
|
583
583
|
//#endregion
|
|
584
584
|
Object.defineProperty(exports, 'augmentCodeLocation', {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_binding = require('./binding-
|
|
3
|
+
const require_binding = require('./binding-DTKqYZn-.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_buffer = require_chunk.__toESM(require("node:buffer"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -759,7 +759,8 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
759
759
|
if (moduleInfo && moduleInfo.code !== null) return moduleInfo;
|
|
760
760
|
const rawOptions = {
|
|
761
761
|
meta: options.meta || {},
|
|
762
|
-
moduleSideEffects: options.moduleSideEffects || null
|
|
762
|
+
moduleSideEffects: options.moduleSideEffects || null,
|
|
763
|
+
invalidate: false
|
|
763
764
|
};
|
|
764
765
|
this.data.updateModuleOption(id, rawOptions);
|
|
765
766
|
async function createLoadModulePromise(context, data) {
|
|
@@ -980,7 +981,8 @@ function bindingifyResolveId(args) {
|
|
|
980
981
|
if (typeof ret === "string") return { id: ret };
|
|
981
982
|
let exist = args.pluginContextData.updateModuleOption(ret.id, {
|
|
982
983
|
meta: ret.meta || {},
|
|
983
|
-
moduleSideEffects: ret.moduleSideEffects ?? null
|
|
984
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
985
|
+
invalidate: false
|
|
984
986
|
});
|
|
985
987
|
return {
|
|
986
988
|
id: ret.id,
|
|
@@ -1012,7 +1014,8 @@ function bindingifyResolveDynamicImport(args) {
|
|
|
1012
1014
|
if (ret.moduleSideEffects !== null) result.sideEffects = bindingifySideEffects(ret.moduleSideEffects);
|
|
1013
1015
|
args.pluginContextData.updateModuleOption(ret.id, {
|
|
1014
1016
|
meta: ret.meta || {},
|
|
1015
|
-
moduleSideEffects: ret.moduleSideEffects || null
|
|
1017
|
+
moduleSideEffects: ret.moduleSideEffects || null,
|
|
1018
|
+
invalidate: false
|
|
1016
1019
|
});
|
|
1017
1020
|
return result;
|
|
1018
1021
|
},
|
|
@@ -1030,7 +1033,8 @@ function bindingifyTransform(args) {
|
|
|
1030
1033
|
if (typeof ret === "string") return { code: ret };
|
|
1031
1034
|
let moduleOption = args.pluginContextData.updateModuleOption(id, {
|
|
1032
1035
|
meta: ret.meta ?? {},
|
|
1033
|
-
moduleSideEffects: ret.moduleSideEffects ?? null
|
|
1036
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
1037
|
+
invalidate: false
|
|
1034
1038
|
});
|
|
1035
1039
|
return {
|
|
1036
1040
|
code: ret.code,
|
|
@@ -1054,7 +1058,8 @@ function bindingifyLoad(args) {
|
|
|
1054
1058
|
if (typeof ret === "string") return { code: ret };
|
|
1055
1059
|
let moduleOption = args.pluginContextData.updateModuleOption(id, {
|
|
1056
1060
|
meta: ret.meta || {},
|
|
1057
|
-
moduleSideEffects: ret.moduleSideEffects ?? null
|
|
1061
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
1062
|
+
invalidate: false
|
|
1058
1063
|
});
|
|
1059
1064
|
let map = preProcessSourceMap(ret, id);
|
|
1060
1065
|
return {
|
|
@@ -1488,6 +1493,7 @@ var PluginContextData = class {
|
|
|
1488
1493
|
if (existing) {
|
|
1489
1494
|
if (option.moduleSideEffects != null) existing.moduleSideEffects = option.moduleSideEffects;
|
|
1490
1495
|
if (option.meta != null) Object.assign(existing.meta, option.meta);
|
|
1496
|
+
if (option.invalidate != null) existing.invalidate = option.invalidate;
|
|
1491
1497
|
} else {
|
|
1492
1498
|
this.moduleOptionMap.set(id, option);
|
|
1493
1499
|
return option;
|
|
@@ -1523,7 +1529,8 @@ var PluginContextData = class {
|
|
|
1523
1529
|
set: (v) => {
|
|
1524
1530
|
this.updateModuleOption(id, {
|
|
1525
1531
|
moduleSideEffects: v,
|
|
1526
|
-
meta: info.meta
|
|
1532
|
+
meta: info.meta,
|
|
1533
|
+
invalidate: true
|
|
1527
1534
|
});
|
|
1528
1535
|
moduleSideEffects = v;
|
|
1529
1536
|
}
|
|
@@ -1590,7 +1597,17 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, onLog,
|
|
|
1590
1597
|
watch: bindingifyWatch(inputOptions.watch),
|
|
1591
1598
|
dropLabels: inputOptions.dropLabels,
|
|
1592
1599
|
keepNames: inputOptions.keepNames,
|
|
1593
|
-
checks: inputOptions.checks
|
|
1600
|
+
checks: inputOptions.checks,
|
|
1601
|
+
deferSyncScanData: () => {
|
|
1602
|
+
let ret = [];
|
|
1603
|
+
pluginContextData.moduleOptionMap.forEach((value, key) => {
|
|
1604
|
+
if (value.invalidate) ret.push({
|
|
1605
|
+
id: key,
|
|
1606
|
+
sideEffects: bindingifySideEffects(value.moduleSideEffects)
|
|
1607
|
+
});
|
|
1608
|
+
});
|
|
1609
|
+
return ret;
|
|
1610
|
+
}
|
|
1594
1611
|
};
|
|
1595
1612
|
}
|
|
1596
1613
|
function bindingifyExternal(external) {
|
|
@@ -2667,7 +2684,7 @@ const watch = (input) => {
|
|
|
2667
2684
|
|
|
2668
2685
|
//#endregion
|
|
2669
2686
|
//#region package.json
|
|
2670
|
-
var version = "1.0.0-beta.3-commit.
|
|
2687
|
+
var version = "1.0.0-beta.3-commit.a884059";
|
|
2671
2688
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2672
2689
|
|
|
2673
2690
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError } from "./binding-
|
|
1
|
+
import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError } from "./binding-CFTx0Fs7.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
import { Worker } from "node:worker_threads";
|
|
@@ -757,7 +757,8 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
757
757
|
if (moduleInfo && moduleInfo.code !== null) return moduleInfo;
|
|
758
758
|
const rawOptions = {
|
|
759
759
|
meta: options.meta || {},
|
|
760
|
-
moduleSideEffects: options.moduleSideEffects || null
|
|
760
|
+
moduleSideEffects: options.moduleSideEffects || null,
|
|
761
|
+
invalidate: false
|
|
761
762
|
};
|
|
762
763
|
this.data.updateModuleOption(id, rawOptions);
|
|
763
764
|
async function createLoadModulePromise(context, data) {
|
|
@@ -978,7 +979,8 @@ function bindingifyResolveId(args) {
|
|
|
978
979
|
if (typeof ret === "string") return { id: ret };
|
|
979
980
|
let exist = args.pluginContextData.updateModuleOption(ret.id, {
|
|
980
981
|
meta: ret.meta || {},
|
|
981
|
-
moduleSideEffects: ret.moduleSideEffects ?? null
|
|
982
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
983
|
+
invalidate: false
|
|
982
984
|
});
|
|
983
985
|
return {
|
|
984
986
|
id: ret.id,
|
|
@@ -1010,7 +1012,8 @@ function bindingifyResolveDynamicImport(args) {
|
|
|
1010
1012
|
if (ret.moduleSideEffects !== null) result.sideEffects = bindingifySideEffects(ret.moduleSideEffects);
|
|
1011
1013
|
args.pluginContextData.updateModuleOption(ret.id, {
|
|
1012
1014
|
meta: ret.meta || {},
|
|
1013
|
-
moduleSideEffects: ret.moduleSideEffects || null
|
|
1015
|
+
moduleSideEffects: ret.moduleSideEffects || null,
|
|
1016
|
+
invalidate: false
|
|
1014
1017
|
});
|
|
1015
1018
|
return result;
|
|
1016
1019
|
},
|
|
@@ -1028,7 +1031,8 @@ function bindingifyTransform(args) {
|
|
|
1028
1031
|
if (typeof ret === "string") return { code: ret };
|
|
1029
1032
|
let moduleOption = args.pluginContextData.updateModuleOption(id, {
|
|
1030
1033
|
meta: ret.meta ?? {},
|
|
1031
|
-
moduleSideEffects: ret.moduleSideEffects ?? null
|
|
1034
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
1035
|
+
invalidate: false
|
|
1032
1036
|
});
|
|
1033
1037
|
return {
|
|
1034
1038
|
code: ret.code,
|
|
@@ -1052,7 +1056,8 @@ function bindingifyLoad(args) {
|
|
|
1052
1056
|
if (typeof ret === "string") return { code: ret };
|
|
1053
1057
|
let moduleOption = args.pluginContextData.updateModuleOption(id, {
|
|
1054
1058
|
meta: ret.meta || {},
|
|
1055
|
-
moduleSideEffects: ret.moduleSideEffects ?? null
|
|
1059
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
1060
|
+
invalidate: false
|
|
1056
1061
|
});
|
|
1057
1062
|
let map = preProcessSourceMap(ret, id);
|
|
1058
1063
|
return {
|
|
@@ -1486,6 +1491,7 @@ var PluginContextData = class {
|
|
|
1486
1491
|
if (existing) {
|
|
1487
1492
|
if (option.moduleSideEffects != null) existing.moduleSideEffects = option.moduleSideEffects;
|
|
1488
1493
|
if (option.meta != null) Object.assign(existing.meta, option.meta);
|
|
1494
|
+
if (option.invalidate != null) existing.invalidate = option.invalidate;
|
|
1489
1495
|
} else {
|
|
1490
1496
|
this.moduleOptionMap.set(id, option);
|
|
1491
1497
|
return option;
|
|
@@ -1521,7 +1527,8 @@ var PluginContextData = class {
|
|
|
1521
1527
|
set: (v$1) => {
|
|
1522
1528
|
this.updateModuleOption(id, {
|
|
1523
1529
|
moduleSideEffects: v$1,
|
|
1524
|
-
meta: info.meta
|
|
1530
|
+
meta: info.meta,
|
|
1531
|
+
invalidate: true
|
|
1525
1532
|
});
|
|
1526
1533
|
moduleSideEffects = v$1;
|
|
1527
1534
|
}
|
|
@@ -1588,7 +1595,17 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, onLog,
|
|
|
1588
1595
|
watch: bindingifyWatch(inputOptions.watch),
|
|
1589
1596
|
dropLabels: inputOptions.dropLabels,
|
|
1590
1597
|
keepNames: inputOptions.keepNames,
|
|
1591
|
-
checks: inputOptions.checks
|
|
1598
|
+
checks: inputOptions.checks,
|
|
1599
|
+
deferSyncScanData: () => {
|
|
1600
|
+
let ret = [];
|
|
1601
|
+
pluginContextData.moduleOptionMap.forEach((value, key) => {
|
|
1602
|
+
if (value.invalidate) ret.push({
|
|
1603
|
+
id: key,
|
|
1604
|
+
sideEffects: bindingifySideEffects(value.moduleSideEffects)
|
|
1605
|
+
});
|
|
1606
|
+
});
|
|
1607
|
+
return ret;
|
|
1608
|
+
}
|
|
1592
1609
|
};
|
|
1593
1610
|
}
|
|
1594
1611
|
function bindingifyExternal(external) {
|
|
@@ -2665,7 +2682,7 @@ const watch = (input) => {
|
|
|
2665
2682
|
|
|
2666
2683
|
//#endregion
|
|
2667
2684
|
//#region package.json
|
|
2668
|
-
var version = "1.0.0-beta.3-commit.
|
|
2685
|
+
var version = "1.0.0-beta.3-commit.a884059";
|
|
2669
2686
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2670
2687
|
|
|
2671
2688
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -287,6 +287,12 @@ export interface BindingChecksOptions {
|
|
|
287
287
|
circularDependency?: boolean
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
+
export interface BindingDeferSyncScanData {
|
|
291
|
+
/** ModuleId */
|
|
292
|
+
id: string
|
|
293
|
+
sideEffects?: BindingHookSideEffects
|
|
294
|
+
}
|
|
295
|
+
|
|
290
296
|
export interface BindingEmittedAsset {
|
|
291
297
|
name?: string
|
|
292
298
|
fileName?: string
|
|
@@ -411,6 +417,7 @@ export interface BindingInputOptions {
|
|
|
411
417
|
watch?: BindingWatchOption
|
|
412
418
|
keepNames?: boolean
|
|
413
419
|
checks?: BindingChecksOptions
|
|
420
|
+
deferSyncScanData?: undefined | (() => BindingDeferSyncScanData[])
|
|
414
421
|
}
|
|
415
422
|
|
|
416
423
|
export interface BindingJsonPluginConfig {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { InputOptions, InputOption, ExternalOption, JsxOptions } from './op
|
|
|
3
3
|
import type { ModuleFormat, OutputOptions, PreRenderedAsset } from './options/output-options';
|
|
4
4
|
import type { RolldownOptions } from './types/rolldown-options';
|
|
5
5
|
import type { AsyncPluginHooks, CustomPluginOptions, FunctionPluginHooks, ImportKind, LoadResult, ModuleOptions, ModuleType, ObjectHook, ParallelPluginHooks, PartialResolvedId, Plugin, RolldownPlugin, RolldownPluginOption, ResolveIdResult, ResolvedId, SourceDescription, TransformResult } from './plugin';
|
|
6
|
+
import type { LogOrStringHandler } from './log/logging';
|
|
6
7
|
import { DefineParallelPluginResult } from './plugin/parallel-plugin';
|
|
7
8
|
import { defineConfig } from './utils/define-config';
|
|
8
9
|
import { rolldown } from './api/rolldown';
|
|
@@ -24,5 +25,5 @@ import { RolldownWatcher } from './api/watch/watch-emitter';
|
|
|
24
25
|
import { build, type BuildOptions } from './api/build';
|
|
25
26
|
export { defineConfig, rolldown, watch, build };
|
|
26
27
|
export declare const VERSION: string;
|
|
27
|
-
export type { OutputAsset, OutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, RolldownPluginOption, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, PluginContext, TransformPluginContext, ObjectHook, PreRenderedChunk, PreRenderedAsset, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, PluginContextMeta, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, RolldownWatcher, BuildOptions, RenderedChunk, };
|
|
28
|
+
export type { OutputAsset, OutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, RolldownPluginOption, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, PluginContext, TransformPluginContext, ObjectHook, PreRenderedChunk, PreRenderedAsset, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, PluginContextMeta, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, RolldownWatcher, BuildOptions, RenderedChunk, LogOrStringHandler, };
|
|
28
29
|
export type { RollupError, RollupLog, LoggingFunction, LogLevel, WarningHandlerWithDefault, } from './types/misc';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.3-commit.
|
|
3
|
+
"version": "1.0.0-beta.3-commit.a884059",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"bin": {
|
|
27
27
|
"rolldown": "./bin/cli.js"
|
|
28
28
|
},
|
|
29
|
-
"type": "module",
|
|
30
29
|
"main": "./dist/cjs/index.cjs",
|
|
31
30
|
"types": "./dist/types/index.d.ts",
|
|
32
31
|
"exports": {
|
|
@@ -123,37 +122,38 @@
|
|
|
123
122
|
"unbuild": "^3.0.0",
|
|
124
123
|
"why-is-node-running": "^3.0.0",
|
|
125
124
|
"@rolldown/testing": "0.0.1",
|
|
126
|
-
"rolldown": "1.0.0-beta.3-commit.
|
|
125
|
+
"rolldown": "1.0.0-beta.3-commit.a884059"
|
|
127
126
|
},
|
|
128
127
|
"optionalDependencies": {
|
|
129
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.
|
|
134
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.
|
|
135
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.
|
|
136
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.
|
|
137
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.
|
|
138
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.
|
|
139
|
-
"@rolldown/binding-win32-
|
|
140
|
-
"@rolldown/binding-win32-
|
|
128
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.a884059",
|
|
129
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.a884059",
|
|
130
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.a884059",
|
|
131
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.a884059",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.a884059",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.a884059",
|
|
134
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.a884059",
|
|
135
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.a884059",
|
|
136
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.a884059",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.a884059",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.a884059",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.a884059"
|
|
141
140
|
},
|
|
142
141
|
"scripts": {
|
|
143
142
|
"# Scrips for binding #": "_",
|
|
144
143
|
"artifacts": "napi artifacts --cwd ./src --package-json-path ../package.json -o=../artifacts --npm-dir ../npm",
|
|
145
|
-
"build-binding": "napi build -o=./src --manifest-path ../../crates/rolldown_binding/Cargo.toml --platform -p rolldown_binding --js binding.
|
|
144
|
+
"build-binding": "napi build -o=./src --manifest-path ../../crates/rolldown_binding/Cargo.toml --platform -p rolldown_binding --js binding.js --dts binding.d.ts --no-const-enum",
|
|
146
145
|
"build-binding:release": "pnpm build-binding --release",
|
|
147
146
|
"build-binding:wasi": "pnpm build-binding --target wasm32-wasip1-threads",
|
|
148
147
|
"build-binding:wasi:release": "pnpm build-binding --profile release-wasi --target wasm32-wasip1-threads",
|
|
149
148
|
"# Scrips for node #": "_",
|
|
150
149
|
"bak_build-node": "unbuild",
|
|
151
|
-
"build-node": "
|
|
150
|
+
"build-node": "tsx ./build.ts",
|
|
152
151
|
"build-types": "tsc -p ./tsconfig.json",
|
|
153
|
-
"build-native:debug": "run-s build-binding build-types build-node",
|
|
154
|
-
"build-native:release": "run-s build-binding:release build-types build-node",
|
|
152
|
+
"build-native:debug": "run-s build-binding build-types build-node build-types-check",
|
|
153
|
+
"build-native:release": "run-s build-binding:release build-types build-node build-types-check",
|
|
155
154
|
"build-wasi:debug": "run-s build-binding build-binding:wasi build-node",
|
|
156
155
|
"build-wasi:release": "run-s build-binding build-binding:wasi:release build-node",
|
|
156
|
+
"build-types-check": "tsc -p ./tsconfig.check.json",
|
|
157
157
|
"# Scrips for docs #": "_",
|
|
158
158
|
"extract-options-doc": "typedoc"
|
|
159
159
|
}
|