rolldown 1.0.0-beta.3-commit.725c566 → 1.0.0-beta.3-commit.61bbd94
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-BjMtmwg9.cjs → src-BsHZ6P4f.cjs} +10 -4
- package/dist/shared/{src-BLGmbzkm.mjs → src-CMmVJusS.mjs} +10 -4
- package/dist/types/binding.d.ts +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/plugin/plugin-context.d.ts +2 -1
- package/dist/types/types/rolldown-output.d.ts +1 -0
- package/package.json +14 -14
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-BsHZ6P4f.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-p24sJjY3.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-BsHZ6P4f.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-p24sJjY3.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-BsHZ6P4f.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-p24sJjY3.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-BDY-7XFT.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-CMmVJusS.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-BDY-7XFT.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-CMmVJusS.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-BDY-7XFT.mjs";
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-CMmVJusS.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-BDY-7XFT.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-CMmVJusS.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -487,6 +487,9 @@ function transformToRenderedModule(bindingRenderedModule) {
|
|
|
487
487
|
},
|
|
488
488
|
get renderedLength() {
|
|
489
489
|
return bindingRenderedModule.code?.length || 0;
|
|
490
|
+
},
|
|
491
|
+
get renderedExports() {
|
|
492
|
+
return bindingRenderedModule.renderedExports;
|
|
490
493
|
}
|
|
491
494
|
};
|
|
492
495
|
}
|
|
@@ -592,6 +595,10 @@ function transformToRollupOutputChunk(bindingChunk, changed) {
|
|
|
592
595
|
cache[p] = newValue;
|
|
593
596
|
changed?.updated.add(bindingChunk.fileName);
|
|
594
597
|
return true;
|
|
598
|
+
},
|
|
599
|
+
has(target, p) {
|
|
600
|
+
if (p in cache) return true;
|
|
601
|
+
return p in target;
|
|
595
602
|
}
|
|
596
603
|
});
|
|
597
604
|
}
|
|
@@ -747,6 +754,7 @@ function bindingifySideEffects(sideEffects) {
|
|
|
747
754
|
//#endregion
|
|
748
755
|
//#region src/plugin/plugin-context.ts
|
|
749
756
|
var PluginContext = class extends MinimalPluginContext {
|
|
757
|
+
getModuleInfo;
|
|
750
758
|
constructor(outputOptions, context, plugin, data, onLog, logLevel, currentLoadingModule) {
|
|
751
759
|
super(onLog, logLevel, plugin.name);
|
|
752
760
|
this.outputOptions = outputOptions;
|
|
@@ -754,6 +762,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
754
762
|
this.data = data;
|
|
755
763
|
this.onLog = onLog;
|
|
756
764
|
this.currentLoadingModule = currentLoadingModule;
|
|
765
|
+
this.getModuleInfo = (id) => this.data.getModuleInfo(id, context);
|
|
757
766
|
}
|
|
758
767
|
async load(options) {
|
|
759
768
|
const id = options.id;
|
|
@@ -821,9 +830,6 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
821
830
|
getFileName(referenceId) {
|
|
822
831
|
return this.context.getFileName(referenceId);
|
|
823
832
|
}
|
|
824
|
-
getModuleInfo(id) {
|
|
825
|
-
return this.data.getModuleInfo(id, this.context);
|
|
826
|
-
}
|
|
827
833
|
getModuleIds() {
|
|
828
834
|
return this.data.getModuleIds(this.context);
|
|
829
835
|
}
|
|
@@ -2703,7 +2709,7 @@ const watch = (input) => {
|
|
|
2703
2709
|
|
|
2704
2710
|
//#endregion
|
|
2705
2711
|
//#region package.json
|
|
2706
|
-
var version = "1.0.0-beta.3-commit.
|
|
2712
|
+
var version = "1.0.0-beta.3-commit.61bbd94";
|
|
2707
2713
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2708
2714
|
|
|
2709
2715
|
//#endregion
|
|
@@ -485,6 +485,9 @@ function transformToRenderedModule(bindingRenderedModule) {
|
|
|
485
485
|
},
|
|
486
486
|
get renderedLength() {
|
|
487
487
|
return bindingRenderedModule.code?.length || 0;
|
|
488
|
+
},
|
|
489
|
+
get renderedExports() {
|
|
490
|
+
return bindingRenderedModule.renderedExports;
|
|
488
491
|
}
|
|
489
492
|
};
|
|
490
493
|
}
|
|
@@ -590,6 +593,10 @@ function transformToRollupOutputChunk(bindingChunk, changed) {
|
|
|
590
593
|
cache[p] = newValue;
|
|
591
594
|
changed?.updated.add(bindingChunk.fileName);
|
|
592
595
|
return true;
|
|
596
|
+
},
|
|
597
|
+
has(target, p) {
|
|
598
|
+
if (p in cache) return true;
|
|
599
|
+
return p in target;
|
|
593
600
|
}
|
|
594
601
|
});
|
|
595
602
|
}
|
|
@@ -745,6 +752,7 @@ function bindingifySideEffects(sideEffects) {
|
|
|
745
752
|
//#endregion
|
|
746
753
|
//#region src/plugin/plugin-context.ts
|
|
747
754
|
var PluginContext = class extends MinimalPluginContext {
|
|
755
|
+
getModuleInfo;
|
|
748
756
|
constructor(outputOptions, context, plugin, data, onLog, logLevel, currentLoadingModule) {
|
|
749
757
|
super(onLog, logLevel, plugin.name);
|
|
750
758
|
this.outputOptions = outputOptions;
|
|
@@ -752,6 +760,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
752
760
|
this.data = data;
|
|
753
761
|
this.onLog = onLog;
|
|
754
762
|
this.currentLoadingModule = currentLoadingModule;
|
|
763
|
+
this.getModuleInfo = (id) => this.data.getModuleInfo(id, context);
|
|
755
764
|
}
|
|
756
765
|
async load(options) {
|
|
757
766
|
const id = options.id;
|
|
@@ -819,9 +828,6 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
819
828
|
getFileName(referenceId) {
|
|
820
829
|
return this.context.getFileName(referenceId);
|
|
821
830
|
}
|
|
822
|
-
getModuleInfo(id) {
|
|
823
|
-
return this.data.getModuleInfo(id, this.context);
|
|
824
|
-
}
|
|
825
831
|
getModuleIds() {
|
|
826
832
|
return this.data.getModuleIds(this.context);
|
|
827
833
|
}
|
|
@@ -2701,7 +2707,7 @@ const watch = (input) => {
|
|
|
2701
2707
|
|
|
2702
2708
|
//#endregion
|
|
2703
2709
|
//#region package.json
|
|
2704
|
-
var version = "1.0.0-beta.3-commit.
|
|
2710
|
+
var version = "1.0.0-beta.3-commit.61bbd94";
|
|
2705
2711
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2706
2712
|
|
|
2707
2713
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { rolldown } from './api/rolldown';
|
|
|
11
11
|
import { watch } from './api/watch';
|
|
12
12
|
import { ConfigExport } from './types/config-export';
|
|
13
13
|
import { RolldownBuild } from './api/rolldown/rolldown-build';
|
|
14
|
-
import { EmittedAsset, EmittedFile, PluginContext } from './plugin/plugin-context';
|
|
14
|
+
import { EmittedAsset, EmittedFile, GetModuleInfo, PluginContext } from './plugin/plugin-context';
|
|
15
15
|
import { TransformPluginContext } from './plugin/transform-plugin-context';
|
|
16
16
|
import { InternalModuleFormat, NormalizedOutputOptions } from './options/normalized-output-options';
|
|
17
17
|
import { PreRenderedChunk } from './binding';
|
|
@@ -26,5 +26,5 @@ import { RolldownWatcher } from './api/watch/watch-emitter';
|
|
|
26
26
|
import { build, type BuildOptions } from './api/build';
|
|
27
27
|
export { defineConfig, rolldown, watch, build };
|
|
28
28
|
export declare const VERSION: string;
|
|
29
|
-
export type { OutputAsset, OutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, RolldownPluginOption, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, HookFilterExtension, HookFilter, StringFilter, ModuleTypeFilter, PluginContext, TransformPluginContext, ObjectHook, PreRenderedChunk, PreRenderedAsset, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, PluginContextMeta, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, RolldownWatcher, BuildOptions, RenderedChunk, LogOrStringHandler, };
|
|
29
|
+
export type { OutputAsset, OutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, RolldownPluginOption, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, HookFilterExtension, HookFilter, StringFilter, ModuleTypeFilter, PluginContext, TransformPluginContext, ObjectHook, PreRenderedChunk, PreRenderedAsset, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, PluginContextMeta, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, RolldownWatcher, BuildOptions, RenderedChunk, LogOrStringHandler, GetModuleInfo, };
|
|
30
30
|
export type { RollupError, RollupLog, LoggingFunction, LogLevel, WarningHandlerWithDefault, } from './types/misc';
|
|
@@ -31,12 +31,14 @@ export interface PluginContextResolveOptions {
|
|
|
31
31
|
export interface PrivatePluginContextResolveOptions extends PluginContextResolveOptions {
|
|
32
32
|
[SYMBOL_FOR_RESOLVE_CALLER_THAT_SKIP_SELF]?: symbol;
|
|
33
33
|
}
|
|
34
|
+
export type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
|
|
34
35
|
export declare class PluginContext extends MinimalPluginContext {
|
|
35
36
|
private outputOptions;
|
|
36
37
|
private context;
|
|
37
38
|
private data;
|
|
38
39
|
private onLog;
|
|
39
40
|
private currentLoadingModule?;
|
|
41
|
+
getModuleInfo: GetModuleInfo;
|
|
40
42
|
constructor(outputOptions: OutputOptions, context: BindingPluginContext, plugin: Plugin, data: PluginContextData, onLog: LogHandler, logLevel: LogLevelOption, currentLoadingModule?: string | undefined);
|
|
41
43
|
load(options: {
|
|
42
44
|
id: string;
|
|
@@ -46,7 +48,6 @@ export declare class PluginContext extends MinimalPluginContext {
|
|
|
46
48
|
emitFile(file: EmittedAsset | EmittedChunk): string;
|
|
47
49
|
private getAssetFileNames;
|
|
48
50
|
getFileName(referenceId: string): string;
|
|
49
|
-
getModuleInfo(id: string): ModuleInfo | null;
|
|
50
51
|
getModuleIds(): IterableIterator<string>;
|
|
51
52
|
addWatchFile(id: string): void;
|
|
52
53
|
parse(input: string, options?: ParserOptions | undefined | null): Program;
|
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.61bbd94",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -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.61bbd94"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-linux-arm64-
|
|
133
|
-
"@rolldown/binding-linux-arm64-
|
|
134
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-win32-
|
|
138
|
-
"@rolldown/binding-win32-
|
|
139
|
-
"@rolldown/binding-
|
|
128
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.61bbd94",
|
|
129
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.61bbd94",
|
|
130
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.61bbd94",
|
|
131
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.61bbd94",
|
|
132
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.61bbd94",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.61bbd94",
|
|
134
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.61bbd94",
|
|
135
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.61bbd94",
|
|
136
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.61bbd94",
|
|
137
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.61bbd94",
|
|
138
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.61bbd94",
|
|
139
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.61bbd94"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|