rolldown 1.0.0-beta.6-commit.8f5f8f1 → 1.0.0-beta.6-commit.47fe675
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 +2 -2
- package/dist/cjs/experimental-index.cjs +2 -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 +2 -2
- package/dist/esm/experimental-index.mjs +2 -2
- 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/{parse-ast-index-BytJf1vj.cjs → parse-ast-index-BwtJmE6E.cjs} +25 -8
- package/dist/shared/{parse-ast-index-D8k04LFo.mjs → parse-ast-index-DFeQGWCn.mjs} +25 -8
- package/dist/shared/{src-DL88Q7l_.cjs → src-CLpBkZmc.cjs} +2 -2
- package/dist/shared/{src-C3C9kwmQ.mjs → src-DLbV1jRQ.mjs} +2 -2
- package/dist/types/binding.d.ts +24 -23
- package/dist/types/types/rolldown-output.d.ts +1 -1
- package/dist/types/utils/transform-rendered-chunk.d.ts +1 -1
- package/package.json +15 -14
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-CLpBkZmc.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-BwtJmE6E.cjs');
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-CLpBkZmc.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-BwtJmE6E.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
|
|
7
7
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('../shared/src-
|
|
2
|
-
require('../shared/parse-ast-index-
|
|
1
|
+
const require_src = require('../shared/src-CLpBkZmc.cjs');
|
|
2
|
+
require('../shared/parse-ast-index-BwtJmE6E.cjs');
|
|
3
3
|
|
|
4
4
|
exports.VERSION = require_src.VERSION
|
|
5
5
|
exports.build = require_src.build
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-CLpBkZmc.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-BwtJmE6E.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
1
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-BwtJmE6E.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { colors } from "../shared/parse-ast-index-
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-
|
|
1
|
+
import { colors } from "../shared/parse-ast-index-DFeQGWCn.mjs";
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-DLbV1jRQ.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
|
-
import { import_binding } from "../shared/parse-ast-index-
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/parse-ast-index-DFeQGWCn.mjs";
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-DLbV1jRQ.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
|
-
import "../shared/parse-ast-index-
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
1
|
+
import "../shared/parse-ast-index-DFeQGWCn.mjs";
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-DLbV1jRQ.mjs";
|
|
3
3
|
|
|
4
4
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { import_binding } from "../shared/parse-ast-index-
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/parse-ast-index-DFeQGWCn.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-DLbV1jRQ.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -555,6 +555,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
555
555
|
module.exports.BindingOutputChunk = nativeBinding.BindingOutputChunk;
|
|
556
556
|
module.exports.BindingOutputs = nativeBinding.BindingOutputs;
|
|
557
557
|
module.exports.BindingPluginContext = nativeBinding.BindingPluginContext;
|
|
558
|
+
module.exports.BindingRenderedChunk = nativeBinding.BindingRenderedChunk;
|
|
558
559
|
module.exports.BindingRenderedModule = nativeBinding.BindingRenderedModule;
|
|
559
560
|
module.exports.BindingTransformPluginContext = nativeBinding.BindingTransformPluginContext;
|
|
560
561
|
module.exports.BindingWatcher = nativeBinding.BindingWatcher;
|
|
@@ -563,7 +564,6 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
563
564
|
module.exports.Bundler = nativeBinding.Bundler;
|
|
564
565
|
module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
|
|
565
566
|
module.exports.ParseResult = nativeBinding.ParseResult;
|
|
566
|
-
module.exports.RenderedChunk = nativeBinding.RenderedChunk;
|
|
567
567
|
module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
|
|
568
568
|
module.exports.BindingHookSideEffects = nativeBinding.BindingHookSideEffects;
|
|
569
569
|
module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
|
|
@@ -589,14 +589,23 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
589
589
|
var import_binding = require_chunk.__toESM(require_binding());
|
|
590
590
|
|
|
591
591
|
//#endregion
|
|
592
|
-
//#region
|
|
593
|
-
function wrap(result
|
|
592
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.60.0/node_modules/oxc-parser/wrap.mjs
|
|
593
|
+
function wrap$1(result) {
|
|
594
594
|
let program, module$1, comments, errors;
|
|
595
595
|
return {
|
|
596
596
|
get program() {
|
|
597
|
-
if (!
|
|
598
|
-
|
|
599
|
-
|
|
597
|
+
if (!program) program = JSON.parse(result.program, function(key, value) {
|
|
598
|
+
if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
|
|
599
|
+
if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
|
|
600
|
+
if (Object.hasOwn(this, "regex")) {
|
|
601
|
+
const { regex } = this;
|
|
602
|
+
try {
|
|
603
|
+
return RegExp(regex.pattern, regex.flags);
|
|
604
|
+
} catch (_err) {}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
return value;
|
|
608
|
+
});
|
|
600
609
|
return program;
|
|
601
610
|
},
|
|
602
611
|
get module() {
|
|
@@ -613,6 +622,14 @@ function wrap(result, sourceText) {
|
|
|
613
622
|
}
|
|
614
623
|
};
|
|
615
624
|
}
|
|
625
|
+
|
|
626
|
+
//#endregion
|
|
627
|
+
//#region src/parse-ast-index.ts
|
|
628
|
+
function wrap(result, sourceText) {
|
|
629
|
+
result = wrap$1(result);
|
|
630
|
+
if (result.errors.length > 0) return normalizeParseError(sourceText, result.errors);
|
|
631
|
+
return result.program;
|
|
632
|
+
}
|
|
616
633
|
function normalizeParseError(sourceText, errors) {
|
|
617
634
|
let message = `Parse failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
618
635
|
for (let i = 0; i < errors.length; i++) {
|
|
@@ -637,13 +654,13 @@ function parseAst(sourceText, options, filename) {
|
|
|
637
654
|
return wrap((0, import_binding.parseSync)(filename ?? "file.js", sourceText, {
|
|
638
655
|
...defaultParserOptions,
|
|
639
656
|
...options
|
|
640
|
-
}), sourceText)
|
|
657
|
+
}), sourceText);
|
|
641
658
|
}
|
|
642
659
|
async function parseAstAsync(sourceText, options, filename) {
|
|
643
660
|
return wrap(await (0, import_binding.parseAsync)(filename ?? "file.js", sourceText, {
|
|
644
661
|
...defaultParserOptions,
|
|
645
662
|
...options
|
|
646
|
-
}), sourceText)
|
|
663
|
+
}), sourceText);
|
|
647
664
|
}
|
|
648
665
|
|
|
649
666
|
//#endregion
|
|
@@ -581,6 +581,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
581
581
|
module.exports.BindingOutputChunk = nativeBinding.BindingOutputChunk;
|
|
582
582
|
module.exports.BindingOutputs = nativeBinding.BindingOutputs;
|
|
583
583
|
module.exports.BindingPluginContext = nativeBinding.BindingPluginContext;
|
|
584
|
+
module.exports.BindingRenderedChunk = nativeBinding.BindingRenderedChunk;
|
|
584
585
|
module.exports.BindingRenderedModule = nativeBinding.BindingRenderedModule;
|
|
585
586
|
module.exports.BindingTransformPluginContext = nativeBinding.BindingTransformPluginContext;
|
|
586
587
|
module.exports.BindingWatcher = nativeBinding.BindingWatcher;
|
|
@@ -589,7 +590,6 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
589
590
|
module.exports.Bundler = nativeBinding.Bundler;
|
|
590
591
|
module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
|
|
591
592
|
module.exports.ParseResult = nativeBinding.ParseResult;
|
|
592
|
-
module.exports.RenderedChunk = nativeBinding.RenderedChunk;
|
|
593
593
|
module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
|
|
594
594
|
module.exports.BindingHookSideEffects = nativeBinding.BindingHookSideEffects;
|
|
595
595
|
module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
|
|
@@ -615,14 +615,23 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
615
615
|
var import_binding = __toESM(require_binding());
|
|
616
616
|
|
|
617
617
|
//#endregion
|
|
618
|
-
//#region
|
|
619
|
-
function wrap(result
|
|
618
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.60.0/node_modules/oxc-parser/wrap.mjs
|
|
619
|
+
function wrap$1(result) {
|
|
620
620
|
let program, module$1, comments, errors;
|
|
621
621
|
return {
|
|
622
622
|
get program() {
|
|
623
|
-
if (!
|
|
624
|
-
|
|
625
|
-
|
|
623
|
+
if (!program) program = JSON.parse(result.program, function(key, value) {
|
|
624
|
+
if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
|
|
625
|
+
if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
|
|
626
|
+
if (Object.hasOwn(this, "regex")) {
|
|
627
|
+
const { regex } = this;
|
|
628
|
+
try {
|
|
629
|
+
return RegExp(regex.pattern, regex.flags);
|
|
630
|
+
} catch (_err) {}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
return value;
|
|
634
|
+
});
|
|
626
635
|
return program;
|
|
627
636
|
},
|
|
628
637
|
get module() {
|
|
@@ -639,6 +648,14 @@ function wrap(result, sourceText) {
|
|
|
639
648
|
}
|
|
640
649
|
};
|
|
641
650
|
}
|
|
651
|
+
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region src/parse-ast-index.ts
|
|
654
|
+
function wrap(result, sourceText) {
|
|
655
|
+
result = wrap$1(result);
|
|
656
|
+
if (result.errors.length > 0) return normalizeParseError(sourceText, result.errors);
|
|
657
|
+
return result.program;
|
|
658
|
+
}
|
|
642
659
|
function normalizeParseError(sourceText, errors) {
|
|
643
660
|
let message = `Parse failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
644
661
|
for (let i = 0; i < errors.length; i++) {
|
|
@@ -663,13 +680,13 @@ function parseAst(sourceText, options, filename) {
|
|
|
663
680
|
return wrap((0, import_binding.parseSync)(filename ?? "file.js", sourceText, {
|
|
664
681
|
...defaultParserOptions,
|
|
665
682
|
...options
|
|
666
|
-
}), sourceText)
|
|
683
|
+
}), sourceText);
|
|
667
684
|
}
|
|
668
685
|
async function parseAstAsync(sourceText, options, filename) {
|
|
669
686
|
return wrap(await (0, import_binding.parseAsync)(filename ?? "file.js", sourceText, {
|
|
670
687
|
...defaultParserOptions,
|
|
671
688
|
...options
|
|
672
|
-
}), sourceText)
|
|
689
|
+
}), sourceText);
|
|
673
690
|
}
|
|
674
691
|
|
|
675
692
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-BwtJmE6E.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const valibot = require_chunk.__toESM(require("valibot"));
|
|
6
6
|
const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
|
|
@@ -2861,7 +2861,7 @@ const watch = (input) => {
|
|
|
2861
2861
|
|
|
2862
2862
|
//#endregion
|
|
2863
2863
|
//#region package.json
|
|
2864
|
-
var version = "1.0.0-beta.6-commit.
|
|
2864
|
+
var version = "1.0.0-beta.6-commit.47fe675";
|
|
2865
2865
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2866
2866
|
|
|
2867
2867
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
1
|
+
import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-DFeQGWCn.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
import { toJsonSchema } from "@valibot/to-json-schema";
|
|
@@ -2859,7 +2859,7 @@ const watch = (input) => {
|
|
|
2859
2859
|
|
|
2860
2860
|
//#endregion
|
|
2861
2861
|
//#region package.json
|
|
2862
|
-
var version = "1.0.0-beta.6-commit.
|
|
2862
|
+
var version = "1.0.0-beta.6-commit.47fe675";
|
|
2863
2863
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2864
2864
|
|
|
2865
2865
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -106,6 +106,19 @@ export declare class BindingPluginContext {
|
|
|
106
106
|
addWatchFile(file: string): void
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
export declare class BindingRenderedChunk {
|
|
110
|
+
get name(): string
|
|
111
|
+
get isEntry(): boolean
|
|
112
|
+
get isDynamicEntry(): boolean
|
|
113
|
+
get facadeModuleId(): string | null
|
|
114
|
+
get moduleIds(): Array<string>
|
|
115
|
+
get exports(): Array<string>
|
|
116
|
+
get fileName(): string
|
|
117
|
+
get modules(): BindingModules
|
|
118
|
+
get imports(): Array<string>
|
|
119
|
+
get dynamicImports(): Array<string>
|
|
120
|
+
}
|
|
121
|
+
|
|
109
122
|
export declare class BindingRenderedModule {
|
|
110
123
|
get code(): string | null
|
|
111
124
|
get renderedExports(): Array<string>
|
|
@@ -158,19 +171,6 @@ export declare class ParseResult {
|
|
|
158
171
|
get errors(): Array<OxcError>
|
|
159
172
|
}
|
|
160
173
|
|
|
161
|
-
export declare class RenderedChunk {
|
|
162
|
-
get name(): string
|
|
163
|
-
get isEntry(): boolean
|
|
164
|
-
get isDynamicEntry(): boolean
|
|
165
|
-
get facadeModuleId(): string | null
|
|
166
|
-
get moduleIds(): Array<string>
|
|
167
|
-
get exports(): Array<string>
|
|
168
|
-
get fileName(): string
|
|
169
|
-
get modules(): BindingModules
|
|
170
|
-
get imports(): Array<string>
|
|
171
|
-
get dynamicImports(): Array<string>
|
|
172
|
-
}
|
|
173
|
-
|
|
174
174
|
export interface AliasItem {
|
|
175
175
|
find: string
|
|
176
176
|
replacements: Array<string>
|
|
@@ -516,20 +516,20 @@ export interface BindingOutputOptions {
|
|
|
516
516
|
cssEntryFileNames?: string | ((chunk: PreRenderedChunk) => string)
|
|
517
517
|
cssChunkFileNames?: string | ((chunk: PreRenderedChunk) => string)
|
|
518
518
|
sanitizeFileName?: boolean | ((name: string) => string)
|
|
519
|
-
banner?: (chunk:
|
|
519
|
+
banner?: (chunk: BindingRenderedChunk) => MaybePromise<VoidNullable<string>>
|
|
520
520
|
dir?: string
|
|
521
521
|
file?: string
|
|
522
522
|
esModule?: boolean | 'if-default-prop'
|
|
523
523
|
exports?: 'default' | 'named' | 'none' | 'auto'
|
|
524
524
|
extend?: boolean
|
|
525
525
|
externalLiveBindings?: boolean
|
|
526
|
-
footer?: (chunk:
|
|
526
|
+
footer?: (chunk: BindingRenderedChunk) => MaybePromise<VoidNullable<string>>
|
|
527
527
|
format?: 'es' | 'cjs' | 'iife' | 'umd' | 'app'
|
|
528
528
|
globals?: Record<string, string> | ((name: string) => string)
|
|
529
529
|
hashCharacters?: 'base64' | 'base36' | 'hex'
|
|
530
530
|
inlineDynamicImports?: boolean
|
|
531
|
-
intro?: (chunk:
|
|
532
|
-
outro?: (chunk:
|
|
531
|
+
intro?: (chunk: BindingRenderedChunk) => MaybePromise<VoidNullable<string>>
|
|
532
|
+
outro?: (chunk: BindingRenderedChunk) => MaybePromise<VoidNullable<string>>
|
|
533
533
|
plugins: (BindingBuiltinPlugin | BindingPluginOptions | undefined)[]
|
|
534
534
|
sourcemap?: 'file' | 'inline' | 'hidden'
|
|
535
535
|
sourcemapIgnoreList?: (source: string, sourcemapPath: string) => boolean
|
|
@@ -576,9 +576,9 @@ export interface BindingPluginOptions {
|
|
|
576
576
|
moduleParsedMeta?: BindingPluginHookMeta
|
|
577
577
|
buildEnd?: (ctx: BindingPluginContext, error?: (Error | BindingError)[]) => MaybePromise<VoidNullable>
|
|
578
578
|
buildEndMeta?: BindingPluginHookMeta
|
|
579
|
-
renderChunk?: (ctx: BindingPluginContext, code: string, chunk:
|
|
579
|
+
renderChunk?: (ctx: BindingPluginContext, code: string, chunk: BindingRenderedChunk, opts: BindingNormalizedOptions, chunks: Record<string, BindingRenderedChunk>) => MaybePromise<VoidNullable<BindingHookRenderChunkOutput>>
|
|
580
580
|
renderChunkMeta?: BindingPluginHookMeta
|
|
581
|
-
augmentChunkHash?: (ctx: BindingPluginContext, chunk:
|
|
581
|
+
augmentChunkHash?: (ctx: BindingPluginContext, chunk: BindingRenderedChunk) => MaybePromise<void | string>
|
|
582
582
|
augmentChunkHashMeta?: BindingPluginHookMeta
|
|
583
583
|
renderStart?: (ctx: BindingPluginContext, opts: BindingNormalizedOptions) => void
|
|
584
584
|
renderStartMeta?: BindingPluginHookMeta
|
|
@@ -594,13 +594,13 @@ export interface BindingPluginOptions {
|
|
|
594
594
|
watchChangeMeta?: BindingPluginHookMeta
|
|
595
595
|
closeWatcher?: (ctx: BindingPluginContext) => MaybePromise<VoidNullable>
|
|
596
596
|
closeWatcherMeta?: BindingPluginHookMeta
|
|
597
|
-
banner?: (ctx: BindingPluginContext, chunk:
|
|
597
|
+
banner?: (ctx: BindingPluginContext, chunk: BindingRenderedChunk) => void
|
|
598
598
|
bannerMeta?: BindingPluginHookMeta
|
|
599
|
-
footer?: (ctx: BindingPluginContext, chunk:
|
|
599
|
+
footer?: (ctx: BindingPluginContext, chunk: BindingRenderedChunk) => void
|
|
600
600
|
footerMeta?: BindingPluginHookMeta
|
|
601
|
-
intro?: (ctx: BindingPluginContext, chunk:
|
|
601
|
+
intro?: (ctx: BindingPluginContext, chunk: BindingRenderedChunk) => void
|
|
602
602
|
introMeta?: BindingPluginHookMeta
|
|
603
|
-
outro?: (ctx: BindingPluginContext, chunk:
|
|
603
|
+
outro?: (ctx: BindingPluginContext, chunk: BindingRenderedChunk) => void
|
|
604
604
|
outroMeta?: BindingPluginHookMeta
|
|
605
605
|
}
|
|
606
606
|
|
|
@@ -1108,6 +1108,7 @@ export interface OxcError {
|
|
|
1108
1108
|
message: string
|
|
1109
1109
|
labels: Array<ErrorLabel>
|
|
1110
1110
|
helpMessage?: string
|
|
1111
|
+
codeframe?: string
|
|
1111
1112
|
}
|
|
1112
1113
|
|
|
1113
1114
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BindingRenderedChunk } from '../binding';
|
|
2
2
|
import { RenderedChunk } from '../types/rolldown-output';
|
|
3
3
|
export declare function transformRenderedChunk(chunk: BindingRenderedChunk): RenderedChunk;
|
|
4
4
|
export declare function transformChunkModules(modules: BindingRenderedChunk['modules']): RenderedChunk['modules'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.6-commit.
|
|
3
|
+
"version": "1.0.0-beta.6-commit.47fe675",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
"glob": "^11.0.0",
|
|
112
112
|
"locate-character": "^3.0.0",
|
|
113
113
|
"npm-run-all2": "^7.0.0",
|
|
114
|
+
"oxc-parser": "^0.60.0",
|
|
114
115
|
"remeda": "^2.10.0",
|
|
115
116
|
"rollup": "^4.18.0",
|
|
116
117
|
"signal-exit": "4.1.0",
|
|
@@ -122,21 +123,21 @@
|
|
|
122
123
|
"unbuild": "^3.0.0",
|
|
123
124
|
"why-is-node-running": "^3.0.0",
|
|
124
125
|
"@rolldown/testing": "0.0.1",
|
|
125
|
-
"rolldown": "1.0.0-beta.6-commit.
|
|
126
|
+
"rolldown": "1.0.0-beta.6-commit.47fe675"
|
|
126
127
|
},
|
|
127
128
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.6-commit.
|
|
129
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.6-commit.
|
|
130
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.6-commit.
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-linux-arm64-
|
|
134
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.6-commit.
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-win32-
|
|
138
|
-
"@rolldown/binding-
|
|
139
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.6-commit.
|
|
129
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.6-commit.47fe675",
|
|
130
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.6-commit.47fe675",
|
|
131
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.6-commit.47fe675",
|
|
132
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.6-commit.47fe675",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.6-commit.47fe675",
|
|
134
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.6-commit.47fe675",
|
|
135
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.6-commit.47fe675",
|
|
136
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.6-commit.47fe675",
|
|
137
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.6-commit.47fe675",
|
|
138
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.6-commit.47fe675",
|
|
139
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.6-commit.47fe675",
|
|
140
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.6-commit.47fe675"
|
|
140
141
|
},
|
|
141
142
|
"scripts": {
|
|
142
143
|
"# Scrips for binding #": "_",
|