@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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.23.0
4
- Tue, 01 Oct 2024 07:09:35 GMT - commit ed98e0821e6ad064839f0af46ceca061adbe3f14
3
+ Rollup.js v4.24.0
4
+ Wed, 02 Oct 2024 09:36:48 GMT - commit d3c000f4fd453e39a354299f0cfaa6831f56d7d8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.23.0
4
- Tue, 01 Oct 2024 07:09:35 GMT - commit ed98e0821e6ad064839f0af46ceca061adbe3f14
3
+ Rollup.js v4.24.0
4
+ Wed, 02 Oct 2024 09:36:48 GMT - commit d3c000f4fd453e39a354299f0cfaa6831f56d7d8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.23.0",
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",