rolldown 1.0.0-beta.3-commit.e71f948 → 1.0.0-beta.3-commit.72028a5
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 +1 -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 +1 -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-DdLzruqH.mjs → src-CMVXQY3z.mjs} +9 -5
- package/dist/shared/{src-C82jqmOo.cjs → src-CmTdtdJj.cjs} +9 -5
- package/dist/types/plugin/minimal-plugin-context.d.ts +1 -1
- package/dist/types/plugin/plugin-context.d.ts +1 -1
- package/dist/types/plugin/transform-plugin-context.d.ts +1 -1
- package/dist/types/types/assert.d.ts +1 -0
- package/package.json +18 -18
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-CmTdtdJj.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"));
|
|
@@ -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-CmTdtdJj.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-CmTdtdJj.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-CMVXQY3z.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
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-CMVXQY3z.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-CMVXQY3z.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-CMVXQY3z.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -673,7 +673,11 @@ const OutputOptionsSchema = v.strictObject({
|
|
|
673
673
|
cssEntryFileNames: v.optional(ChunkFileNamesSchema),
|
|
674
674
|
cssChunkFileNames: v.optional(ChunkFileNamesSchema),
|
|
675
675
|
sanitizeFileName: v.optional(SanitizeFileNameSchema),
|
|
676
|
-
minify: v.pipe(v.optional(v.union([
|
|
676
|
+
minify: v.pipe(v.optional(v.union([
|
|
677
|
+
v.boolean(),
|
|
678
|
+
v.string("dce-only"),
|
|
679
|
+
MinifyOptionsSchema
|
|
680
|
+
])), v.description("Minify the bundled file")),
|
|
677
681
|
name: v.pipe(v.optional(v.string()), v.description("Name for UMD / IIFE format outputs")),
|
|
678
682
|
globals: v.pipe(v.optional(v.union([v.record(v.string(), v.string()), GlobalsFunctionSchema])), v.description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
679
683
|
externalLiveBindings: v.pipe(v.optional(v.boolean()), v.description("external live bindings")),
|
|
@@ -2182,7 +2186,7 @@ function bindingifyTreeshakeOptions(config) {
|
|
|
2182
2186
|
}
|
|
2183
2187
|
|
|
2184
2188
|
//#endregion
|
|
2185
|
-
//#region ../../node_modules/.pnpm/remeda@2.21.
|
|
2189
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2186
2190
|
function u$1(o, n, a) {
|
|
2187
2191
|
let t$1 = (r) => o(r, ...n);
|
|
2188
2192
|
return a === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2192,7 +2196,7 @@ function u$1(o, n, a) {
|
|
|
2192
2196
|
}
|
|
2193
2197
|
|
|
2194
2198
|
//#endregion
|
|
2195
|
-
//#region ../../node_modules/.pnpm/remeda@2.21.
|
|
2199
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.1/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2196
2200
|
function u(r, n, o) {
|
|
2197
2201
|
let a = r.length - n.length;
|
|
2198
2202
|
if (a === 0) return r(...n);
|
|
@@ -2201,7 +2205,7 @@ function u(r, n, o) {
|
|
|
2201
2205
|
}
|
|
2202
2206
|
|
|
2203
2207
|
//#endregion
|
|
2204
|
-
//#region ../../node_modules/.pnpm/remeda@2.21.
|
|
2208
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.1/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
2205
2209
|
function t(...n) {
|
|
2206
2210
|
return u(Object.keys, n);
|
|
2207
2211
|
}
|
|
@@ -2795,7 +2799,7 @@ const watch = (input) => {
|
|
|
2795
2799
|
|
|
2796
2800
|
//#endregion
|
|
2797
2801
|
//#region package.json
|
|
2798
|
-
var version = "1.0.0-beta.3-commit.
|
|
2802
|
+
var version = "1.0.0-beta.3-commit.72028a5";
|
|
2799
2803
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2800
2804
|
|
|
2801
2805
|
//#endregion
|
|
@@ -675,7 +675,11 @@ const OutputOptionsSchema = valibot.strictObject({
|
|
|
675
675
|
cssEntryFileNames: valibot.optional(ChunkFileNamesSchema),
|
|
676
676
|
cssChunkFileNames: valibot.optional(ChunkFileNamesSchema),
|
|
677
677
|
sanitizeFileName: valibot.optional(SanitizeFileNameSchema),
|
|
678
|
-
minify: valibot.pipe(valibot.optional(valibot.union([
|
|
678
|
+
minify: valibot.pipe(valibot.optional(valibot.union([
|
|
679
|
+
valibot.boolean(),
|
|
680
|
+
valibot.string("dce-only"),
|
|
681
|
+
MinifyOptionsSchema
|
|
682
|
+
])), valibot.description("Minify the bundled file")),
|
|
679
683
|
name: valibot.pipe(valibot.optional(valibot.string()), valibot.description("Name for UMD / IIFE format outputs")),
|
|
680
684
|
globals: valibot.pipe(valibot.optional(valibot.union([valibot.record(valibot.string(), valibot.string()), GlobalsFunctionSchema])), valibot.description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
681
685
|
externalLiveBindings: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("external live bindings")),
|
|
@@ -2184,7 +2188,7 @@ function bindingifyTreeshakeOptions(config) {
|
|
|
2184
2188
|
}
|
|
2185
2189
|
|
|
2186
2190
|
//#endregion
|
|
2187
|
-
//#region ../../node_modules/.pnpm/remeda@2.21.
|
|
2191
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2188
2192
|
function u$1(o, n, a) {
|
|
2189
2193
|
let t$1 = (r) => o(r, ...n);
|
|
2190
2194
|
return a === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2194,7 +2198,7 @@ function u$1(o, n, a) {
|
|
|
2194
2198
|
}
|
|
2195
2199
|
|
|
2196
2200
|
//#endregion
|
|
2197
|
-
//#region ../../node_modules/.pnpm/remeda@2.21.
|
|
2201
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.1/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2198
2202
|
function u(r, n, o) {
|
|
2199
2203
|
let a = r.length - n.length;
|
|
2200
2204
|
if (a === 0) return r(...n);
|
|
@@ -2203,7 +2207,7 @@ function u(r, n, o) {
|
|
|
2203
2207
|
}
|
|
2204
2208
|
|
|
2205
2209
|
//#endregion
|
|
2206
|
-
//#region ../../node_modules/.pnpm/remeda@2.21.
|
|
2210
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.1/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
2207
2211
|
function t(...n) {
|
|
2208
2212
|
return u(Object.keys, n);
|
|
2209
2213
|
}
|
|
@@ -2797,7 +2801,7 @@ const watch = (input) => {
|
|
|
2797
2801
|
|
|
2798
2802
|
//#endregion
|
|
2799
2803
|
//#region package.json
|
|
2800
|
-
var version = "1.0.0-beta.3-commit.
|
|
2804
|
+
var version = "1.0.0-beta.3-commit.72028a5";
|
|
2801
2805
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2802
2806
|
|
|
2803
2807
|
//#endregion
|
|
@@ -12,7 +12,7 @@ export interface MinimalPluginContext {
|
|
|
12
12
|
debug: LoggingFunction;
|
|
13
13
|
meta: PluginContextMeta;
|
|
14
14
|
}
|
|
15
|
-
export declare class MinimalPluginContextImpl
|
|
15
|
+
export declare class MinimalPluginContextImpl {
|
|
16
16
|
readonly pluginName: string;
|
|
17
17
|
info: LoggingFunction;
|
|
18
18
|
warn: LoggingFunction;
|
|
@@ -45,7 +45,7 @@ export interface PluginContext extends MinimalPluginContext {
|
|
|
45
45
|
parse(input: string, options?: ParserOptions | undefined | null): Program;
|
|
46
46
|
resolve(source: string, importer?: string, options?: PluginContextResolveOptions): Promise<ResolvedId | null>;
|
|
47
47
|
}
|
|
48
|
-
export declare class PluginContextImpl extends MinimalPluginContextImpl
|
|
48
|
+
export declare class PluginContextImpl extends MinimalPluginContextImpl {
|
|
49
49
|
private outputOptions;
|
|
50
50
|
private context;
|
|
51
51
|
private data;
|
|
@@ -15,7 +15,7 @@ export interface TransformPluginContext extends PluginContext {
|
|
|
15
15
|
}): never;
|
|
16
16
|
getCombinedSourcemap(): SourceMap;
|
|
17
17
|
}
|
|
18
|
-
export declare class TransformPluginContextImpl extends PluginContextImpl
|
|
18
|
+
export declare class TransformPluginContextImpl extends PluginContextImpl {
|
|
19
19
|
private inner;
|
|
20
20
|
private moduleId;
|
|
21
21
|
private moduleSource;
|
|
@@ -9,5 +9,6 @@ export type ShowPropertiesEqualStatus<A, B> = {
|
|
|
9
9
|
[K in keyof A]: K extends keyof B ? IsEqual<A[K], B[K]> : true;
|
|
10
10
|
};
|
|
11
11
|
export type IsPropertiesEqual<A, B> = IsValuesOfObjectAllTrue<ShowPropertiesEqualStatus<A, B>>;
|
|
12
|
+
export type Extends<A, B> = A extends B ? true : false;
|
|
12
13
|
export type AssertNever<T extends never> = T;
|
|
13
14
|
export {};
|
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.72028a5",
|
|
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.56.
|
|
87
|
+
"@oxc-project/types": "0.56.5",
|
|
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.56.
|
|
92
|
+
"@oxc-project/runtime": "0.56.5"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"@oxc-project/runtime": {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
101
101
|
"@napi-rs/cli": "^3.0.0-alpha.72",
|
|
102
102
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
103
|
-
"@oxc-node/core": "^0.0.
|
|
103
|
+
"@oxc-node/core": "^0.0.20",
|
|
104
104
|
"@types/fs-extra": "^11.0.4",
|
|
105
105
|
"@types/lodash-es": "^4.17.12",
|
|
106
106
|
"colorette": "^2.0.20",
|
|
@@ -121,22 +121,22 @@
|
|
|
121
121
|
"typescript": "^5.7.3",
|
|
122
122
|
"unbuild": "^3.0.0",
|
|
123
123
|
"why-is-node-running": "^3.0.0",
|
|
124
|
-
"
|
|
125
|
-
"rolldown": "
|
|
124
|
+
"rolldown": "1.0.0-beta.3-commit.72028a5",
|
|
125
|
+
"@rolldown/testing": "0.0.1"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-linux-arm64-
|
|
133
|
-
"@rolldown/binding-linux-arm64-
|
|
134
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.
|
|
135
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.
|
|
139
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.
|
|
128
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.72028a5",
|
|
129
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.72028a5",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.72028a5",
|
|
131
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.72028a5",
|
|
132
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.72028a5",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.72028a5",
|
|
134
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.72028a5",
|
|
135
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.72028a5",
|
|
136
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.72028a5",
|
|
137
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.72028a5",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.72028a5",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.72028a5"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|