@rolldown/browser 1.0.0-beta.19 → 1.0.0-beta.21
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/cli.cjs +5 -5
- package/dist/cli.mjs +5 -5
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +1 -3
- package/dist/experimental-index.cjs +2 -4
- package/dist/experimental-index.d.cts +2 -4
- package/dist/experimental-index.d.mts +2 -4
- package/dist/experimental-index.mjs +2 -4
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-D__94uwg.d.cts → binding--Ro_HG7S.d.mts} +39 -0
- package/dist/shared/{binding-DwMf_OTa.d.mts → binding-DBnJxycu.d.cts} +39 -0
- package/dist/shared/{define-config-DinD1Bta.d.mts → define-config-3jyxkSn6.d.mts} +1 -1
- package/dist/shared/{define-config-STK7IJOm.d.cts → define-config-LuFmoc43.d.cts} +1 -1
- package/dist/shared/{load-config-CC2eQgDy.cjs → load-config--g9e2MRO.cjs} +1 -1
- package/dist/shared/{load-config-Cb7g06QH.mjs → load-config-DnUMpIsk.mjs} +1 -1
- package/dist/shared/{parse-ast-index-BHw-MFh6.mjs → parse-ast-index-BzdtcWzA.mjs} +3 -3
- package/dist/shared/{parse-ast-index-DQhRVBEm.cjs → parse-ast-index-CGTVCgvx.cjs} +3 -3
- package/dist/shared/{src-B0_Q9W-Q.cjs → src-B3ZW8_Y7.cjs} +4 -4
- package/dist/shared/{src-jYrhBNtz.mjs → src-DLhNmBff.mjs} +4 -4
- package/dist/{src-CLm8PUu7.js → src-jKfrtJ37.js} +6 -6
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-B3ZW8_Y7.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
5
|
-
const require_load_config = require('./shared/load-config
|
|
4
|
+
require('./shared/parse-ast-index-CGTVCgvx.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config--g9e2MRO.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
8
8
|
const node_util = require_chunk.__toESM(require("node:util"));
|
|
@@ -1423,8 +1423,8 @@ const process$2 = globalThis.process;
|
|
|
1423
1423
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1424
1424
|
|
|
1425
1425
|
//#endregion
|
|
1426
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1427
|
-
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1426
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.75.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1427
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.75.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1428
1428
|
function _usingCtx() {
|
|
1429
1429
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1430
1430
|
var n$2 = Error();
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
1
|
+
import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-DLhNmBff.mjs";
|
|
2
2
|
import { arraify } from "./shared/dist-BoWaIc-K.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
3
|
+
import "./shared/parse-ast-index-BzdtcWzA.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-DnUMpIsk.mjs";
|
|
5
5
|
import path, { sep } from "node:path";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
@@ -1422,8 +1422,8 @@ const process$2 = globalThis.process;
|
|
|
1422
1422
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1423
1423
|
|
|
1424
1424
|
//#endregion
|
|
1425
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1426
|
-
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1425
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.75.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1426
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.75.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1427
1427
|
function _usingCtx() {
|
|
1428
1428
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1429
1429
|
var n$2 = Error();
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-B3ZW8_Y7.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
4
|
-
const require_load_config = require('./shared/load-config
|
|
3
|
+
require('./shared/parse-ast-index-CGTVCgvx.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config--g9e2MRO.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-DBnJxycu.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-LuFmoc43.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding--Ro_HG7S.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-3jyxkSn6.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig, version } from "./shared/src-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-DLhNmBff.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
3
|
+
import "./shared/parse-ast-index-BzdtcWzA.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-DnUMpIsk.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-jKfrtJ37.js";
|
|
2
2
|
import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -37,7 +37,6 @@ function aliasPlugin(config) {
|
|
|
37
37
|
* ```js
|
|
38
38
|
* replacePlugin({
|
|
39
39
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
40
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
41
40
|
* __buildVersion: 15
|
|
42
41
|
* })
|
|
43
42
|
* ```
|
|
@@ -46,7 +45,6 @@ function aliasPlugin(config) {
|
|
|
46
45
|
* ```js
|
|
47
46
|
* replacePlugin({
|
|
48
47
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
49
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
50
48
|
* __buildVersion: 15
|
|
51
49
|
* }, {
|
|
52
50
|
* preventAssignment: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-B3ZW8_Y7.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-CGTVCgvx.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
7
7
|
|
|
@@ -46,7 +46,6 @@ function aliasPlugin(config) {
|
|
|
46
46
|
* ```js
|
|
47
47
|
* replacePlugin({
|
|
48
48
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
49
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
50
49
|
* __buildVersion: 15
|
|
51
50
|
* })
|
|
52
51
|
* ```
|
|
@@ -55,7 +54,6 @@ function aliasPlugin(config) {
|
|
|
55
54
|
* ```js
|
|
56
55
|
* replacePlugin({
|
|
57
56
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
58
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
59
57
|
* __buildVersion: 15
|
|
60
58
|
* }, {
|
|
61
59
|
* preventAssignment: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-DBnJxycu.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-LuFmoc43.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -33,7 +33,6 @@ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
|
33
33
|
* ```js
|
|
34
34
|
* replacePlugin({
|
|
35
35
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
36
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
37
36
|
* __buildVersion: 15
|
|
38
37
|
* })
|
|
39
38
|
* ```
|
|
@@ -42,7 +41,6 @@ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
|
42
41
|
* ```js
|
|
43
42
|
* replacePlugin({
|
|
44
43
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
45
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
46
44
|
* __buildVersion: 15
|
|
47
45
|
* }, {
|
|
48
46
|
* preventAssignment: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding--Ro_HG7S.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-3jyxkSn6.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -33,7 +33,6 @@ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
|
33
33
|
* ```js
|
|
34
34
|
* replacePlugin({
|
|
35
35
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
36
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
37
36
|
* __buildVersion: 15
|
|
38
37
|
* })
|
|
39
38
|
* ```
|
|
@@ -42,7 +41,6 @@ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
|
42
41
|
* ```js
|
|
43
42
|
* replacePlugin({
|
|
44
43
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
45
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
46
44
|
* __buildVersion: 15
|
|
47
45
|
* }, {
|
|
48
46
|
* preventAssignment: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-DLhNmBff.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-BzdtcWzA.mjs";
|
|
4
4
|
import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
@@ -45,7 +45,6 @@ function aliasPlugin(config) {
|
|
|
45
45
|
* ```js
|
|
46
46
|
* replacePlugin({
|
|
47
47
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
48
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
49
48
|
* __buildVersion: 15
|
|
50
49
|
* })
|
|
51
50
|
* ```
|
|
@@ -54,7 +53,6 @@ function aliasPlugin(config) {
|
|
|
54
53
|
* ```js
|
|
55
54
|
* replacePlugin({
|
|
56
55
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
57
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
58
56
|
* __buildVersion: 15
|
|
59
57
|
* }, {
|
|
60
58
|
* preventAssignment: false,
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-DBnJxycu.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-LuFmoc43.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding--Ro_HG7S.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-3jyxkSn6.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-B3ZW8_Y7.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
3
|
+
require('./shared/parse-ast-index-CGTVCgvx.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
|
6
6
|
exports.build = require_src.build;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-DBnJxycu.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-LuFmoc43.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding--Ro_HG7S.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-3jyxkSn6.mjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-DLhNmBff.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-BzdtcWzA.mjs";
|
|
4
4
|
|
|
5
5
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-B3ZW8_Y7.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-CGTVCgvx.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PluginContextData, bindingifyPlugin } from "./shared/src-
|
|
1
|
+
import { PluginContextData, bindingifyPlugin } from "./shared/src-DLhNmBff.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-BzdtcWzA.mjs";
|
|
4
4
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-DBnJxycu.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-LuFmoc43.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding--Ro_HG7S.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-3jyxkSn6.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.cjs
CHANGED
|
@@ -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-CGTVCgvx.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst;
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
|
package/dist/parse-ast-index.mjs
CHANGED
|
Binary file
|
|
@@ -125,6 +125,14 @@ interface ParserOptions {
|
|
|
125
125
|
* The type of the file is determined from `lang` option, or extension of provided `filename`.
|
|
126
126
|
*/
|
|
127
127
|
astType?: 'js' | 'ts';
|
|
128
|
+
/**
|
|
129
|
+
* Controls whether the `range` property is included on AST nodes.
|
|
130
|
+
* The `range` property is a `[number, number]` which indicates the start/end offsets
|
|
131
|
+
* of the node in the file contents.
|
|
132
|
+
*
|
|
133
|
+
* @default false
|
|
134
|
+
*/
|
|
135
|
+
range?: boolean;
|
|
128
136
|
/**
|
|
129
137
|
* Emit `ParenthesizedExpression` and `TSParenthesizedType` in AST.
|
|
130
138
|
*
|
|
@@ -252,6 +260,22 @@ declare class ResolverFactory {
|
|
|
252
260
|
/** Asynchronously resolve `specifier` at an absolute path to a `directory`. */
|
|
253
261
|
async(directory: string, request: string): Promise<ResolveResult>;
|
|
254
262
|
}
|
|
263
|
+
|
|
264
|
+
/** Node.js builtin module when `Options::builtin_modules` is enabled. */
|
|
265
|
+
interface Builtin {
|
|
266
|
+
/**
|
|
267
|
+
* Resolved module.
|
|
268
|
+
*
|
|
269
|
+
* Always prefixed with "node:" in compliance with the ESM specification.
|
|
270
|
+
*/
|
|
271
|
+
resolved: string;
|
|
272
|
+
/**
|
|
273
|
+
* Whether the request was prefixed with `node:` or not.
|
|
274
|
+
* `fs` -> `false`.
|
|
275
|
+
* `node:fs` returns `true`.
|
|
276
|
+
*/
|
|
277
|
+
isRuntimeModule: boolean;
|
|
278
|
+
}
|
|
255
279
|
declare enum EnforceExtension {
|
|
256
280
|
Auto = 0,
|
|
257
281
|
Enabled = 1,
|
|
@@ -273,6 +297,8 @@ interface NapiResolveOptions {
|
|
|
273
297
|
* Default `None`
|
|
274
298
|
*/
|
|
275
299
|
tsconfig?: TsconfigOptions;
|
|
300
|
+
/** Enable Yarn Plug'n'Play */
|
|
301
|
+
yarnPnp?: boolean;
|
|
276
302
|
/**
|
|
277
303
|
* Alias for [ResolveOptions::alias] and [ResolveOptions::fallback].
|
|
278
304
|
*
|
|
@@ -423,10 +449,22 @@ interface NapiResolveOptions {
|
|
|
423
449
|
* Default `false`
|
|
424
450
|
*/
|
|
425
451
|
moduleType?: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Allow `exports` field in `require('../directory')`.
|
|
454
|
+
*
|
|
455
|
+
* This is not part of the spec but some vite projects rely on this behavior.
|
|
456
|
+
* See
|
|
457
|
+
* * <https://github.com/vitejs/vite/pull/20252>
|
|
458
|
+
* * <https://github.com/nodejs/node/issues/58827>
|
|
459
|
+
*
|
|
460
|
+
* Default: `false`
|
|
461
|
+
*/
|
|
462
|
+
allowPackageExportsInDirectoryResolve?: boolean;
|
|
426
463
|
}
|
|
427
464
|
interface ResolveResult {
|
|
428
465
|
path?: string;
|
|
429
466
|
error?: string;
|
|
467
|
+
builtin?: Builtin;
|
|
430
468
|
/**
|
|
431
469
|
* Module type for this path.
|
|
432
470
|
*
|
|
@@ -1194,6 +1232,7 @@ interface BindingViteResolvePluginResolveOptions {
|
|
|
1194
1232
|
tryIndex: boolean;
|
|
1195
1233
|
tryPrefix?: string;
|
|
1196
1234
|
preserveSymlinks: boolean;
|
|
1235
|
+
tsconfigPaths: boolean;
|
|
1197
1236
|
}
|
|
1198
1237
|
interface PreRenderedChunk {
|
|
1199
1238
|
name: string;
|
|
@@ -125,6 +125,14 @@ interface ParserOptions {
|
|
|
125
125
|
* The type of the file is determined from `lang` option, or extension of provided `filename`.
|
|
126
126
|
*/
|
|
127
127
|
astType?: 'js' | 'ts';
|
|
128
|
+
/**
|
|
129
|
+
* Controls whether the `range` property is included on AST nodes.
|
|
130
|
+
* The `range` property is a `[number, number]` which indicates the start/end offsets
|
|
131
|
+
* of the node in the file contents.
|
|
132
|
+
*
|
|
133
|
+
* @default false
|
|
134
|
+
*/
|
|
135
|
+
range?: boolean;
|
|
128
136
|
/**
|
|
129
137
|
* Emit `ParenthesizedExpression` and `TSParenthesizedType` in AST.
|
|
130
138
|
*
|
|
@@ -252,6 +260,22 @@ declare class ResolverFactory {
|
|
|
252
260
|
/** Asynchronously resolve `specifier` at an absolute path to a `directory`. */
|
|
253
261
|
async(directory: string, request: string): Promise<ResolveResult>;
|
|
254
262
|
}
|
|
263
|
+
|
|
264
|
+
/** Node.js builtin module when `Options::builtin_modules` is enabled. */
|
|
265
|
+
interface Builtin {
|
|
266
|
+
/**
|
|
267
|
+
* Resolved module.
|
|
268
|
+
*
|
|
269
|
+
* Always prefixed with "node:" in compliance with the ESM specification.
|
|
270
|
+
*/
|
|
271
|
+
resolved: string;
|
|
272
|
+
/**
|
|
273
|
+
* Whether the request was prefixed with `node:` or not.
|
|
274
|
+
* `fs` -> `false`.
|
|
275
|
+
* `node:fs` returns `true`.
|
|
276
|
+
*/
|
|
277
|
+
isRuntimeModule: boolean;
|
|
278
|
+
}
|
|
255
279
|
declare enum EnforceExtension {
|
|
256
280
|
Auto = 0,
|
|
257
281
|
Enabled = 1,
|
|
@@ -273,6 +297,8 @@ interface NapiResolveOptions {
|
|
|
273
297
|
* Default `None`
|
|
274
298
|
*/
|
|
275
299
|
tsconfig?: TsconfigOptions;
|
|
300
|
+
/** Enable Yarn Plug'n'Play */
|
|
301
|
+
yarnPnp?: boolean;
|
|
276
302
|
/**
|
|
277
303
|
* Alias for [ResolveOptions::alias] and [ResolveOptions::fallback].
|
|
278
304
|
*
|
|
@@ -423,10 +449,22 @@ interface NapiResolveOptions {
|
|
|
423
449
|
* Default `false`
|
|
424
450
|
*/
|
|
425
451
|
moduleType?: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Allow `exports` field in `require('../directory')`.
|
|
454
|
+
*
|
|
455
|
+
* This is not part of the spec but some vite projects rely on this behavior.
|
|
456
|
+
* See
|
|
457
|
+
* * <https://github.com/vitejs/vite/pull/20252>
|
|
458
|
+
* * <https://github.com/nodejs/node/issues/58827>
|
|
459
|
+
*
|
|
460
|
+
* Default: `false`
|
|
461
|
+
*/
|
|
462
|
+
allowPackageExportsInDirectoryResolve?: boolean;
|
|
426
463
|
}
|
|
427
464
|
interface ResolveResult {
|
|
428
465
|
path?: string;
|
|
429
466
|
error?: string;
|
|
467
|
+
builtin?: Builtin;
|
|
430
468
|
/**
|
|
431
469
|
* Module type for this path.
|
|
432
470
|
*
|
|
@@ -1194,6 +1232,7 @@ interface BindingViteResolvePluginResolveOptions {
|
|
|
1194
1232
|
tryIndex: boolean;
|
|
1195
1233
|
tryPrefix?: string;
|
|
1196
1234
|
preserveSymlinks: boolean;
|
|
1235
|
+
tsconfigPaths: boolean;
|
|
1197
1236
|
}
|
|
1198
1237
|
interface PreRenderedChunk {
|
|
1199
1238
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding--Ro_HG7S.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-DBnJxycu.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-B3ZW8_Y7.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -15,7 +15,7 @@ const ELLIPSIS = "...";
|
|
|
15
15
|
function getCodeFrame(source, line, column) {
|
|
16
16
|
let lines = source.split("\n");
|
|
17
17
|
if (line > lines.length) return "";
|
|
18
|
-
const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length + MIN_CHARACTERS_SHOWN_AFTER_LOCATION +
|
|
18
|
+
const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length + MIN_CHARACTERS_SHOWN_AFTER_LOCATION + 3, LINE_TRUNCATE_LENGTH);
|
|
19
19
|
const frameStart = Math.max(0, line - 3);
|
|
20
20
|
let frameEnd = Math.min(line + 2, lines.length);
|
|
21
21
|
lines = lines.slice(frameStart, frameEnd);
|
|
@@ -29,7 +29,7 @@ function getCodeFrame(source, line, column) {
|
|
|
29
29
|
let lineNumber = String(index + frameStart + 1);
|
|
30
30
|
while (lineNumber.length < digits) lineNumber = ` ${lineNumber}`;
|
|
31
31
|
let displayedLine = tabsToSpaces(sourceLine);
|
|
32
|
-
if (displayedLine.length > maxLineLength) displayedLine = `${displayedLine.slice(0, maxLineLength -
|
|
32
|
+
if (displayedLine.length > maxLineLength) displayedLine = `${displayedLine.slice(0, maxLineLength - 3)}${ELLIPSIS}`;
|
|
33
33
|
if (isErrorLine) {
|
|
34
34
|
const indicator = spaces(digits + 2 + tabsToSpaces(sourceLine.slice(0, column)).length) + "^";
|
|
35
35
|
return `${lineNumber}: ${displayedLine}\n${indicator}`;
|
|
@@ -180,7 +180,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
//#endregion
|
|
183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.75.0/node_modules/oxc-parser/wrap.mjs
|
|
184
184
|
function wrap$1(result) {
|
|
185
185
|
let program, module, comments, errors;
|
|
186
186
|
return {
|
|
@@ -16,7 +16,7 @@ const ELLIPSIS = "...";
|
|
|
16
16
|
function getCodeFrame(source, line, column) {
|
|
17
17
|
let lines = source.split("\n");
|
|
18
18
|
if (line > lines.length) return "";
|
|
19
|
-
const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length + MIN_CHARACTERS_SHOWN_AFTER_LOCATION +
|
|
19
|
+
const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length + MIN_CHARACTERS_SHOWN_AFTER_LOCATION + 3, LINE_TRUNCATE_LENGTH);
|
|
20
20
|
const frameStart = Math.max(0, line - 3);
|
|
21
21
|
let frameEnd = Math.min(line + 2, lines.length);
|
|
22
22
|
lines = lines.slice(frameStart, frameEnd);
|
|
@@ -30,7 +30,7 @@ function getCodeFrame(source, line, column) {
|
|
|
30
30
|
let lineNumber = String(index + frameStart + 1);
|
|
31
31
|
while (lineNumber.length < digits) lineNumber = ` ${lineNumber}`;
|
|
32
32
|
let displayedLine = tabsToSpaces(sourceLine);
|
|
33
|
-
if (displayedLine.length > maxLineLength) displayedLine = `${displayedLine.slice(0, maxLineLength -
|
|
33
|
+
if (displayedLine.length > maxLineLength) displayedLine = `${displayedLine.slice(0, maxLineLength - 3)}${ELLIPSIS}`;
|
|
34
34
|
if (isErrorLine) {
|
|
35
35
|
const indicator = spaces(digits + 2 + tabsToSpaces(sourceLine.slice(0, column)).length) + "^";
|
|
36
36
|
return `${lineNumber}: ${displayedLine}\n${indicator}`;
|
|
@@ -181,7 +181,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
//#endregion
|
|
184
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
184
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.75.0/node_modules/oxc-parser/wrap.mjs
|
|
185
185
|
function wrap$1(result) {
|
|
186
186
|
let program, module$1, comments, errors;
|
|
187
187
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
2
|
const require_dist = require('./dist-BMVjvV-v.cjs');
|
|
3
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-CGTVCgvx.cjs');
|
|
4
4
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -8,7 +8,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
8
8
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.
|
|
11
|
+
var version = "1.0.0-beta.21";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -4377,10 +4377,10 @@ function isComposablePlugin(plugin) {
|
|
|
4377
4377
|
const hasNotComposablePattern = t(plugin).some((hookName) => {
|
|
4378
4378
|
if (!isPluginHookName(hookName)) return false;
|
|
4379
4379
|
const OK_TO_COMPOSE = false;
|
|
4380
|
-
if (isUnsupportedHooks(hookName)) return
|
|
4380
|
+
if (isUnsupportedHooks(hookName)) return true;
|
|
4381
4381
|
if (plugin[hookName]) {
|
|
4382
4382
|
const { meta } = normalizeHook(plugin[hookName]);
|
|
4383
|
-
if (meta.order === "pre" || meta.order === "post") return
|
|
4383
|
+
if (meta.order === "pre" || meta.order === "post") return true;
|
|
4384
4384
|
}
|
|
4385
4385
|
return OK_TO_COMPOSE;
|
|
4386
4386
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { and, arraify, code, exclude, id, include, isNullish, moduleType, noop, or, unimplemented, unreachable, unsupported } from "./dist-BoWaIc-K.mjs";
|
|
2
|
-
import { augmentCodeLocation, error, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
2
|
+
import { augmentCodeLocation, error, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-BzdtcWzA.mjs";
|
|
3
3
|
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -33,7 +33,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region package.json
|
|
36
|
-
var version = "1.0.0-beta.
|
|
36
|
+
var version = "1.0.0-beta.21";
|
|
37
37
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
@@ -4402,10 +4402,10 @@ function isComposablePlugin(plugin) {
|
|
|
4402
4402
|
const hasNotComposablePattern = t(plugin).some((hookName) => {
|
|
4403
4403
|
if (!isPluginHookName(hookName)) return false;
|
|
4404
4404
|
const OK_TO_COMPOSE = false;
|
|
4405
|
-
if (isUnsupportedHooks(hookName)) return
|
|
4405
|
+
if (isUnsupportedHooks(hookName)) return true;
|
|
4406
4406
|
if (plugin[hookName]) {
|
|
4407
4407
|
const { meta } = normalizeHook(plugin[hookName]);
|
|
4408
|
-
if (meta.order === "pre" || meta.order === "post") return
|
|
4408
|
+
if (meta.order === "pre" || meta.order === "post") return true;
|
|
4409
4409
|
}
|
|
4410
4410
|
return OK_TO_COMPOSE;
|
|
4411
4411
|
});
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region package.json
|
|
30
|
-
var version = "1.0.0-beta.
|
|
30
|
+
var version = "1.0.0-beta.21";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -626,7 +626,7 @@ const ELLIPSIS = "...";
|
|
|
626
626
|
function getCodeFrame(source, line, column) {
|
|
627
627
|
let lines = source.split("\n");
|
|
628
628
|
if (line > lines.length) return "";
|
|
629
|
-
const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length + MIN_CHARACTERS_SHOWN_AFTER_LOCATION +
|
|
629
|
+
const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length + MIN_CHARACTERS_SHOWN_AFTER_LOCATION + 3, LINE_TRUNCATE_LENGTH);
|
|
630
630
|
const frameStart = Math.max(0, line - 3);
|
|
631
631
|
let frameEnd = Math.min(line + 2, lines.length);
|
|
632
632
|
lines = lines.slice(frameStart, frameEnd);
|
|
@@ -640,7 +640,7 @@ function getCodeFrame(source, line, column) {
|
|
|
640
640
|
let lineNumber = String(index + frameStart + 1);
|
|
641
641
|
while (lineNumber.length < digits) lineNumber = ` ${lineNumber}`;
|
|
642
642
|
let displayedLine = tabsToSpaces(sourceLine);
|
|
643
|
-
if (displayedLine.length > maxLineLength) displayedLine = `${displayedLine.slice(0, maxLineLength -
|
|
643
|
+
if (displayedLine.length > maxLineLength) displayedLine = `${displayedLine.slice(0, maxLineLength - 3)}${ELLIPSIS}`;
|
|
644
644
|
if (isErrorLine) {
|
|
645
645
|
const indicator = spaces(digits + 2 + tabsToSpaces(sourceLine.slice(0, column)).length) + "^";
|
|
646
646
|
return `${lineNumber}: ${displayedLine}\n${indicator}`;
|
|
@@ -2983,7 +2983,7 @@ function bindingPluginOrder(order) {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
|
|
2985
2985
|
//#endregion
|
|
2986
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2986
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.75.0/node_modules/oxc-parser/wrap.mjs
|
|
2987
2987
|
function wrap$1(result) {
|
|
2988
2988
|
let program, module$1, comments, errors;
|
|
2989
2989
|
return {
|
|
@@ -4727,10 +4727,10 @@ function isComposablePlugin(plugin) {
|
|
|
4727
4727
|
const hasNotComposablePattern = t(plugin).some((hookName) => {
|
|
4728
4728
|
if (!isPluginHookName(hookName)) return false;
|
|
4729
4729
|
const OK_TO_COMPOSE = false;
|
|
4730
|
-
if (isUnsupportedHooks(hookName)) return
|
|
4730
|
+
if (isUnsupportedHooks(hookName)) return true;
|
|
4731
4731
|
if (plugin[hookName]) {
|
|
4732
4732
|
const { meta } = normalizeHook(plugin[hookName]);
|
|
4733
|
-
if (meta.order === "pre" || meta.order === "post") return
|
|
4733
|
+
if (meta.order === "pre" || meta.order === "post") return true;
|
|
4734
4734
|
}
|
|
4735
4735
|
return OK_TO_COMPOSE;
|
|
4736
4736
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.21",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@napi-rs/wasm-runtime": "^0.2.10",
|
|
59
|
-
"@oxc-project/runtime": "=0.
|
|
59
|
+
"@oxc-project/runtime": "=0.75.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "pnpm run build:debug",
|