rolldown 0.14.0-snapshot-18ee4d3-20241107003320 → 0.14.0-snapshot-beec3a9-20241107221705
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 +6 -3
- 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 +6 -3
- 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_index-5gly_SB-.cjs → src_index-__hrBC_u.cjs} +13 -8
- package/dist/shared/{src_index-p85M6ERL.mjs → src_index-p8EqHxvt.mjs} +13 -8
- package/dist/types/binding.d.ts +5 -1
- package/dist/types/cli/arguments/schema.d.ts +12 -3
- package/dist/types/options/input-options.d.ts +6 -0
- package/dist/types/options/output-options.d.ts +9 -3
- package/dist/types/types/input-options.d.ts +1 -0
- package/dist/types/types/output-options.d.ts +3 -1
- package/package.json +14 -15
- package/dist/shared/watcher-worker.js +0 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __export, __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
|
|
4
|
-
const { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, arraify, description, rolldown, version, watch } = require("../shared/src_index-
|
|
4
|
+
const { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, arraify, description, rolldown, version, watch } = require("../shared/src_index-__hrBC_u.cjs");
|
|
5
5
|
const { createConsola } = require("../shared/consola.36c0034f-HcmWcfPe.cjs");
|
|
6
6
|
const { default: nodePath, default: path } = __toESM(require("node:path"));
|
|
7
7
|
const { ZodFirstPartyTypeKind, ZodFirstPartyTypeKind: ZodFirstPartyTypeKind$1, ZodFirstPartyTypeKind: ZodFirstPartyTypeKind$2, z, z: z$1, z: z$2, z: z$3 } = __toESM(require("zod"));
|
|
@@ -1604,7 +1604,8 @@ const inputOptionsSchema = z$2.strictObject({
|
|
|
1604
1604
|
inject: (z$2.record((z$2.string()).or(z$2.tuple([z$2.string(), z$2.string()])))).optional(),
|
|
1605
1605
|
profilerNames: (z$2.boolean()).optional(),
|
|
1606
1606
|
jsx: jsxOptionsSchema.optional(),
|
|
1607
|
-
watch: (watchOptionsSchema.or(z$2.literal(false))).optional()
|
|
1607
|
+
watch: (watchOptionsSchema.or(z$2.literal(false))).optional(),
|
|
1608
|
+
dropLabels: (z$2.array(z$2.string())).optional()
|
|
1608
1609
|
});
|
|
1609
1610
|
const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
1610
1611
|
external: ((z$2.array(z$2.string())).describe("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")).optional(),
|
|
@@ -1640,9 +1641,11 @@ const outputOptionsSchema = z$1.strictObject({
|
|
|
1640
1641
|
outro: ((z$1.string()).or(addonFunctionSchema)).optional(),
|
|
1641
1642
|
extend: ((z$1.boolean()).describe("extend global variable defined by name in IIFE / UMD formats")).optional(),
|
|
1642
1643
|
esModule: ((z$1.literal("if-default-prop")).or(z$1.boolean())).optional(),
|
|
1644
|
+
assetFileNames: (z$1.string()).optional(),
|
|
1643
1645
|
entryFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
|
|
1644
1646
|
chunkFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
|
|
1645
|
-
|
|
1647
|
+
cssEntryFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
|
|
1648
|
+
cssChunkFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
|
|
1646
1649
|
minify: ((z$1.boolean()).describe("minify the bundled file.")).optional(),
|
|
1647
1650
|
name: ((z$1.string()).describe("name for UMD / IIFE format outputs")).optional(),
|
|
1648
1651
|
globals: ((z$1.record(z$1.string())).describe("global variable of UMD / IIFE dependencies (syntax: `key=value`)")).optional(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
|
|
4
|
-
const { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } = require("../shared/src_index-
|
|
4
|
+
const { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } = require("../shared/src_index-__hrBC_u.cjs");
|
|
5
5
|
const { pathToFileURL } = __toESM(require("node:url"));
|
|
6
6
|
|
|
7
7
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
const { VERSION, defineConfig, rolldown, watch } = require("../shared/src_index-
|
|
3
|
+
const { VERSION, defineConfig, rolldown, watch } = require("../shared/src_index-__hrBC_u.cjs");
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
6
|
exports.VERSION = VERSION;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
|
|
4
|
-
const { PluginContextData, bindingifyPlugin, require_binding } = require("../shared/src_index-
|
|
4
|
+
const { PluginContextData, bindingifyPlugin, require_binding } = require("../shared/src_index-__hrBC_u.cjs");
|
|
5
5
|
const { parentPort, workerData } = __toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, __export, arraify, description, rolldown, version, watch } from "../shared/src_index-
|
|
3
|
+
import { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, __export, arraify, description, rolldown, version, watch } from "../shared/src_index-p8EqHxvt.mjs";
|
|
4
4
|
import { createConsola } from "../shared/consola.36c0034f-Xyw7SC_7.mjs";
|
|
5
5
|
import { default as nodePath, default as path } from "node:path";
|
|
6
6
|
import { ZodFirstPartyTypeKind, ZodFirstPartyTypeKind as ZodFirstPartyTypeKind$1, ZodFirstPartyTypeKind as ZodFirstPartyTypeKind$2, z, z as z$1, z as z$2, z as z$3 } from "zod";
|
|
@@ -1603,7 +1603,8 @@ const inputOptionsSchema = z$2.strictObject({
|
|
|
1603
1603
|
inject: (z$2.record((z$2.string()).or(z$2.tuple([z$2.string(), z$2.string()])))).optional(),
|
|
1604
1604
|
profilerNames: (z$2.boolean()).optional(),
|
|
1605
1605
|
jsx: jsxOptionsSchema.optional(),
|
|
1606
|
-
watch: (watchOptionsSchema.or(z$2.literal(false))).optional()
|
|
1606
|
+
watch: (watchOptionsSchema.or(z$2.literal(false))).optional(),
|
|
1607
|
+
dropLabels: (z$2.array(z$2.string())).optional()
|
|
1607
1608
|
});
|
|
1608
1609
|
const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
1609
1610
|
external: ((z$2.array(z$2.string())).describe("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")).optional(),
|
|
@@ -1639,9 +1640,11 @@ const outputOptionsSchema = z$1.strictObject({
|
|
|
1639
1640
|
outro: ((z$1.string()).or(addonFunctionSchema)).optional(),
|
|
1640
1641
|
extend: ((z$1.boolean()).describe("extend global variable defined by name in IIFE / UMD formats")).optional(),
|
|
1641
1642
|
esModule: ((z$1.literal("if-default-prop")).or(z$1.boolean())).optional(),
|
|
1643
|
+
assetFileNames: (z$1.string()).optional(),
|
|
1642
1644
|
entryFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
|
|
1643
1645
|
chunkFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
|
|
1644
|
-
|
|
1646
|
+
cssEntryFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
|
|
1647
|
+
cssChunkFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
|
|
1645
1648
|
minify: ((z$1.boolean()).describe("minify the bundled file.")).optional(),
|
|
1646
1649
|
name: ((z$1.string()).describe("name for UMD / IIFE format outputs")).optional(),
|
|
1647
1650
|
globals: ((z$1.record(z$1.string())).describe("global variable of UMD / IIFE dependencies (syntax: `key=value`)")).optional(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { __toESM, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src_index-
|
|
3
|
+
import { __toESM, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src_index-p8EqHxvt.mjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
|
|
6
6
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { VERSION, defineConfig, rolldown, watch } from "../shared/src_index-
|
|
3
|
+
import { VERSION, defineConfig, rolldown, watch } from "../shared/src_index-p8EqHxvt.mjs";
|
|
4
4
|
|
|
5
5
|
export { VERSION, defineConfig, rolldown, watch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src_index-
|
|
3
|
+
import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src_index-p8EqHxvt.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
|
|
6
6
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const { __commonJSMin, __toESM } = require("./chunk-JoMxl5V2.cjs");
|
|
2
|
-
const { spawn } = __toESM(require("node:child_process"));
|
|
3
2
|
const { default: path, default: path$1 } = __toESM(require("node:path"));
|
|
4
3
|
const { z } = __toESM(require("zod"));
|
|
5
4
|
const { Worker } = __toESM(require("node:worker_threads"));
|
|
@@ -1883,7 +1882,8 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1883
1882
|
},
|
|
1884
1883
|
profilerNames: options?.profilerNames,
|
|
1885
1884
|
jsx: bindingifyJsx(options.jsx),
|
|
1886
|
-
watch: bindingifyWatch(options.watch)
|
|
1885
|
+
watch: bindingifyWatch(options.watch),
|
|
1886
|
+
dropLabels: options.dropLabels
|
|
1887
1887
|
};
|
|
1888
1888
|
}
|
|
1889
1889
|
function bindingifyLogLevel(logLevel) {
|
|
@@ -2484,7 +2484,7 @@ async function normalizeInputOptions(config) {
|
|
|
2484
2484
|
//#endregion
|
|
2485
2485
|
//#region src/utils/normalize-output-options.ts
|
|
2486
2486
|
function normalizeOutputOptions(opts) {
|
|
2487
|
-
const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, globals: globals, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames,
|
|
2487
|
+
const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, globals: globals, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, name: name, esModule: esModule, file: file } = opts;
|
|
2488
2488
|
return {
|
|
2489
2489
|
dir: dir,
|
|
2490
2490
|
file,
|
|
@@ -2501,6 +2501,8 @@ function normalizeOutputOptions(opts) {
|
|
|
2501
2501
|
globals: globals ?? {},
|
|
2502
2502
|
entryFileNames: entryFileNames ?? "[name].js",
|
|
2503
2503
|
chunkFileNames: chunkFileNames ?? "[name]-[hash].js",
|
|
2504
|
+
cssEntryFileNames: cssEntryFileNames ?? "[name].css",
|
|
2505
|
+
cssChunkFileNames: cssChunkFileNames ?? "[name]-[hash].css",
|
|
2504
2506
|
assetFileNames: assetFileNames ?? "assets/[name]-[hash][extname]",
|
|
2505
2507
|
plugins: [],
|
|
2506
2508
|
minify: opts.minify,
|
|
@@ -2545,7 +2547,7 @@ const getAddon = (config, name) => {
|
|
|
2545
2547
|
//#endregion
|
|
2546
2548
|
//#region src/options/bindingify-output-options.ts
|
|
2547
2549
|
function bindingifyOutputOptions(outputOptions) {
|
|
2548
|
-
const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, name: name, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames,
|
|
2550
|
+
const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, name: name, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, banner: banner, footer: footer, intro: intro, outro: outro, esModule: esModule, globals: globals, file: file } = outputOptions;
|
|
2549
2551
|
return {
|
|
2550
2552
|
dir,
|
|
2551
2553
|
file: file == null ? undefined : file,
|
|
@@ -2569,9 +2571,11 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2569
2571
|
globals,
|
|
2570
2572
|
esModule: bindingifyEsModule(esModule),
|
|
2571
2573
|
name,
|
|
2574
|
+
assetFileNames,
|
|
2572
2575
|
entryFileNames,
|
|
2573
2576
|
chunkFileNames,
|
|
2574
|
-
|
|
2577
|
+
cssEntryFileNames,
|
|
2578
|
+
cssChunkFileNames,
|
|
2575
2579
|
plugins: [],
|
|
2576
2580
|
minify: outputOptions.minify,
|
|
2577
2581
|
externalLiveBindings: outputOptions.externalLiveBindings,
|
|
@@ -2706,9 +2710,10 @@ class Watcher {
|
|
|
2706
2710
|
return this;
|
|
2707
2711
|
}
|
|
2708
2712
|
watch() {
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2711
|
-
|
|
2713
|
+
const timer = setInterval(() => {}, 1e9);
|
|
2714
|
+
this.controller.signal.addEventListener("abort", () => {
|
|
2715
|
+
clearInterval(timer);
|
|
2716
|
+
});
|
|
2712
2717
|
}
|
|
2713
2718
|
}
|
|
2714
2719
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { spawn } from "node:child_process";
|
|
4
3
|
import { default as path, default as path$1 } from "node:path";
|
|
5
4
|
import { z } from "zod";
|
|
6
5
|
import { Worker } from "node:worker_threads";
|
|
@@ -1913,7 +1912,8 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1913
1912
|
},
|
|
1914
1913
|
profilerNames: options?.profilerNames,
|
|
1915
1914
|
jsx: bindingifyJsx(options.jsx),
|
|
1916
|
-
watch: bindingifyWatch(options.watch)
|
|
1915
|
+
watch: bindingifyWatch(options.watch),
|
|
1916
|
+
dropLabels: options.dropLabels
|
|
1917
1917
|
};
|
|
1918
1918
|
}
|
|
1919
1919
|
function bindingifyLogLevel(logLevel) {
|
|
@@ -2514,7 +2514,7 @@ async function normalizeInputOptions(config) {
|
|
|
2514
2514
|
//#endregion
|
|
2515
2515
|
//#region src/utils/normalize-output-options.ts
|
|
2516
2516
|
function normalizeOutputOptions(opts) {
|
|
2517
|
-
const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, globals: globals, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames,
|
|
2517
|
+
const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, globals: globals, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, name: name, esModule: esModule, file: file } = opts;
|
|
2518
2518
|
return {
|
|
2519
2519
|
dir: dir,
|
|
2520
2520
|
file,
|
|
@@ -2531,6 +2531,8 @@ function normalizeOutputOptions(opts) {
|
|
|
2531
2531
|
globals: globals ?? {},
|
|
2532
2532
|
entryFileNames: entryFileNames ?? "[name].js",
|
|
2533
2533
|
chunkFileNames: chunkFileNames ?? "[name]-[hash].js",
|
|
2534
|
+
cssEntryFileNames: cssEntryFileNames ?? "[name].css",
|
|
2535
|
+
cssChunkFileNames: cssChunkFileNames ?? "[name]-[hash].css",
|
|
2534
2536
|
assetFileNames: assetFileNames ?? "assets/[name]-[hash][extname]",
|
|
2535
2537
|
plugins: [],
|
|
2536
2538
|
minify: opts.minify,
|
|
@@ -2575,7 +2577,7 @@ const getAddon = (config, name) => {
|
|
|
2575
2577
|
//#endregion
|
|
2576
2578
|
//#region src/options/bindingify-output-options.ts
|
|
2577
2579
|
function bindingifyOutputOptions(outputOptions) {
|
|
2578
|
-
const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, name: name, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames,
|
|
2580
|
+
const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, name: name, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, banner: banner, footer: footer, intro: intro, outro: outro, esModule: esModule, globals: globals, file: file } = outputOptions;
|
|
2579
2581
|
return {
|
|
2580
2582
|
dir,
|
|
2581
2583
|
file: file == null ? undefined : file,
|
|
@@ -2599,9 +2601,11 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2599
2601
|
globals,
|
|
2600
2602
|
esModule: bindingifyEsModule(esModule),
|
|
2601
2603
|
name,
|
|
2604
|
+
assetFileNames,
|
|
2602
2605
|
entryFileNames,
|
|
2603
2606
|
chunkFileNames,
|
|
2604
|
-
|
|
2607
|
+
cssEntryFileNames,
|
|
2608
|
+
cssChunkFileNames,
|
|
2605
2609
|
plugins: [],
|
|
2606
2610
|
minify: outputOptions.minify,
|
|
2607
2611
|
externalLiveBindings: outputOptions.externalLiveBindings,
|
|
@@ -2736,9 +2740,10 @@ class Watcher {
|
|
|
2736
2740
|
return this;
|
|
2737
2741
|
}
|
|
2738
2742
|
watch() {
|
|
2739
|
-
const
|
|
2740
|
-
|
|
2741
|
-
|
|
2743
|
+
const timer = setInterval(() => {}, 1e9);
|
|
2744
|
+
this.controller.signal.addEventListener("abort", () => {
|
|
2745
|
+
clearInterval(timer);
|
|
2746
|
+
});
|
|
2742
2747
|
}
|
|
2743
2748
|
}
|
|
2744
2749
|
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -234,6 +234,7 @@ export interface BindingInputOptions {
|
|
|
234
234
|
treeshake?: BindingTreeshake
|
|
235
235
|
moduleTypes?: Record<string, string>
|
|
236
236
|
define?: Array<[string, string]>
|
|
237
|
+
dropLabels?: Array<string>
|
|
237
238
|
inject?: Array<BindingInjectImportNamed | BindingInjectImportNamespace>
|
|
238
239
|
experimental?: BindingExperimentalOptions
|
|
239
240
|
profilerNames?: boolean
|
|
@@ -286,9 +287,11 @@ export interface BindingNotifyOption {
|
|
|
286
287
|
|
|
287
288
|
export interface BindingOutputOptions {
|
|
288
289
|
name?: string
|
|
290
|
+
assetFileNames?: string
|
|
289
291
|
entryFileNames?: string | ((chunk: PreRenderedChunk) => string)
|
|
290
292
|
chunkFileNames?: string | ((chunk: PreRenderedChunk) => string)
|
|
291
|
-
|
|
293
|
+
cssEntryFileNames?: string | ((chunk: PreRenderedChunk) => string)
|
|
294
|
+
cssChunkFileNames?: string | ((chunk: PreRenderedChunk) => string)
|
|
292
295
|
banner?: (chunk: RenderedChunk) => MaybePromise<VoidNullable<string>>
|
|
293
296
|
dir?: string
|
|
294
297
|
file?: string
|
|
@@ -392,6 +395,7 @@ export interface BindingReplacePluginConfig {
|
|
|
392
395
|
delimiters?: [string, string]
|
|
393
396
|
preventAssignment?: boolean
|
|
394
397
|
objectGuards?: boolean
|
|
398
|
+
sourcemap?: boolean
|
|
395
399
|
}
|
|
396
400
|
|
|
397
401
|
export interface BindingResolveOptions {
|
|
@@ -129,6 +129,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
129
129
|
skipWrite?: boolean | undefined;
|
|
130
130
|
chokidar?: any;
|
|
131
131
|
}>, z.ZodLiteral<false>]>>;
|
|
132
|
+
dropLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
132
133
|
}, {
|
|
133
134
|
external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
134
135
|
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -147,9 +148,11 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
147
148
|
outro: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").RenderedChunk, z.ZodTypeDef, import("../..").RenderedChunk>], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodPromise<z.ZodString>]>>]>>;
|
|
148
149
|
extend: z.ZodOptional<z.ZodBoolean>;
|
|
149
150
|
esModule: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"if-default-prop">, z.ZodBoolean]>>;
|
|
151
|
+
assetFileNames: z.ZodOptional<z.ZodString>;
|
|
150
152
|
entryFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").PreRenderedChunk, z.ZodTypeDef, import("../..").PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
151
153
|
chunkFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").PreRenderedChunk, z.ZodTypeDef, import("../..").PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
152
|
-
|
|
154
|
+
cssEntryFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").PreRenderedChunk, z.ZodTypeDef, import("../..").PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
155
|
+
cssChunkFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").PreRenderedChunk, z.ZodTypeDef, import("../..").PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
153
156
|
minify: z.ZodOptional<z.ZodBoolean>;
|
|
154
157
|
name: z.ZodOptional<z.ZodString>;
|
|
155
158
|
globals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -234,6 +237,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
234
237
|
jsxImportSource?: string | undefined;
|
|
235
238
|
} | undefined;
|
|
236
239
|
watch?: boolean | undefined;
|
|
240
|
+
dropLabels?: string[] | undefined;
|
|
237
241
|
footer?: string | undefined;
|
|
238
242
|
banner?: string | undefined;
|
|
239
243
|
intro?: string | undefined;
|
|
@@ -250,9 +254,11 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
250
254
|
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
251
255
|
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
252
256
|
extend?: boolean | undefined;
|
|
257
|
+
assetFileNames?: string | undefined;
|
|
253
258
|
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
254
259
|
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
255
|
-
|
|
260
|
+
cssEntryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
261
|
+
cssChunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
256
262
|
minify?: boolean | undefined;
|
|
257
263
|
globals?: Record<string, string> | undefined;
|
|
258
264
|
externalLiveBindings?: boolean | undefined;
|
|
@@ -280,6 +286,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
280
286
|
jsxImportSource?: string | undefined;
|
|
281
287
|
} | undefined;
|
|
282
288
|
watch?: boolean | undefined;
|
|
289
|
+
dropLabels?: string[] | undefined;
|
|
283
290
|
footer?: string | undefined;
|
|
284
291
|
banner?: string | undefined;
|
|
285
292
|
intro?: string | undefined;
|
|
@@ -296,9 +303,11 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
296
303
|
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
297
304
|
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
298
305
|
extend?: boolean | undefined;
|
|
306
|
+
assetFileNames?: string | undefined;
|
|
299
307
|
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
300
308
|
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
301
|
-
|
|
309
|
+
cssEntryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
310
|
+
cssChunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
302
311
|
minify?: boolean | undefined;
|
|
303
312
|
globals?: Record<string, string> | undefined;
|
|
304
313
|
externalLiveBindings?: boolean | undefined;
|
|
@@ -125,6 +125,7 @@ export declare const inputOptionsSchema: z.ZodObject<{
|
|
|
125
125
|
skipWrite?: boolean | undefined;
|
|
126
126
|
chokidar?: any;
|
|
127
127
|
}>, z.ZodLiteral<false>]>>;
|
|
128
|
+
dropLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
128
129
|
}, "strict", z.ZodTypeAny, {
|
|
129
130
|
treeshake?: boolean | TreeshakingOptions | undefined;
|
|
130
131
|
input?: string | string[] | Record<string, string> | undefined;
|
|
@@ -177,6 +178,7 @@ export declare const inputOptionsSchema: z.ZodObject<{
|
|
|
177
178
|
skipWrite?: boolean | undefined;
|
|
178
179
|
chokidar?: any;
|
|
179
180
|
} | undefined;
|
|
181
|
+
dropLabels?: string[] | undefined;
|
|
180
182
|
}, {
|
|
181
183
|
treeshake?: boolean | TreeshakingOptions | undefined;
|
|
182
184
|
input?: string | string[] | Record<string, string> | undefined;
|
|
@@ -229,6 +231,7 @@ export declare const inputOptionsSchema: z.ZodObject<{
|
|
|
229
231
|
skipWrite?: boolean | undefined;
|
|
230
232
|
chokidar?: any;
|
|
231
233
|
} | undefined;
|
|
234
|
+
dropLabels?: string[] | undefined;
|
|
232
235
|
}>;
|
|
233
236
|
export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
234
237
|
input: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
@@ -354,6 +357,7 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
|
|
|
354
357
|
skipWrite?: boolean | undefined;
|
|
355
358
|
chokidar?: any;
|
|
356
359
|
}>, z.ZodLiteral<false>]>>;
|
|
360
|
+
dropLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
357
361
|
}, {
|
|
358
362
|
external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
359
363
|
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -377,6 +381,7 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
|
|
|
377
381
|
importSource?: string | undefined;
|
|
378
382
|
jsxImportSource?: string | undefined;
|
|
379
383
|
} | undefined;
|
|
384
|
+
dropLabels?: string[] | undefined;
|
|
380
385
|
}, {
|
|
381
386
|
treeshake?: boolean | undefined;
|
|
382
387
|
external?: string[] | undefined;
|
|
@@ -396,4 +401,5 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
|
|
|
396
401
|
importSource?: string | undefined;
|
|
397
402
|
jsxImportSource?: string | undefined;
|
|
398
403
|
} | undefined;
|
|
404
|
+
dropLabels?: string[] | undefined;
|
|
399
405
|
}>;
|
|
@@ -15,9 +15,11 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
15
15
|
outro: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<RenderedChunk, z.ZodTypeDef, RenderedChunk>], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodPromise<z.ZodString>]>>]>>;
|
|
16
16
|
extend: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
esModule: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"if-default-prop">, z.ZodBoolean]>>;
|
|
18
|
+
assetFileNames: z.ZodOptional<z.ZodString>;
|
|
18
19
|
entryFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PreRenderedChunk, z.ZodTypeDef, PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
19
20
|
chunkFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PreRenderedChunk, z.ZodTypeDef, PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
20
|
-
|
|
21
|
+
cssEntryFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PreRenderedChunk, z.ZodTypeDef, PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
22
|
+
cssChunkFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PreRenderedChunk, z.ZodTypeDef, PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
21
23
|
minify: z.ZodOptional<z.ZodBoolean>;
|
|
22
24
|
name: z.ZodOptional<z.ZodString>;
|
|
23
25
|
globals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -99,9 +101,11 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
99
101
|
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
100
102
|
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
101
103
|
extend?: boolean | undefined;
|
|
104
|
+
assetFileNames?: string | undefined;
|
|
102
105
|
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
103
106
|
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
104
|
-
|
|
107
|
+
cssEntryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
108
|
+
cssChunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
105
109
|
minify?: boolean | undefined;
|
|
106
110
|
globals?: Record<string, string> | undefined;
|
|
107
111
|
externalLiveBindings?: boolean | undefined;
|
|
@@ -123,9 +127,11 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
123
127
|
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
124
128
|
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
125
129
|
extend?: boolean | undefined;
|
|
130
|
+
assetFileNames?: string | undefined;
|
|
126
131
|
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
127
132
|
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
128
|
-
|
|
133
|
+
cssEntryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
134
|
+
cssChunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
129
135
|
minify?: boolean | undefined;
|
|
130
136
|
globals?: Record<string, string> | undefined;
|
|
131
137
|
externalLiveBindings?: boolean | undefined;
|
|
@@ -18,9 +18,11 @@ export interface OutputOptions {
|
|
|
18
18
|
outro?: string | AddonFunction;
|
|
19
19
|
extend?: boolean;
|
|
20
20
|
esModule?: boolean | 'if-default-prop';
|
|
21
|
+
assetFileNames?: string;
|
|
21
22
|
entryFileNames?: string | ChunkFileNamesFunction;
|
|
22
23
|
chunkFileNames?: string | ChunkFileNamesFunction;
|
|
23
|
-
|
|
24
|
+
cssEntryFileNames?: string | ChunkFileNamesFunction;
|
|
25
|
+
cssChunkFileNames?: string | ChunkFileNamesFunction;
|
|
24
26
|
minify?: boolean;
|
|
25
27
|
name?: string;
|
|
26
28
|
globals?: Record<string, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "0.14.0-snapshot-
|
|
3
|
+
"version": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"require": "./dist/cjs/parallel-plugin.cjs",
|
|
45
45
|
"import": "./dist/esm/parallel-plugin.mjs"
|
|
46
46
|
},
|
|
47
|
-
"./watcher-worker": "./dist/shared/watcher-worker.js",
|
|
48
47
|
"./package.json": "./package.json"
|
|
49
48
|
},
|
|
50
49
|
"imports": {
|
|
@@ -105,21 +104,21 @@
|
|
|
105
104
|
"why-is-node-running": "^3.0.0",
|
|
106
105
|
"zod-to-json-schema": "^3.23.2",
|
|
107
106
|
"@rolldown/testing": "0.0.1",
|
|
108
|
-
"rolldown": "0.14.0-snapshot-
|
|
107
|
+
"rolldown": "0.14.0-snapshot-beec3a9-20241107221705"
|
|
109
108
|
},
|
|
110
109
|
"optionalDependencies": {
|
|
111
|
-
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-
|
|
112
|
-
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-
|
|
113
|
-
"@rolldown/binding-linux-
|
|
114
|
-
"@rolldown/binding-
|
|
115
|
-
"@rolldown/binding-linux-arm64-
|
|
116
|
-
"@rolldown/binding-linux-
|
|
117
|
-
"@rolldown/binding-
|
|
118
|
-
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-
|
|
119
|
-
"@rolldown/binding-
|
|
120
|
-
"@rolldown/binding-
|
|
121
|
-
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-
|
|
122
|
-
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-
|
|
110
|
+
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
111
|
+
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
112
|
+
"@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
113
|
+
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
114
|
+
"@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
115
|
+
"@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
116
|
+
"@rolldown/binding-freebsd-x64": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
117
|
+
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
118
|
+
"@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
119
|
+
"@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
120
|
+
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-beec3a9-20241107221705",
|
|
121
|
+
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-beec3a9-20241107221705"
|
|
123
122
|
},
|
|
124
123
|
"scripts": {
|
|
125
124
|
"# Scrips for binding #": "_",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
while (true) {}
|