@rollup/wasm-node 4.22.5 → 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.22.5
4
- Fri, 27 Sep 2024 11:47:46 GMT - commit bc7780c322e134492f40a76bf64afe561670425c
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.22.5
4
- Fri, 27 Sep 2024 11:47:46 GMT - commit bc7780c322e134492f40a76bf64afe561670425c
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.22.5",
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",
@@ -57,8 +57,10 @@
57
57
  "@types/node": "^18.19.50",
58
58
  "@types/semver": "^7.5.8",
59
59
  "@types/yargs-parser": "^21.0.3",
60
+ "@vue/language-server": "^2.1.6",
60
61
  "acorn": "^8.12.1",
61
62
  "acorn-import-assertions": "^1.9.0",
63
+ "acorn-jsx": "^5.3.2",
62
64
  "buble": "^0.20.0",
63
65
  "builtin-modules": "^4.0.0",
64
66
  "chokidar": "^3.6.0",