@swc/wasm 1.3.54 → 1.3.55
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/package.json +1 -1
- package/wasm.d.ts +8 -0
- package/wasm.js +10 -10
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1060,6 +1060,14 @@ export interface BaseModuleConfig {
|
|
|
1060
1060
|
* ```
|
|
1061
1061
|
*/
|
|
1062
1062
|
importInterop?: "swc" | "babel" | "node" | "none";
|
|
1063
|
+
/**
|
|
1064
|
+
* Emits `cjs-module-lexer` annotation
|
|
1065
|
+
* `cjs-module-lexer` is used in Node.js core for detecting the named exports available when importing a CJS module into ESM.
|
|
1066
|
+
* swc will emit `cjs-module-lexer` detectable annotation with this option enabled.
|
|
1067
|
+
*
|
|
1068
|
+
* Defaults to `true` if import_interop is Node, else `false`
|
|
1069
|
+
*/
|
|
1070
|
+
exportInteropAnnotation?: boolean;
|
|
1063
1071
|
/**
|
|
1064
1072
|
* If set to true, dynamic imports will be preserved.
|
|
1065
1073
|
*/
|
package/wasm.js
CHANGED
|
@@ -443,6 +443,15 @@ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
|
443
443
|
return ret;
|
|
444
444
|
};
|
|
445
445
|
|
|
446
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
447
|
+
const obj = getObject(arg1);
|
|
448
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
449
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
450
|
+
var len0 = WASM_VECTOR_LEN;
|
|
451
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
452
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
453
|
+
};
|
|
454
|
+
|
|
446
455
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
447
456
|
const val = getObject(arg0);
|
|
448
457
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -464,15 +473,6 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
464
473
|
return ret;
|
|
465
474
|
};
|
|
466
475
|
|
|
467
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
468
|
-
const obj = getObject(arg1);
|
|
469
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
470
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
471
|
-
var len0 = WASM_VECTOR_LEN;
|
|
472
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
473
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
474
|
-
};
|
|
475
|
-
|
|
476
476
|
module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
|
|
477
477
|
const ret = Object.entries(getObject(arg0));
|
|
478
478
|
return addHeapObject(ret);
|
|
@@ -768,7 +768,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
768
768
|
return ret;
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
module.exports.
|
|
771
|
+
module.exports.__wbindgen_closure_wrapper19024 = function(arg0, arg1, arg2) {
|
|
772
772
|
const ret = makeMutClosure(arg0, arg1, 244, __wbg_adapter_50);
|
|
773
773
|
return addHeapObject(ret);
|
|
774
774
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|