@swc/wasm 1.12.0 → 1.12.1

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "강동윤 <kdy1997.dev@gmail.com>"
5
5
  ],
6
6
  "description": "wasm module for swc",
7
- "version": "1.12.0",
7
+ "version": "1.12.1",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm.d.ts CHANGED
@@ -5,11 +5,11 @@ export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
5
5
  export function minifySync(code: string, opts?: JsMinifyOptions): Output;
6
6
 
7
7
  export function parse(src: string, options: ParseOptions & {
8
- isModule: false;
8
+ isModule: false | "commonjs";
9
9
  }): Promise<Script>;
10
10
  export function parse(src: string, options?: ParseOptions): Promise<Module>;
11
11
  export function parseSync(src: string, options: ParseOptions & {
12
- isModule: false;
12
+ isModule: false | "commonjs";
13
13
  }): Script;
14
14
  export function parseSync(src: string, options?: ParseOptions): Module;
15
15
 
@@ -572,7 +572,7 @@ export interface Options extends Config {
572
572
 
573
573
  plugin?: Plugin;
574
574
 
575
- isModule?: boolean | 'unknown';
575
+ isModule?: boolean | 'unknown' | 'commonjs';
576
576
 
577
577
  /**
578
578
  * Destination path. Note that this value is used only to fix source path
package/wasm.js CHANGED
@@ -685,7 +685,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
685
685
  return ret;
686
686
  };
687
687
 
688
- module.exports.__wbindgen_closure_wrapper16183 = function(arg0, arg1, arg2) {
688
+ module.exports.__wbindgen_closure_wrapper16140 = function(arg0, arg1, arg2) {
689
689
  const ret = makeMutClosure(arg0, arg1, 637, __wbg_adapter_50);
690
690
  return addHeapObject(ret);
691
691
  };
package/wasm_bg.wasm CHANGED
Binary file