@rollup/wasm-node 4.23.0 → 4.24.0
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/bin/rollup +2 -2
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +808 -89
- package/dist/es/shared/parseAst.js +150 -6
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.d.ts +37 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/parseAst.js +151 -5
- package/dist/shared/rollup.js +807 -88
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm.js +3 -2
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +2 -1
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
@@ -123,14 +123,15 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
123
123
|
/**
|
|
124
124
|
* @param {string} code
|
|
125
125
|
* @param {boolean} allow_return_outside_function
|
|
126
|
+
* @param {boolean} jsx
|
|
126
127
|
* @returns {Uint8Array}
|
|
127
128
|
*/
|
|
128
|
-
module.exports.parse = function(code, allow_return_outside_function) {
|
|
129
|
+
module.exports.parse = function(code, allow_return_outside_function, jsx) {
|
|
129
130
|
try {
|
|
130
131
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
131
132
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
132
133
|
const len0 = WASM_VECTOR_LEN;
|
|
133
|
-
wasm.parse(retptr, ptr0, len0, allow_return_outside_function);
|
|
134
|
+
wasm.parse(retptr, ptr0, len0, allow_return_outside_function, jsx);
|
|
134
135
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
135
136
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
136
137
|
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.24.0",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@vue/language-server": "^2.1.6",
|
|
61
61
|
"acorn": "^8.12.1",
|
|
62
62
|
"acorn-import-assertions": "^1.9.0",
|
|
63
|
+
"acorn-jsx": "^5.3.2",
|
|
63
64
|
"buble": "^0.20.0",
|
|
64
65
|
"builtin-modules": "^4.0.0",
|
|
65
66
|
"chokidar": "^3.6.0",
|