@rolldown/browser 1.0.0-beta.8-commit.1fd551c → 1.0.0-beta.8-commit.a98d94e
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/browser.mjs +17 -16
- package/dist/cli.cjs +4 -4
- package/dist/cli.mjs +4 -4
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.mjs +2 -2
- package/dist/index.cjs +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/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{parse-ast-index-DAk8Z2V8.cjs → parse-ast-index-B9pj8J1q.cjs} +14 -13
- package/dist/shared/{parse-ast-index-Cprsj_YY.mjs → parse-ast-index-DWHg_E7J.mjs} +15 -14
- package/dist/shared/{src-BLbX9IKh.cjs → src-CJ9XODOK.cjs} +2 -2
- package/dist/shared/{src-BkpdHXjc.mjs → src-D9guL4ht.mjs} +2 -2
- package/package.json +3 -3
package/dist/browser.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import colors from "ansis";
|
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
|
|
7
7
|
//#region package.json
|
|
8
|
-
var version = "1.0.0-beta.8-commit.
|
|
8
|
+
var version = "1.0.0-beta.8-commit.a98d94e";
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -1105,7 +1105,7 @@ function bindingPluginOrder(order) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
1107
|
//#endregion
|
|
1108
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1108
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
|
|
1109
1109
|
function wrap$1(result) {
|
|
1110
1110
|
let program, module, comments, errors;
|
|
1111
1111
|
return {
|
|
@@ -1127,19 +1127,20 @@ function wrap$1(result) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
|
-
function jsonParseAst(
|
|
1131
|
-
return JSON.parse(
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1130
|
+
function jsonParseAst(program) {
|
|
1131
|
+
return JSON.parse(program, transform);
|
|
1132
|
+
}
|
|
1133
|
+
function transform(key, value) {
|
|
1134
|
+
if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
|
|
1135
|
+
if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
|
|
1136
|
+
if (Object.hasOwn(this, "regex")) {
|
|
1137
|
+
const { regex } = this;
|
|
1138
|
+
try {
|
|
1139
|
+
return RegExp(regex.pattern, regex.flags);
|
|
1140
|
+
} catch (_err) {}
|
|
1140
1141
|
}
|
|
1141
|
-
|
|
1142
|
-
|
|
1142
|
+
}
|
|
1143
|
+
return value;
|
|
1143
1144
|
}
|
|
1144
1145
|
|
|
1145
1146
|
//#endregion
|
|
@@ -2115,7 +2116,7 @@ function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, nor
|
|
|
2115
2116
|
const { plugin: resolveId, meta: resolveIdMeta, filter: resolveIdFilter } = bindingifyResolveId(args);
|
|
2116
2117
|
const { plugin: resolveDynamicImport, meta: resolveDynamicImportMeta } = bindingifyResolveDynamicImport(args);
|
|
2117
2118
|
const { plugin: buildEnd, meta: buildEndMeta } = bindingifyBuildEnd(args);
|
|
2118
|
-
const { plugin: transform, meta: transformMeta, filter: transformFilter } = bindingifyTransform(args);
|
|
2119
|
+
const { plugin: transform$1, meta: transformMeta, filter: transformFilter } = bindingifyTransform(args);
|
|
2119
2120
|
const { plugin: moduleParsed, meta: moduleParsedMeta } = bindingifyModuleParsed(args);
|
|
2120
2121
|
const { plugin: load, meta: loadMeta, filter: loadFilter } = bindingifyLoad(args);
|
|
2121
2122
|
const { plugin: renderChunk, meta: renderChunkMeta } = bindingifyRenderChunk(args);
|
|
@@ -2143,7 +2144,7 @@ function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, nor
|
|
|
2143
2144
|
resolveDynamicImportMeta,
|
|
2144
2145
|
buildEnd,
|
|
2145
2146
|
buildEndMeta,
|
|
2146
|
-
transform,
|
|
2147
|
+
transform: transform$1,
|
|
2147
2148
|
transformMeta,
|
|
2148
2149
|
transformFilter,
|
|
2149
2150
|
moduleParsed,
|
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-CJ9XODOK.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-B9pj8J1q.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
6
6
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -1559,8 +1559,8 @@ async function loadConfig(configPath) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
1561
|
//#endregion
|
|
1562
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1563
|
-
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1562
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.67.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1563
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.67.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1564
1564
|
function _usingCtx() {
|
|
1565
1565
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1566
1566
|
var n$2 = Error();
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-D9guL4ht.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-DWHg_E7J.mjs";
|
|
4
4
|
import path, { sep } from "node:path";
|
|
5
5
|
import colors from "ansis";
|
|
6
6
|
import process$1, { cwd } from "node:process";
|
|
@@ -1564,8 +1564,8 @@ var init_load_config = __esm({ "src/cli/load-config.ts"() {
|
|
|
1564
1564
|
} });
|
|
1565
1565
|
|
|
1566
1566
|
//#endregion
|
|
1567
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1568
|
-
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1567
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.67.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1568
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.67.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1569
1569
|
function _usingCtx() {
|
|
1570
1570
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1571
1571
|
var n$2 = Error();
|
|
@@ -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
|
-
require('./shared/parse-ast-index-
|
|
3
|
+
const require_src = require('./shared/src-CJ9XODOK.cjs');
|
|
4
|
+
require('./shared/parse-ast-index-B9pj8J1q.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
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-D9guL4ht.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-DWHg_E7J.mjs";
|
|
3
3
|
import { moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
|
package/dist/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-CJ9XODOK.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-B9pj8J1q.cjs');
|
|
3
3
|
|
|
4
4
|
exports.VERSION = require_src.VERSION
|
|
5
5
|
exports.build = require_src.build
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-D9guL4ht.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-DWHg_E7J.mjs";
|
|
3
3
|
|
|
4
4
|
init_src();
|
|
5
5
|
export { VERSION, build, defineConfig, rolldown, watch, withFilter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-CJ9XODOK.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-B9pj8J1q.cjs');
|
|
4
4
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-D9guL4ht.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-DWHg_E7J.mjs";
|
|
4
4
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
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-B9pj8J1q.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-
|
|
1
|
+
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-DWHg_E7J.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
Binary file
|
|
@@ -182,7 +182,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
//#endregion
|
|
185
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
185
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
|
|
186
186
|
function wrap$1(result) {
|
|
187
187
|
let program, module$1, comments, errors;
|
|
188
188
|
return {
|
|
@@ -204,19 +204,20 @@ function wrap$1(result) {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
|
-
function jsonParseAst(
|
|
208
|
-
return JSON.parse(
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
207
|
+
function jsonParseAst(program) {
|
|
208
|
+
return JSON.parse(program, transform);
|
|
209
|
+
}
|
|
210
|
+
function transform(key, value) {
|
|
211
|
+
if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
|
|
212
|
+
if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
|
|
213
|
+
if (Object.hasOwn(this, "regex")) {
|
|
214
|
+
const { regex } = this;
|
|
215
|
+
try {
|
|
216
|
+
return RegExp(regex.pattern, regex.flags);
|
|
217
|
+
} catch (_err) {}
|
|
217
218
|
}
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
}
|
|
220
|
+
return value;
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
//#endregion
|
|
@@ -190,7 +190,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
|
|
|
190
190
|
} });
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
193
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
|
|
194
194
|
function wrap$1(result) {
|
|
195
195
|
let program, module, comments, errors;
|
|
196
196
|
return {
|
|
@@ -212,21 +212,22 @@ function wrap$1(result) {
|
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function jsonParseAst(
|
|
216
|
-
return JSON.parse(
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
215
|
+
function jsonParseAst(program) {
|
|
216
|
+
return JSON.parse(program, transform);
|
|
217
|
+
}
|
|
218
|
+
function transform(key, value) {
|
|
219
|
+
if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
|
|
220
|
+
if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
|
|
221
|
+
if (Object.hasOwn(this, "regex")) {
|
|
222
|
+
const { regex } = this;
|
|
223
|
+
try {
|
|
224
|
+
return RegExp(regex.pattern, regex.flags);
|
|
225
|
+
} catch (_err) {}
|
|
225
226
|
}
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
}
|
|
228
|
+
return value;
|
|
228
229
|
}
|
|
229
|
-
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.
|
|
230
|
+
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs"() {} });
|
|
230
231
|
|
|
231
232
|
//#endregion
|
|
232
233
|
//#region src/parse-ast-index.ts
|
|
@@ -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-B9pj8J1q.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 __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
|
|
@@ -10,7 +10,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
10
10
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
11
11
|
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.0.0-beta.8-commit.
|
|
13
|
+
var version = "1.0.0-beta.8-commit.a98d94e";
|
|
14
14
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
2
|
+
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-DWHg_E7J.mjs";
|
|
3
3
|
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { toJsonSchema } from "@valibot/to-json-schema";
|
|
@@ -9,7 +9,7 @@ import { availableParallelism } from "node:os";
|
|
|
9
9
|
import { Worker } from "node:worker_threads";
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.8-commit.
|
|
12
|
+
var version = "1.0.0-beta.8-commit.a98d94e";
|
|
13
13
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.8-commit.
|
|
3
|
+
"version": "1.0.0-beta.8-commit.a98d94e",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@napi-rs/wasm-runtime": "^0.2.8",
|
|
58
|
-
"@oxc-project/types": "0.
|
|
58
|
+
"@oxc-project/types": "0.67.0",
|
|
59
59
|
"@valibot/to-json-schema": "1.0.0",
|
|
60
60
|
"ansis": "^3.17.0",
|
|
61
61
|
"pathe": "^2.0.3",
|
|
62
62
|
"valibot": "1.0.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@oxc-project/runtime": "0.
|
|
65
|
+
"@oxc-project/runtime": "0.67.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@oxc-project/runtime": {
|