rolldown 1.0.0-beta.3-commit.d9529e7 → 1.0.0-beta.3-commit.2e368ff
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-Cz_gHwAq.cjs → src-Bs6tNxIc.cjs} +3 -2
- package/dist/shared/{src-CrJblU3g.mjs → src-BwJXZqzt.mjs} +3 -2
- package/dist/types/binding.d.ts +22 -0
- package/dist/types/builtin-plugin/constructors.d.ts +2 -1
- package/package.json +15 -15
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-Bs6tNxIc.cjs');
|
|
4
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"));
|
|
@@ -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-Bs6tNxIc.cjs');
|
|
4
4
|
const require_binding = require('../shared/binding-DTKqYZn-.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-Bs6tNxIc.cjs');
|
|
4
4
|
const require_binding = require('../shared/binding-DTKqYZn-.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/binding-CFTx0Fs7.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-BwJXZqzt.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/binding-CFTx0Fs7.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-BwJXZqzt.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/binding-CFTx0Fs7.mjs";
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-BwJXZqzt.mjs";
|
|
3
3
|
|
|
4
4
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { import_binding } from "../shared/binding-CFTx0Fs7.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-BwJXZqzt.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -235,7 +235,8 @@ function moduleFederationPlugin(config) {
|
|
|
235
235
|
...remote,
|
|
236
236
|
name: remote.name ?? name
|
|
237
237
|
};
|
|
238
|
-
})
|
|
238
|
+
}),
|
|
239
|
+
manifest: config.manifest === false ? void 0 : config.manifest === true ? {} : config.manifest
|
|
239
240
|
});
|
|
240
241
|
}
|
|
241
242
|
|
|
@@ -2692,7 +2693,7 @@ const watch = (input) => {
|
|
|
2692
2693
|
|
|
2693
2694
|
//#endregion
|
|
2694
2695
|
//#region package.json
|
|
2695
|
-
var version = "1.0.0-beta.3-commit.
|
|
2696
|
+
var version = "1.0.0-beta.3-commit.2e368ff";
|
|
2696
2697
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2697
2698
|
|
|
2698
2699
|
//#endregion
|
|
@@ -233,7 +233,8 @@ function moduleFederationPlugin(config) {
|
|
|
233
233
|
...remote,
|
|
234
234
|
name: remote.name ?? name
|
|
235
235
|
};
|
|
236
|
-
})
|
|
236
|
+
}),
|
|
237
|
+
manifest: config.manifest === false ? void 0 : config.manifest === true ? {} : config.manifest
|
|
237
238
|
});
|
|
238
239
|
}
|
|
239
240
|
|
|
@@ -2690,7 +2691,7 @@ const watch = (input) => {
|
|
|
2690
2691
|
|
|
2691
2692
|
//#endregion
|
|
2692
2693
|
//#region package.json
|
|
2693
|
-
var version = "1.0.0-beta.3-commit.
|
|
2694
|
+
var version = "1.0.0-beta.3-commit.2e368ff";
|
|
2694
2695
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2695
2696
|
|
|
2696
2697
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -470,6 +470,12 @@ export interface BindingMatchGroup {
|
|
|
470
470
|
maxSize?: number
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
+
export interface BindingMfManifest {
|
|
474
|
+
filePath?: string
|
|
475
|
+
disableAssetsAnalyze?: boolean
|
|
476
|
+
fileName?: string
|
|
477
|
+
}
|
|
478
|
+
|
|
473
479
|
export interface BindingMinifyOptions {
|
|
474
480
|
mangle: boolean
|
|
475
481
|
compress: boolean
|
|
@@ -483,6 +489,7 @@ export interface BindingModuleFederationPluginOption {
|
|
|
483
489
|
remotes?: Array<BindingRemote>
|
|
484
490
|
shared?: Record<string, BindingShared>
|
|
485
491
|
runtimePlugins?: Array<string>
|
|
492
|
+
manifest?: BindingMfManifest
|
|
486
493
|
}
|
|
487
494
|
|
|
488
495
|
export interface BindingModulePreloadPolyfillPluginConfig {
|
|
@@ -733,6 +740,19 @@ export interface CompilerAssumptions {
|
|
|
733
740
|
setPublicClassFields?: boolean
|
|
734
741
|
}
|
|
735
742
|
|
|
743
|
+
export interface DecoratorOptions {
|
|
744
|
+
/**
|
|
745
|
+
* Enables experimental support for decorators, which is a version of decorators that predates the TC39 standardization process.
|
|
746
|
+
*
|
|
747
|
+
* Decorators are a language feature which hasn’t yet been fully ratified into the JavaScript specification.
|
|
748
|
+
* This means that the implementation version in TypeScript may differ from the implementation in JavaScript when it it decided by TC39.
|
|
749
|
+
*
|
|
750
|
+
* @see https://www.typescriptlang.org/tsconfig/#experimentalDecorators
|
|
751
|
+
* @default false
|
|
752
|
+
*/
|
|
753
|
+
legacy?: boolean
|
|
754
|
+
}
|
|
755
|
+
|
|
736
756
|
export interface DynamicImport {
|
|
737
757
|
start: number
|
|
738
758
|
end: number
|
|
@@ -1258,6 +1278,8 @@ export interface TransformOptions {
|
|
|
1258
1278
|
define?: Record<string, string>
|
|
1259
1279
|
/** Inject Plugin */
|
|
1260
1280
|
inject?: Record<string, string | [string, string]>
|
|
1281
|
+
/** Decorator plugin */
|
|
1282
|
+
decorator?: DecoratorOptions
|
|
1261
1283
|
}
|
|
1262
1284
|
|
|
1263
1285
|
export interface TransformResult {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingJsonPluginConfig, BindingBuildImportAnalysisPluginConfig, type BindingViteResolvePluginConfig, BindingModuleFederationPluginOption, BindingRemote } from '../binding';
|
|
1
|
+
import { type BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingJsonPluginConfig, BindingBuildImportAnalysisPluginConfig, type BindingViteResolvePluginConfig, BindingModuleFederationPluginOption, BindingRemote, BindingMfManifest } from '../binding';
|
|
2
2
|
export declare class BuiltinPlugin {
|
|
3
3
|
name: BindingBuiltinPluginName;
|
|
4
4
|
_options?: unknown | undefined;
|
|
@@ -16,5 +16,6 @@ export declare function buildImportAnalysisPlugin(config: BindingBuildImportAnal
|
|
|
16
16
|
export declare function viteResolvePlugin(config: Omit<BindingViteResolvePluginConfig, 'runtime'>): BuiltinPlugin;
|
|
17
17
|
export type ModuleFederationPluginOption = Omit<BindingModuleFederationPluginOption, 'remotes'> & {
|
|
18
18
|
remotes?: Record<string, string | BindingRemote>;
|
|
19
|
+
manifest?: boolean | BindingMfManifest;
|
|
19
20
|
};
|
|
20
21
|
export declare function moduleFederationPlugin(config: ModuleFederationPluginOption): BuiltinPlugin;
|
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.2e368ff",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -122,26 +122,26 @@
|
|
|
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.2e368ff"
|
|
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-
|
|
131
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.
|
|
134
|
-
"@rolldown/binding-linux-x64-
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.
|
|
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.2e368ff",
|
|
129
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.2e368ff",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.2e368ff",
|
|
131
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.2e368ff",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.2e368ff",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.2e368ff",
|
|
134
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.2e368ff",
|
|
135
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.2e368ff",
|
|
136
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.2e368ff",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.2e368ff",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.2e368ff",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.2e368ff"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|
|
143
143
|
"artifacts": "napi artifacts --cwd ./src --package-json-path ../package.json -o=../artifacts --npm-dir ../npm",
|
|
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",
|
|
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 --no-dts-cache",
|
|
145
145
|
"build-binding:release": "pnpm build-binding --release",
|
|
146
146
|
"build-binding:wasi": "pnpm build-binding --target wasm32-wasip1-threads",
|
|
147
147
|
"build-binding:wasi:release": "pnpm build-binding --profile release-wasi --target wasm32-wasip1-threads",
|