rolldown 1.0.0-beta.3-commit.bf9a0c5 → 1.0.0-beta.3-commit.a36bf63
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 +3 -3
- 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 +3 -3
- 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-CcVk5ch3.mjs → parse-ast-index-BD-Y2voY.mjs} +2 -8
- package/dist/shared/{parse-ast-index-BGtslpMc.cjs → parse-ast-index-DNiBAU8M.cjs} +2 -8
- package/dist/shared/{src-CLjDLU1x.mjs → src-BakcVATi.mjs} +4 -4
- package/dist/shared/{src-KelqCTsT.cjs → src-DMAnl-uL.cjs} +4 -4
- package/dist/types/binding.d.ts +0 -65
- package/dist/types/plugin/plugin-context.d.ts +1 -1
- package/package.json +17 -17
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-DMAnl-uL.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-DNiBAU8M.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"));
|
|
@@ -1188,7 +1188,7 @@ async function bundleTsConfig(configFile) {
|
|
|
1188
1188
|
transform: {
|
|
1189
1189
|
filter: { id: /\.[cm]?[jt]s$/ },
|
|
1190
1190
|
async handler(code, id) {
|
|
1191
|
-
const injectValues = `const ${dirnameVarName} = ${JSON.stringify(node_path.default.dirname(id))}
|
|
1191
|
+
const injectValues = `const ${dirnameVarName} = ${JSON.stringify(node_path.default.dirname(id))};const ${filenameVarName} = ${JSON.stringify(id)};const ${importMetaUrlVarName} = ${JSON.stringify((0, node_url.pathToFileURL)(id).href)};`;
|
|
1192
1192
|
return {
|
|
1193
1193
|
code: injectValues + code,
|
|
1194
1194
|
map: null
|
|
@@ -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-DMAnl-uL.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-DNiBAU8M.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-DMAnl-uL.cjs');
|
|
2
|
+
require('../shared/parse-ast-index-DNiBAU8M.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-DMAnl-uL.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-DNiBAU8M.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-DNiBAU8M.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-BD-Y2voY.mjs";
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-BakcVATi.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";
|
|
@@ -1184,7 +1184,7 @@ async function bundleTsConfig(configFile) {
|
|
|
1184
1184
|
transform: {
|
|
1185
1185
|
filter: { id: /\.[cm]?[jt]s$/ },
|
|
1186
1186
|
async handler(code, id) {
|
|
1187
|
-
const injectValues = `const ${dirnameVarName} = ${JSON.stringify(path.dirname(id))}
|
|
1187
|
+
const injectValues = `const ${dirnameVarName} = ${JSON.stringify(path.dirname(id))};const ${filenameVarName} = ${JSON.stringify(id)};const ${importMetaUrlVarName} = ${JSON.stringify(pathToFileURL(id).href)};`;
|
|
1188
1188
|
return {
|
|
1189
1189
|
code: injectValues + code,
|
|
1190
1190
|
map: null
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { import_binding } from "../shared/parse-ast-index-
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/parse-ast-index-BD-Y2voY.mjs";
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-BakcVATi.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-BD-Y2voY.mjs";
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-BakcVATi.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-BD-Y2voY.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-BakcVATi.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -588,7 +588,6 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
588
588
|
module.exports.BindingWatcherChangeData = nativeBinding.BindingWatcherChangeData;
|
|
589
589
|
module.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;
|
|
590
590
|
module.exports.Bundler = nativeBinding.Bundler;
|
|
591
|
-
module.exports.MagicString = nativeBinding.MagicString;
|
|
592
591
|
module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
|
|
593
592
|
module.exports.ParseResult = nativeBinding.ParseResult;
|
|
594
593
|
module.exports.RenderedChunk = nativeBinding.RenderedChunk;
|
|
@@ -614,7 +613,7 @@ var import_binding = __toESM(require_binding());
|
|
|
614
613
|
//#endregion
|
|
615
614
|
//#region src/parse-ast-index.ts
|
|
616
615
|
function wrap(result, sourceText) {
|
|
617
|
-
let program, module$1, comments, errors
|
|
616
|
+
let program, module$1, comments, errors;
|
|
618
617
|
return {
|
|
619
618
|
get program() {
|
|
620
619
|
if (!errors) errors = result.errors;
|
|
@@ -633,10 +632,6 @@ function wrap(result, sourceText) {
|
|
|
633
632
|
get errors() {
|
|
634
633
|
if (!errors) errors = result.errors;
|
|
635
634
|
return errors;
|
|
636
|
-
},
|
|
637
|
-
get magicString() {
|
|
638
|
-
if (!magicString) magicString = result.magicString;
|
|
639
|
-
return magicString;
|
|
640
635
|
}
|
|
641
636
|
};
|
|
642
637
|
}
|
|
@@ -658,8 +653,7 @@ function normalizeParseError(sourceText, errors) {
|
|
|
658
653
|
}
|
|
659
654
|
const defaultParserOptions = {
|
|
660
655
|
lang: "js",
|
|
661
|
-
preserveParens: false
|
|
662
|
-
convertSpanUtf16: true
|
|
656
|
+
preserveParens: false
|
|
663
657
|
};
|
|
664
658
|
function parseAst(sourceText, options, filename) {
|
|
665
659
|
return wrap((0, import_binding.parseSync)(filename ?? "file.js", sourceText, {
|
|
@@ -562,7 +562,6 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
562
562
|
module.exports.BindingWatcherChangeData = nativeBinding.BindingWatcherChangeData;
|
|
563
563
|
module.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;
|
|
564
564
|
module.exports.Bundler = nativeBinding.Bundler;
|
|
565
|
-
module.exports.MagicString = nativeBinding.MagicString;
|
|
566
565
|
module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
|
|
567
566
|
module.exports.ParseResult = nativeBinding.ParseResult;
|
|
568
567
|
module.exports.RenderedChunk = nativeBinding.RenderedChunk;
|
|
@@ -588,7 +587,7 @@ var import_binding = require_chunk.__toESM(require_binding());
|
|
|
588
587
|
//#endregion
|
|
589
588
|
//#region src/parse-ast-index.ts
|
|
590
589
|
function wrap(result, sourceText) {
|
|
591
|
-
let program, module$1, comments, errors
|
|
590
|
+
let program, module$1, comments, errors;
|
|
592
591
|
return {
|
|
593
592
|
get program() {
|
|
594
593
|
if (!errors) errors = result.errors;
|
|
@@ -607,10 +606,6 @@ function wrap(result, sourceText) {
|
|
|
607
606
|
get errors() {
|
|
608
607
|
if (!errors) errors = result.errors;
|
|
609
608
|
return errors;
|
|
610
|
-
},
|
|
611
|
-
get magicString() {
|
|
612
|
-
if (!magicString) magicString = result.magicString;
|
|
613
|
-
return magicString;
|
|
614
609
|
}
|
|
615
610
|
};
|
|
616
611
|
}
|
|
@@ -632,8 +627,7 @@ function normalizeParseError(sourceText, errors) {
|
|
|
632
627
|
}
|
|
633
628
|
const defaultParserOptions = {
|
|
634
629
|
lang: "js",
|
|
635
|
-
preserveParens: false
|
|
636
|
-
convertSpanUtf16: true
|
|
630
|
+
preserveParens: false
|
|
637
631
|
};
|
|
638
632
|
function parseAst(sourceText, options, filename) {
|
|
639
633
|
return wrap((0, import_binding.parseSync)(filename ?? "file.js", sourceText, {
|
|
@@ -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-BD-Y2voY.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
import { Worker } from "node:worker_threads";
|
|
@@ -804,7 +804,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
804
804
|
...info
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
|
-
emitFile(file) {
|
|
807
|
+
emitFile = (file) => {
|
|
808
808
|
if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
|
|
809
809
|
if (file.type === "chunk") return this.context.emitChunk(file);
|
|
810
810
|
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
@@ -814,7 +814,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
814
814
|
originalFileName: file.originalFileName || void 0,
|
|
815
815
|
source: bindingAssetSource(file.source)
|
|
816
816
|
}, filename, fnSanitizedFileName);
|
|
817
|
-
}
|
|
817
|
+
};
|
|
818
818
|
getAssetFileNames(file) {
|
|
819
819
|
if (typeof this.outputOptions.assetFileNames === "function") return this.outputOptions.assetFileNames({
|
|
820
820
|
names: file.name ? [file.name] : [],
|
|
@@ -2705,7 +2705,7 @@ const watch = (input) => {
|
|
|
2705
2705
|
|
|
2706
2706
|
//#endregion
|
|
2707
2707
|
//#region package.json
|
|
2708
|
-
var version = "1.0.0-beta.3-commit.
|
|
2708
|
+
var version = "1.0.0-beta.3-commit.a36bf63";
|
|
2709
2709
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2710
2710
|
|
|
2711
2711
|
//#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-DNiBAU8M.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_buffer = require_chunk.__toESM(require("node:buffer"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -806,7 +806,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
806
806
|
...info
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
emitFile(file) {
|
|
809
|
+
emitFile = (file) => {
|
|
810
810
|
if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
|
|
811
811
|
if (file.type === "chunk") return this.context.emitChunk(file);
|
|
812
812
|
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
@@ -816,7 +816,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
816
816
|
originalFileName: file.originalFileName || void 0,
|
|
817
817
|
source: bindingAssetSource(file.source)
|
|
818
818
|
}, filename, fnSanitizedFileName);
|
|
819
|
-
}
|
|
819
|
+
};
|
|
820
820
|
getAssetFileNames(file) {
|
|
821
821
|
if (typeof this.outputOptions.assetFileNames === "function") return this.outputOptions.assetFileNames({
|
|
822
822
|
names: file.name ? [file.name] : [],
|
|
@@ -2707,7 +2707,7 @@ const watch = (input) => {
|
|
|
2707
2707
|
|
|
2708
2708
|
//#endregion
|
|
2709
2709
|
//#region package.json
|
|
2710
|
-
var version = "1.0.0-beta.3-commit.
|
|
2710
|
+
var version = "1.0.0-beta.3-commit.a36bf63";
|
|
2711
2711
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2712
2712
|
|
|
2713
2713
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -150,41 +150,6 @@ export declare class Bundler {
|
|
|
150
150
|
generateHmrPatch(changedFiles: Array<string>): Promise<string>
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
export declare class MagicString {
|
|
154
|
-
/** Get source text from utf8 offset. */
|
|
155
|
-
getSourceText(start: number, end: number): string
|
|
156
|
-
/** Get 0-based line and column number from utf8 offset. */
|
|
157
|
-
getLineColumnNumber(offset: number): LineColumn
|
|
158
|
-
/** Get UTF16 byte offset from UTF8 byte offset. */
|
|
159
|
-
getUtf16ByteOffset(offset: number): number
|
|
160
|
-
length(): number
|
|
161
|
-
toString(): string
|
|
162
|
-
hasChanged(): boolean
|
|
163
|
-
append(input: string): this
|
|
164
|
-
appendLeft(index: number, input: string): this
|
|
165
|
-
appendRight(index: number, input: string): this
|
|
166
|
-
indent(): this
|
|
167
|
-
prepend(input: string): this
|
|
168
|
-
prependLeft(index: number, input: string): this
|
|
169
|
-
prependRight(index: number, input: string): this
|
|
170
|
-
relocate(start: number, end: number, to: number): this
|
|
171
|
-
remove(start: number, end: number): this
|
|
172
|
-
generateMap(options?: Partial<GenerateDecodedMapOptions>): {
|
|
173
|
-
toString: () => string;
|
|
174
|
-
toUrl: () => string;
|
|
175
|
-
toMap: () => {
|
|
176
|
-
file?: string
|
|
177
|
-
mappings: string
|
|
178
|
-
names: Array<string>
|
|
179
|
-
sourceRoot?: string
|
|
180
|
-
sources: Array<string>
|
|
181
|
-
sourcesContent?: Array<string>
|
|
182
|
-
version: number
|
|
183
|
-
x_google_ignoreList?: Array<number>
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
153
|
export declare class ParallelJsPluginRegistry {
|
|
189
154
|
id: number
|
|
190
155
|
workerCount: number
|
|
@@ -196,7 +161,6 @@ export declare class ParseResult {
|
|
|
196
161
|
get module(): EcmaScriptModule
|
|
197
162
|
get comments(): Array<Comment>
|
|
198
163
|
get errors(): Array<OxcError>
|
|
199
|
-
get magicString(): MagicString
|
|
200
164
|
}
|
|
201
165
|
|
|
202
166
|
export declare class RenderedChunk {
|
|
@@ -855,15 +819,6 @@ export interface ExtensionAliasItem {
|
|
|
855
819
|
replacements: Array<string>
|
|
856
820
|
}
|
|
857
821
|
|
|
858
|
-
export interface GenerateDecodedMapOptions {
|
|
859
|
-
/** The filename of the file containing the original source. */
|
|
860
|
-
source?: string
|
|
861
|
-
/** Whether to include the original content in the map's `sourcesContent` array. */
|
|
862
|
-
includeContent: boolean
|
|
863
|
-
/** Whether the mapping should be high-resolution. */
|
|
864
|
-
hires: boolean | 'boundary'
|
|
865
|
-
}
|
|
866
|
-
|
|
867
822
|
export type HelperMode = /**
|
|
868
823
|
* Runtime mode (default): Helper functions are imported from a runtime package.
|
|
869
824
|
*
|
|
@@ -1051,15 +1006,6 @@ export interface JsxOptions {
|
|
|
1051
1006
|
refresh?: boolean | ReactRefreshOptions
|
|
1052
1007
|
}
|
|
1053
1008
|
|
|
1054
|
-
export interface LineColumn {
|
|
1055
|
-
line: number
|
|
1056
|
-
column: number
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
export interface OverwriteOptions {
|
|
1060
|
-
contentOnly: boolean
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
1009
|
export interface OxcError {
|
|
1064
1010
|
severity: Severity
|
|
1065
1011
|
message: string
|
|
@@ -1088,11 +1034,6 @@ export interface ParserOptions {
|
|
|
1088
1034
|
* Default: true
|
|
1089
1035
|
*/
|
|
1090
1036
|
preserveParens?: boolean
|
|
1091
|
-
/**
|
|
1092
|
-
* Default: false
|
|
1093
|
-
* @experimental Only for internal usage on Rolldown and Vite.
|
|
1094
|
-
*/
|
|
1095
|
-
convertSpanUtf16?: boolean
|
|
1096
1037
|
}
|
|
1097
1038
|
|
|
1098
1039
|
/** Parse synchronously. */
|
|
@@ -1147,12 +1088,6 @@ export interface SourceMap {
|
|
|
1147
1088
|
x_google_ignoreList?: Array<number>
|
|
1148
1089
|
}
|
|
1149
1090
|
|
|
1150
|
-
export interface SourceMapOptions {
|
|
1151
|
-
includeContent?: boolean
|
|
1152
|
-
source?: string
|
|
1153
|
-
hires?: boolean
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
1091
|
export interface Span {
|
|
1157
1092
|
start: number
|
|
1158
1093
|
end: number
|
|
@@ -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: EmittedAsset | EmittedChunk)
|
|
48
|
+
emitFile: (file: EmittedAsset | EmittedChunk) => string;
|
|
49
49
|
private getAssetFileNames;
|
|
50
50
|
getFileName(referenceId: string): string;
|
|
51
51
|
getModuleIds(): IterableIterator<string>;
|
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.a36bf63",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@oxc-project/types": "0.
|
|
87
|
+
"@oxc-project/types": "0.53.0",
|
|
88
88
|
"@valibot/to-json-schema": "1.0.0-beta.5",
|
|
89
89
|
"valibot": "1.0.0-beta.14"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@oxc-project/runtime": "0.
|
|
92
|
+
"@oxc-project/runtime": "0.53.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"@oxc-project/runtime": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
101
|
-
"@napi-rs/cli": "^3.0.0-alpha.
|
|
101
|
+
"@napi-rs/cli": "^3.0.0-alpha.72",
|
|
102
102
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
103
103
|
"@oxc-node/core": "^0.0.19",
|
|
104
104
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -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.a36bf63"
|
|
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-
|
|
132
|
-
"@rolldown/binding-linux-
|
|
133
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.
|
|
134
|
-
"@rolldown/binding-linux-
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
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.a36bf63",
|
|
129
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.a36bf63",
|
|
130
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.a36bf63",
|
|
131
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.a36bf63",
|
|
132
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.a36bf63",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.a36bf63",
|
|
134
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.a36bf63",
|
|
135
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.a36bf63",
|
|
136
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.a36bf63",
|
|
137
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.a36bf63",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.a36bf63",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.a36bf63"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|