rolldown 1.0.0-beta.1-commit.2fe52d4 → 1.0.0-beta.1-commit.298dd8b
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 +20 -20
- package/dist/cjs/experimental-index.cjs +3 -2
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/parallel-plugin-worker.cjs +2 -2
- package/dist/cjs/parse-ast-index.cjs +1 -1
- package/dist/esm/cli.mjs +4 -4
- package/dist/esm/experimental-index.mjs +3 -3
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/parallel-plugin-worker.mjs +2 -2
- package/dist/esm/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding-Cw1COxB5.cjs → binding-D5MBYAdC.cjs} +86 -1
- package/dist/shared/{binding-BMSG-hw7.mjs → binding-DLjQWzkm.mjs} +81 -2
- package/dist/shared/{consola_36c0034f-DJFB73x3.mjs → consola_36c0034f-Cx52UqEq.mjs} +2 -2
- package/dist/shared/{consola_36c0034f-7VQAd79i.cjs → consola_36c0034f-CynBWXXO.cjs} +2 -2
- package/dist/shared/{prompt-sP1wES-1.cjs → prompt-B58MxVuU.cjs} +2 -2
- package/dist/shared/{prompt-CwUxfcCh.mjs → prompt-DjjlOckE.mjs} +1 -1
- package/dist/shared/{src-Dck9jWki.cjs → src-BYsFiN-a.cjs} +25 -97
- package/dist/shared/{src-genj5En-.mjs → src-BiKHJ1rU.mjs} +14 -86
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/binding.d.ts +4 -6
- package/dist/types/builtin-plugin/constructors.d.ts +5 -1
- package/dist/types/experimental-index.d.ts +1 -1
- package/dist/types/plugin/plugin-context.d.ts +1 -2
- package/package.json +15 -15
package/dist/types/binding.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export declare class BindingPluginContext {
|
|
|
104
104
|
load(specifier: string, sideEffects: BindingHookSideEffects | undefined, fn: () => void): Promise<void>
|
|
105
105
|
resolve(specifier: string, importer?: string | undefined | null, extraOptions?: BindingPluginContextResolveOptions | undefined | null): Promise<BindingPluginContextResolvedId | null>
|
|
106
106
|
emitFile(file: BindingEmittedAsset): string
|
|
107
|
-
emitChunk(file: BindingEmittedChunk):
|
|
107
|
+
emitChunk(file: BindingEmittedChunk): string
|
|
108
108
|
getFileName(referenceId: string): string
|
|
109
109
|
getModuleInfo(moduleId: string): BindingModuleInfo | null
|
|
110
110
|
getModuleIds(): Array<string>
|
|
@@ -444,9 +444,9 @@ export interface BindingMatchGroup {
|
|
|
444
444
|
export interface BindingModuleFederationPluginOption {
|
|
445
445
|
name: string
|
|
446
446
|
filename?: string
|
|
447
|
-
expose
|
|
448
|
-
remotes
|
|
449
|
-
shared
|
|
447
|
+
expose?: Record<string, string>
|
|
448
|
+
remotes?: Record<string, BindingRemote>
|
|
449
|
+
shared?: Record<string, BindingShared>
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
export interface BindingModulePreloadPolyfillPluginConfig {
|
|
@@ -576,7 +576,6 @@ export interface BindingPluginWithIndex {
|
|
|
576
576
|
|
|
577
577
|
export interface BindingRemote {
|
|
578
578
|
type?: string
|
|
579
|
-
name: string
|
|
580
579
|
entry: string
|
|
581
580
|
entryGlobalName?: string
|
|
582
581
|
shareScope?: string
|
|
@@ -605,7 +604,6 @@ export interface BindingResolveOptions {
|
|
|
605
604
|
}
|
|
606
605
|
|
|
607
606
|
export interface BindingShared {
|
|
608
|
-
name: string
|
|
609
607
|
version?: string
|
|
610
608
|
shareScope?: string
|
|
611
609
|
singleton?: boolean
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingJsonPluginConfig, BindingBuildImportAnalysisPluginConfig, type BindingViteResolvePluginConfig } from '../binding';
|
|
1
|
+
import { type BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingJsonPluginConfig, BindingBuildImportAnalysisPluginConfig, type BindingViteResolvePluginConfig, BindingModuleFederationPluginOption, BindingRemote } from '../binding';
|
|
2
2
|
export declare class BuiltinPlugin {
|
|
3
3
|
name: BindingBuiltinPluginName;
|
|
4
4
|
_options?: unknown;
|
|
@@ -14,3 +14,7 @@ export declare function loadFallbackPlugin(): BuiltinPlugin;
|
|
|
14
14
|
export declare function jsonPlugin(config?: BindingJsonPluginConfig): BuiltinPlugin;
|
|
15
15
|
export declare function buildImportAnalysisPlugin(config: BindingBuildImportAnalysisPluginConfig): BuiltinPlugin;
|
|
16
16
|
export declare function viteResolvePlugin(config: Omit<BindingViteResolvePluginConfig, 'runtime'>): BuiltinPlugin;
|
|
17
|
+
export type ModuleFederationPluginOption = Omit<BindingModuleFederationPluginOption, 'remotes'> & {
|
|
18
|
+
remotes?: Record<string, string | BindingRemote>;
|
|
19
|
+
};
|
|
20
|
+
export declare function moduleFederationPlugin(config: ModuleFederationPluginOption): BuiltinPlugin;
|
|
@@ -3,7 +3,7 @@ export { experimental_scan as scan } from './api/experimental';
|
|
|
3
3
|
export { transform } from './binding';
|
|
4
4
|
export type { TransformOptions, TransformResult } from './binding';
|
|
5
5
|
export { composeJsPlugins as composePlugins } from './utils/compose-js-plugins';
|
|
6
|
-
export { modulePreloadPolyfillPlugin, dynamicImportVarsPlugin, wasmHelperPlugin, wasmFallbackPlugin, importGlobPlugin, manifestPlugin, loadFallbackPlugin, jsonPlugin, buildImportAnalysisPlugin, viteResolvePlugin, } from './builtin-plugin/constructors';
|
|
6
|
+
export { modulePreloadPolyfillPlugin, dynamicImportVarsPlugin, wasmHelperPlugin, wasmFallbackPlugin, importGlobPlugin, manifestPlugin, loadFallbackPlugin, jsonPlugin, buildImportAnalysisPlugin, viteResolvePlugin, moduleFederationPlugin, } from './builtin-plugin/constructors';
|
|
7
7
|
export { transformPlugin } from './builtin-plugin/transform-plugin';
|
|
8
8
|
export { replacePlugin } from './builtin-plugin/replace-plugin';
|
|
9
9
|
export { aliasPlugin } from './builtin-plugin/alias-plugin';
|
|
@@ -40,8 +40,7 @@ export declare class PluginContext extends MinimalPluginContext {
|
|
|
40
40
|
resolveDependencies?: boolean;
|
|
41
41
|
} & Partial<PartialNull<ModuleOptions>>): Promise<ModuleInfo>;
|
|
42
42
|
resolve(source: string, importer?: string, options?: PluginContextResolveOptions): Promise<ResolvedId | null>;
|
|
43
|
-
emitFile(file: EmittedAsset): string;
|
|
44
|
-
emitChunk(chunk: EmittedChunk): Promise<string>;
|
|
43
|
+
emitFile(file: EmittedAsset | EmittedChunk): string;
|
|
45
44
|
getFileName(referenceId: string): string;
|
|
46
45
|
getModuleInfo(id: string): ModuleInfo | null;
|
|
47
46
|
getModuleIds(): IterableIterator<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.1-commit.
|
|
3
|
+
"version": "1.0.0-beta.1-commit.298dd8b",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -118,22 +118,22 @@
|
|
|
118
118
|
"type-fest": "^4.20.0",
|
|
119
119
|
"unbuild": "^3.0.0",
|
|
120
120
|
"why-is-node-running": "^3.0.0",
|
|
121
|
-
"
|
|
122
|
-
"rolldown": "
|
|
121
|
+
"rolldown": "1.0.0-beta.1-commit.298dd8b",
|
|
122
|
+
"@rolldown/testing": "0.0.1"
|
|
123
123
|
},
|
|
124
124
|
"optionalDependencies": {
|
|
125
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.1-commit.
|
|
126
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.1-commit.
|
|
127
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.1-commit.
|
|
128
|
-
"@rolldown/binding-linux-
|
|
129
|
-
"@rolldown/binding-linux-
|
|
130
|
-
"@rolldown/binding-linux-
|
|
131
|
-
"@rolldown/binding-linux-
|
|
132
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.1-commit.
|
|
133
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.1-commit.
|
|
134
|
-
"@rolldown/binding-win32-
|
|
135
|
-
"@rolldown/binding-win32-
|
|
136
|
-
"@rolldown/binding-win32-
|
|
125
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.1-commit.298dd8b",
|
|
126
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.1-commit.298dd8b",
|
|
127
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.1-commit.298dd8b",
|
|
128
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.1-commit.298dd8b",
|
|
129
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.1-commit.298dd8b",
|
|
130
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.1-commit.298dd8b",
|
|
131
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.1-commit.298dd8b",
|
|
132
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.1-commit.298dd8b",
|
|
133
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.1-commit.298dd8b",
|
|
134
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.1-commit.298dd8b",
|
|
135
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.1-commit.298dd8b",
|
|
136
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.1-commit.298dd8b"
|
|
137
137
|
},
|
|
138
138
|
"scripts": {
|
|
139
139
|
"# Scrips for binding #": "_",
|