rolldown 0.12.0 → 0.12.1
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 +3 -3
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/parallel-plugin-worker.cjs +1 -1
- package/dist/esm/cli.mjs +3 -3
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/{rolldown-O94xkf2v.cjs → rolldown-B7lvscUu.cjs} +1 -1
- package/dist/shared/{rolldown-A4p6frgO.mjs → rolldown-PuG9roph.mjs} +1 -1
- package/dist/shared/{utils_index-Lj9DZ_Td.cjs → utils_index-MBdc7y-u.cjs} +4 -2
- package/dist/shared/{utils_index-XrQl8B0a.mjs → utils_index-iIthVLrB.mjs} +4 -2
- package/dist/types/binding.d.ts +1 -0
- package/dist/types/options/output-options.d.ts +3 -0
- package/package.json +13 -13
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { __commonJSMin, __export, __toESM } = require("../shared/chunk-1xb6WR3y.cjs");
|
|
2
|
-
const { arraify } = require("../shared/utils_index-
|
|
3
|
-
const { rolldown } = require("../shared/rolldown-
|
|
2
|
+
const { arraify } = require("../shared/utils_index-MBdc7y-u.cjs");
|
|
3
|
+
const { rolldown } = require("../shared/rolldown-B7lvscUu.cjs");
|
|
4
4
|
const { colors, consola, createConsola } = require("../shared/consola.36c0034f-p4CNcyTx.cjs");
|
|
5
5
|
const { pathToFileURL } = __toESM(require("node:url"));
|
|
6
6
|
const { default: nodePath } = __toESM(require("node:path"));
|
|
@@ -702,7 +702,7 @@ function withTrailingSlash(path) {
|
|
|
702
702
|
|
|
703
703
|
//#endregion
|
|
704
704
|
//#region package.json
|
|
705
|
-
const version = '0.12.
|
|
705
|
+
const version = '0.12.1';
|
|
706
706
|
const description = 'Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.';
|
|
707
707
|
const keywords = ['webpack', 'parcel', 'esbuild', 'rollup', 'bundler', 'rolldown'];
|
|
708
708
|
const files = ['bin', 'cli', 'dist', '!dist/*.node'];
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("../shared/chunk-1xb6WR3y.cjs");
|
|
4
|
-
const { BuiltinGlobImportPlugin, BuiltinWasmPlugin, require_binding } = require("../shared/utils_index-
|
|
5
|
-
const { experimental_scan, rolldown } = require("../shared/rolldown-
|
|
4
|
+
const { BuiltinGlobImportPlugin, BuiltinWasmPlugin, require_binding } = require("../shared/utils_index-MBdc7y-u.cjs");
|
|
5
|
+
const { experimental_scan, rolldown } = require("../shared/rolldown-B7lvscUu.cjs");
|
|
6
6
|
const { pathToFileURL } = __toESM(require("node:url"));
|
|
7
7
|
|
|
8
8
|
//#region src/plugin/parallel-plugin.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("../shared/chunk-1xb6WR3y.cjs");
|
|
4
|
-
const { bindingifyPlugin, require_binding } = require("../shared/utils_index-
|
|
4
|
+
const { bindingifyPlugin, require_binding } = require("../shared/utils_index-MBdc7y-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,7 +1,7 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { __commonJSMin, __export, __toESM, arraify } from "../shared/utils_index-
|
|
4
|
-
import { rolldown } from "../shared/rolldown-
|
|
3
|
+
import { __commonJSMin, __export, __toESM, arraify } from "../shared/utils_index-iIthVLrB.mjs";
|
|
4
|
+
import { rolldown } from "../shared/rolldown-PuG9roph.mjs";
|
|
5
5
|
import { colors, consola, createConsola } from "../shared/consola.36c0034f-QyAKDJpW.mjs";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
7
|
import { default as nodePath } from "node:path";
|
|
@@ -703,7 +703,7 @@ function withTrailingSlash(path) {
|
|
|
703
703
|
|
|
704
704
|
//#endregion
|
|
705
705
|
//#region package.json
|
|
706
|
-
const version = '0.12.
|
|
706
|
+
const version = '0.12.1';
|
|
707
707
|
const description = 'Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.';
|
|
708
708
|
const keywords = ['webpack', 'parcel', 'esbuild', 'rollup', 'bundler', 'rolldown'];
|
|
709
709
|
const files = ['bin', 'cli', 'dist', '!dist/*.node'];
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { BuiltinGlobImportPlugin, BuiltinWasmPlugin, __toESM, require_binding } from "../shared/utils_index-
|
|
4
|
-
import { experimental_scan, rolldown } from "../shared/rolldown-
|
|
3
|
+
import { BuiltinGlobImportPlugin, BuiltinWasmPlugin, __toESM, require_binding } from "../shared/utils_index-iIthVLrB.mjs";
|
|
4
|
+
import { experimental_scan, rolldown } from "../shared/rolldown-PuG9roph.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/plugin/parallel-plugin.ts
|
|
@@ -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, bindingifyPlugin, require_binding } from "../shared/utils_index-
|
|
3
|
+
import { __toESM, bindingifyPlugin, require_binding } from "../shared/utils_index-iIthVLrB.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
|
|
6
6
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { createBundler, transformToRollupOutput } from "./utils_index-
|
|
3
|
+
import { createBundler, transformToRollupOutput } from "./utils_index-iIthVLrB.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/rolldown-build.ts
|
|
6
6
|
class RolldownBuild {
|
|
@@ -1443,7 +1443,8 @@ function normalizeOutputOptions(opts) {
|
|
|
1443
1443
|
entryFileNames: entryFileNames ?? '[name].js',
|
|
1444
1444
|
chunkFileNames: chunkFileNames ?? '[name]-[hash].js',
|
|
1445
1445
|
assetFileNames: assetFileNames ?? 'assets/[name]-[hash][extname]',
|
|
1446
|
-
plugins: []
|
|
1446
|
+
plugins: [],
|
|
1447
|
+
minify: opts.minify
|
|
1447
1448
|
};
|
|
1448
1449
|
}
|
|
1449
1450
|
function getFormat(format) {
|
|
@@ -1494,7 +1495,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
1494
1495
|
entryFileNames,
|
|
1495
1496
|
chunkFileNames,
|
|
1496
1497
|
assetFileNames,
|
|
1497
|
-
plugins: []
|
|
1498
|
+
plugins: [],
|
|
1499
|
+
minify: outputOptions.minify
|
|
1498
1500
|
};
|
|
1499
1501
|
}
|
|
1500
1502
|
function bindingifySourcemap(sourcemap) {
|
|
@@ -1474,7 +1474,8 @@ function normalizeOutputOptions(opts) {
|
|
|
1474
1474
|
entryFileNames: entryFileNames ?? '[name].js',
|
|
1475
1475
|
chunkFileNames: chunkFileNames ?? '[name]-[hash].js',
|
|
1476
1476
|
assetFileNames: assetFileNames ?? 'assets/[name]-[hash][extname]',
|
|
1477
|
-
plugins: []
|
|
1477
|
+
plugins: [],
|
|
1478
|
+
minify: opts.minify
|
|
1478
1479
|
};
|
|
1479
1480
|
}
|
|
1480
1481
|
function getFormat(format) {
|
|
@@ -1525,7 +1526,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
1525
1526
|
entryFileNames,
|
|
1526
1527
|
chunkFileNames,
|
|
1527
1528
|
assetFileNames,
|
|
1528
|
-
plugins: []
|
|
1529
|
+
plugins: [],
|
|
1530
|
+
minify: outputOptions.minify
|
|
1529
1531
|
};
|
|
1530
1532
|
}
|
|
1531
1533
|
function bindingifySourcemap(sourcemap) {
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ export interface BindingOutputOptions {
|
|
|
195
195
|
sourcemap?: 'file' | 'inline' | 'hidden'
|
|
196
196
|
sourcemapIgnoreList?: (source: string, sourcemapPath: string) => boolean
|
|
197
197
|
sourcemapPathTransform?: (source: string, sourcemapPath: string) => string
|
|
198
|
+
minify?: boolean
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
export interface BindingPluginContextResolvedId {
|
|
@@ -13,6 +13,7 @@ declare const outputOptionsSchema: z.ZodObject<{
|
|
|
13
13
|
entryFileNames: z.ZodOptional<z.ZodString>;
|
|
14
14
|
chunkFileNames: z.ZodOptional<z.ZodString>;
|
|
15
15
|
assetFileNames: z.ZodOptional<z.ZodString>;
|
|
16
|
+
minify: z.ZodOptional<z.ZodBoolean>;
|
|
16
17
|
}, "strict", z.ZodTypeAny, {
|
|
17
18
|
exports?: "named" | undefined;
|
|
18
19
|
banner?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
|
|
@@ -25,6 +26,7 @@ declare const outputOptionsSchema: z.ZodObject<{
|
|
|
25
26
|
entryFileNames?: string | undefined;
|
|
26
27
|
chunkFileNames?: string | undefined;
|
|
27
28
|
assetFileNames?: string | undefined;
|
|
29
|
+
minify?: boolean | undefined;
|
|
28
30
|
}, {
|
|
29
31
|
exports?: "named" | undefined;
|
|
30
32
|
banner?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
|
|
@@ -37,6 +39,7 @@ declare const outputOptionsSchema: z.ZodObject<{
|
|
|
37
39
|
entryFileNames?: string | undefined;
|
|
38
40
|
chunkFileNames?: string | undefined;
|
|
39
41
|
assetFileNames?: string | undefined;
|
|
42
|
+
minify?: boolean | undefined;
|
|
40
43
|
}>;
|
|
41
44
|
export type OutputOptions = z.infer<typeof outputOptionsSchema>;
|
|
42
45
|
export type SourcemapIgnoreListOption = (relativeSourcePath: string, sourcemapPath: string) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -94,20 +94,20 @@
|
|
|
94
94
|
"vitest": "^1.6.0",
|
|
95
95
|
"why-is-node-running": "^2.2.2",
|
|
96
96
|
"@rolldown/testing": "0.0.1",
|
|
97
|
-
"rolldown": "0.12.
|
|
97
|
+
"rolldown": "0.12.1"
|
|
98
98
|
},
|
|
99
99
|
"optionalDependencies": {
|
|
100
|
-
"@rolldown/binding-darwin-
|
|
101
|
-
"@rolldown/binding-darwin-
|
|
102
|
-
"@rolldown/binding-linux-arm-gnueabihf": "0.12.
|
|
103
|
-
"@rolldown/binding-linux-arm64-gnu": "0.12.
|
|
104
|
-
"@rolldown/binding-linux-arm64-musl": "0.12.
|
|
105
|
-
"@rolldown/binding-linux-x64-
|
|
106
|
-
"@rolldown/binding-linux-x64-
|
|
107
|
-
"@rolldown/binding-wasm32-wasi": "0.12.
|
|
108
|
-
"@rolldown/binding-win32-arm64-msvc": "0.12.
|
|
109
|
-
"@rolldown/binding-win32-ia32-msvc": "0.12.
|
|
110
|
-
"@rolldown/binding-win32-x64-msvc": "0.12.
|
|
100
|
+
"@rolldown/binding-darwin-x64": "0.12.1",
|
|
101
|
+
"@rolldown/binding-darwin-arm64": "0.12.1",
|
|
102
|
+
"@rolldown/binding-linux-arm-gnueabihf": "0.12.1",
|
|
103
|
+
"@rolldown/binding-linux-arm64-gnu": "0.12.1",
|
|
104
|
+
"@rolldown/binding-linux-arm64-musl": "0.12.1",
|
|
105
|
+
"@rolldown/binding-linux-x64-gnu": "0.12.1",
|
|
106
|
+
"@rolldown/binding-linux-x64-musl": "0.12.1",
|
|
107
|
+
"@rolldown/binding-wasm32-wasi": "0.12.1",
|
|
108
|
+
"@rolldown/binding-win32-arm64-msvc": "0.12.1",
|
|
109
|
+
"@rolldown/binding-win32-ia32-msvc": "0.12.1",
|
|
110
|
+
"@rolldown/binding-win32-x64-msvc": "0.12.1"
|
|
111
111
|
},
|
|
112
112
|
"scripts": {
|
|
113
113
|
"# Scrips for binding #": "_",
|