rolldown 1.0.0-beta.3-commit.8754407 → 1.0.0-beta.3-commit.62fba31
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-bcOJ-g3T.cjs → src-BZ9nUXsY.cjs} +9 -7
- package/dist/shared/{src-EnhBSpKs.mjs → src-CX4-zCdU.mjs} +9 -7
- package/dist/types/binding.d.ts +2 -0
- package/dist/types/plugin/plugin-context.d.ts +2 -2
- package/dist/types/types/rolldown-output.d.ts +2 -0
- package/dist/types/types/sourcemap.d.ts +2 -1
- package/package.json +16 -16
- /package/dist/types/log/{logHandler.d.ts → log-handler.d.ts} +0 -0
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-BZ9nUXsY.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-DtSwpkV3.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-BZ9nUXsY.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-DtSwpkV3.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-BZ9nUXsY.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-DtSwpkV3.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-CSo7-trQ.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-CX4-zCdU.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-CSo7-trQ.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-CX4-zCdU.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-CSo7-trQ.mjs";
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-CX4-zCdU.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-CSo7-trQ.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-CX4-zCdU.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -49,7 +49,7 @@ const logLevelPriority = {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region src/log/
|
|
52
|
+
//#region src/log/log-handler.ts
|
|
53
53
|
const normalizeLog = (log) => typeof log === "string" ? { message: log } : typeof log === "function" ? normalizeLog(log()) : log;
|
|
54
54
|
function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
55
55
|
if (logLevelPriority[level] < logLevelPriority[logLevel]) return noop;
|
|
@@ -421,10 +421,12 @@ function bindingifySourcemap$1(map) {
|
|
|
421
421
|
return { inner: typeof map === "string" ? map : {
|
|
422
422
|
file: map.file ?? void 0,
|
|
423
423
|
mappings: map.mappings,
|
|
424
|
-
sourceRoot: map.sourceRoot ?? void 0,
|
|
424
|
+
sourceRoot: "sourceRoot" in map ? map.sourceRoot ?? void 0 : void 0,
|
|
425
425
|
sources: map.sources?.map((s) => s ?? void 0),
|
|
426
426
|
sourcesContent: map.sourcesContent?.map((s) => s ?? void 0),
|
|
427
|
-
names: map.names
|
|
427
|
+
names: map.names,
|
|
428
|
+
x_google_ignoreList: map.x_google_ignoreList,
|
|
429
|
+
debugId: "debugId" in map ? map.debugId : void 0
|
|
428
430
|
} };
|
|
429
431
|
}
|
|
430
432
|
|
|
@@ -1824,7 +1826,7 @@ function bindingifyTreeshakeOptions(config) {
|
|
|
1824
1826
|
}
|
|
1825
1827
|
|
|
1826
1828
|
//#endregion
|
|
1827
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
1829
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
1828
1830
|
function u$1(o, n, a) {
|
|
1829
1831
|
let t$1 = (r) => o(r, ...n);
|
|
1830
1832
|
return a === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -1834,7 +1836,7 @@ function u$1(o, n, a) {
|
|
|
1834
1836
|
}
|
|
1835
1837
|
|
|
1836
1838
|
//#endregion
|
|
1837
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
1839
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
1838
1840
|
function u(r, n, o) {
|
|
1839
1841
|
let a = r.length - n.length;
|
|
1840
1842
|
if (a === 0) return r(...n);
|
|
@@ -1843,7 +1845,7 @@ function u(r, n, o) {
|
|
|
1843
1845
|
}
|
|
1844
1846
|
|
|
1845
1847
|
//#endregion
|
|
1846
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
1848
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.0/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
1847
1849
|
function t(...n) {
|
|
1848
1850
|
return u(Object.keys, n);
|
|
1849
1851
|
}
|
|
@@ -2704,7 +2706,7 @@ const watch = (input) => {
|
|
|
2704
2706
|
|
|
2705
2707
|
//#endregion
|
|
2706
2708
|
//#region package.json
|
|
2707
|
-
var version = "1.0.0-beta.3-commit.
|
|
2709
|
+
var version = "1.0.0-beta.3-commit.62fba31";
|
|
2708
2710
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2709
2711
|
|
|
2710
2712
|
//#endregion
|
|
@@ -47,7 +47,7 @@ const logLevelPriority = {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region src/log/
|
|
50
|
+
//#region src/log/log-handler.ts
|
|
51
51
|
const normalizeLog = (log) => typeof log === "string" ? { message: log } : typeof log === "function" ? normalizeLog(log()) : log;
|
|
52
52
|
function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
53
53
|
if (logLevelPriority[level] < logLevelPriority[logLevel]) return noop;
|
|
@@ -419,10 +419,12 @@ function bindingifySourcemap$1(map) {
|
|
|
419
419
|
return { inner: typeof map === "string" ? map : {
|
|
420
420
|
file: map.file ?? void 0,
|
|
421
421
|
mappings: map.mappings,
|
|
422
|
-
sourceRoot: map.sourceRoot ?? void 0,
|
|
422
|
+
sourceRoot: "sourceRoot" in map ? map.sourceRoot ?? void 0 : void 0,
|
|
423
423
|
sources: map.sources?.map((s) => s ?? void 0),
|
|
424
424
|
sourcesContent: map.sourcesContent?.map((s) => s ?? void 0),
|
|
425
|
-
names: map.names
|
|
425
|
+
names: map.names,
|
|
426
|
+
x_google_ignoreList: map.x_google_ignoreList,
|
|
427
|
+
debugId: "debugId" in map ? map.debugId : void 0
|
|
426
428
|
} };
|
|
427
429
|
}
|
|
428
430
|
|
|
@@ -1822,7 +1824,7 @@ function bindingifyTreeshakeOptions(config) {
|
|
|
1822
1824
|
}
|
|
1823
1825
|
|
|
1824
1826
|
//#endregion
|
|
1825
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
1827
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
1826
1828
|
function u$1(o, n, a) {
|
|
1827
1829
|
let t$1 = (r) => o(r, ...n);
|
|
1828
1830
|
return a === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -1832,7 +1834,7 @@ function u$1(o, n, a) {
|
|
|
1832
1834
|
}
|
|
1833
1835
|
|
|
1834
1836
|
//#endregion
|
|
1835
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
1837
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
1836
1838
|
function u(r, n, o) {
|
|
1837
1839
|
let a = r.length - n.length;
|
|
1838
1840
|
if (a === 0) return r(...n);
|
|
@@ -1841,7 +1843,7 @@ function u(r, n, o) {
|
|
|
1841
1843
|
}
|
|
1842
1844
|
|
|
1843
1845
|
//#endregion
|
|
1844
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
1846
|
+
//#region ../../node_modules/.pnpm/remeda@2.21.0/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
1845
1847
|
function t(...n) {
|
|
1846
1848
|
return u(Object.keys, n);
|
|
1847
1849
|
}
|
|
@@ -2702,7 +2704,7 @@ const watch = (input) => {
|
|
|
2702
2704
|
|
|
2703
2705
|
//#endregion
|
|
2704
2706
|
//#region package.json
|
|
2705
|
-
var version = "1.0.0-beta.3-commit.
|
|
2707
|
+
var version = "1.0.0-beta.3-commit.62fba31";
|
|
2706
2708
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2707
2709
|
|
|
2708
2710
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -397,6 +397,8 @@ export interface BindingJsonSourcemap {
|
|
|
397
397
|
sources?: Array<string | undefined | null>
|
|
398
398
|
sourcesContent?: Array<string | undefined | null>
|
|
399
399
|
names?: Array<string>
|
|
400
|
+
debugId?: string
|
|
401
|
+
x_google_ignoreList?: Array<number>
|
|
400
402
|
}
|
|
401
403
|
|
|
402
404
|
export interface BindingJsWatchChangeEvent {
|
|
@@ -23,7 +23,7 @@ export interface EmittedChunk {
|
|
|
23
23
|
id: string;
|
|
24
24
|
importer?: string;
|
|
25
25
|
}
|
|
26
|
-
export type EmittedFile = EmittedAsset;
|
|
26
|
+
export type EmittedFile = EmittedAsset | EmittedChunk;
|
|
27
27
|
export interface PluginContextResolveOptions {
|
|
28
28
|
skipSelf?: boolean;
|
|
29
29
|
custom?: CustomPluginOptions;
|
|
@@ -45,7 +45,7 @@ export declare class PluginContext extends MinimalPluginContext {
|
|
|
45
45
|
resolveDependencies?: boolean;
|
|
46
46
|
} & Partial<PartialNull<ModuleOptions>>): Promise<ModuleInfo>;
|
|
47
47
|
resolve(source: string, importer?: string, options?: PluginContextResolveOptions): Promise<ResolvedId | null>;
|
|
48
|
-
emitFile: (file:
|
|
48
|
+
emitFile: (file: EmittedFile) => string;
|
|
49
49
|
private getAssetFileNames;
|
|
50
50
|
getFileName(referenceId: string): string;
|
|
51
51
|
getModuleIds(): IterableIterator<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BindingSourcemap } from '../binding';
|
|
2
|
+
import type { SourceMap } from './rolldown-output';
|
|
2
3
|
export interface ExistingRawSourceMap {
|
|
3
4
|
file?: string | null;
|
|
4
5
|
mappings: string;
|
|
@@ -10,4 +11,4 @@ export interface ExistingRawSourceMap {
|
|
|
10
11
|
x_google_ignoreList?: number[];
|
|
11
12
|
}
|
|
12
13
|
export type SourceMapInput = ExistingRawSourceMap | string | null;
|
|
13
|
-
export declare function bindingifySourcemap(map?: SourceMapInput): undefined | BindingSourcemap;
|
|
14
|
+
export declare function bindingifySourcemap(map?: SourceMapInput | SourceMap): undefined | BindingSourcemap;
|
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.62fba31",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@oxc-project/types": "0.53.0",
|
|
88
|
-
"@valibot/to-json-schema": "1.0.0-
|
|
89
|
-
"valibot": "1.0.0-
|
|
88
|
+
"@valibot/to-json-schema": "1.0.0-rc.0",
|
|
89
|
+
"valibot": "1.0.0-rc.3"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@oxc-project/runtime": "0.53.0"
|
|
@@ -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.3-commit.
|
|
125
|
+
"rolldown": "1.0.0-beta.3-commit.62fba31"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.
|
|
129
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.
|
|
130
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.
|
|
131
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.
|
|
132
|
-
"@rolldown/binding-linux-arm64-
|
|
133
|
-
"@rolldown/binding-linux-arm64-
|
|
134
|
-
"@rolldown/binding-
|
|
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.3-commit.62fba31",
|
|
129
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.62fba31",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.62fba31",
|
|
131
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.62fba31",
|
|
132
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.62fba31",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.62fba31",
|
|
134
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.62fba31",
|
|
135
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.62fba31",
|
|
136
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.62fba31",
|
|
137
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.62fba31",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.62fba31",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.62fba31"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|
|
File without changes
|