@rolldown/browser 1.0.0-rc.12 → 1.0.0-rc.14
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.mjs +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/{error-nyELQq9T.js → error-DJs8b3WW.js} +1 -1
- package/dist/experimental-index.browser.mjs +3 -3
- package/dist/experimental-index.d.mts +16 -18
- package/dist/experimental-index.mjs +3 -3
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -2
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/{resolve-tsconfig-CkWJwi9L.js → resolve-tsconfig-CeKKTyZM.js} +1 -1
- package/dist/rolldown-binding.wasi-browser.js +6 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-B2FA5DNv.js → rolldown-build-xYP-VT_E.js} +50 -7
- package/dist/shared/binding-ZnDS8vT0.d.mts +3171 -0
- package/dist/shared/{bindingify-input-options-MqDue3xO.mjs → bindingify-input-options-CvIC4ryM.mjs} +48 -5
- package/dist/shared/{constructors-BVnf_fH1.d.mts → constructors-nS2X45yE.d.mts} +2 -2
- package/dist/shared/{define-config-Cr6054d_.d.mts → define-config-DGsflQU7.d.mts} +12 -15
- package/dist/shared/{load-config-DIkJ9d-P.mjs → load-config-ClAmptWw.mjs} +1 -1
- package/dist/shared/{parse-B_jvq8dU.mjs → parse-BmK0RQzi.mjs} +1 -1
- package/dist/shared/{rolldown-build-CfQ_wZyF.mjs → rolldown-build-DYzo4aFt.mjs} +2 -2
- package/dist/shared/{rolldown-B5m6XtwJ.mjs → rolldown-xyc6xifz.mjs} +1 -1
- package/dist/shared/{transform-DEgNAQOQ.d.mts → transform-Dd-_yDYG.d.mts} +15 -15
- package/dist/shared/{utils-6wxe_LMG.d.mts → utils-B9dwRBJP.d.mts} +1 -1
- package/dist/shared/{watch-Bkj4zPhn.mjs → watch-D3X_Y6Re.mjs} +2 -2
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +5 -1304
- package/dist/utils-index.mjs +4 -4
- package/dist/wasi-worker-browser.mjs +8 -0
- package/package.json +4 -2
- package/dist/shared/types-K2r0mx6Y.d.mts +0 -1302
package/dist/utils-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-BmK0RQzi.mjs";
|
|
2
2
|
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Cwoo4h_o.mjs";
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.124.0_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2010
2010
|
exit !== null && exit(node);
|
|
2011
2011
|
}
|
|
2012
2012
|
//#endregion
|
|
2013
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2013
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.124.0_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2180
2180
|
["TSUnionType", 164]
|
|
2181
2181
|
]);
|
|
2182
2182
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.124.0_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
|
@@ -3,6 +3,8 @@ import { memfsExported as __memfsExported } from '@napi-rs/wasm-runtime/fs'
|
|
|
3
3
|
|
|
4
4
|
const fs = createFsProxy(__memfsExported)
|
|
5
5
|
|
|
6
|
+
const errorOutputs = []
|
|
7
|
+
|
|
6
8
|
const handler = new MessageHandler({
|
|
7
9
|
onLoad({ wasmModule, wasmMemory }) {
|
|
8
10
|
const wasi = new WASI({
|
|
@@ -17,6 +19,8 @@ const handler = new MessageHandler({
|
|
|
17
19
|
printErr: function() {
|
|
18
20
|
// eslint-disable-next-line no-console
|
|
19
21
|
console.error.apply(console, arguments)
|
|
22
|
+
|
|
23
|
+
errorOutputs.push([...arguments])
|
|
20
24
|
},
|
|
21
25
|
})
|
|
22
26
|
return instantiateNapiModuleSync(wasmModule, {
|
|
@@ -32,6 +36,10 @@ const handler = new MessageHandler({
|
|
|
32
36
|
},
|
|
33
37
|
})
|
|
34
38
|
},
|
|
39
|
+
onError(error) {
|
|
40
|
+
postMessage({ type: 'error', error, errorOutputs })
|
|
41
|
+
errorOutputs.length = 0
|
|
42
|
+
}
|
|
35
43
|
})
|
|
36
44
|
|
|
37
45
|
globalThis.onmessage = function (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.14",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -53,7 +53,9 @@
|
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@
|
|
56
|
+
"@emnapi/core": "^1.9.2",
|
|
57
|
+
"@emnapi/runtime": "^1.9.2",
|
|
58
|
+
"@napi-rs/wasm-runtime": "^1.1.3"
|
|
57
59
|
},
|
|
58
60
|
"scripts": {
|
|
59
61
|
"build": "pnpm run build:debug",
|