@swc/wasm-web 1.11.31 → 1.12.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/package.json +1 -1
- package/wasm.d.ts +11 -1
- package/wasm.js +2 -2
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -122,9 +122,10 @@ export interface JsFormatOptions {
|
|
|
122
122
|
* - `false`: removes all comments
|
|
123
123
|
* - `'some'`: preserves some comments
|
|
124
124
|
* - `'all'`: preserves all comments
|
|
125
|
+
* - `{ regex: string }`: preserves comments that match the regex
|
|
125
126
|
* @default false
|
|
126
127
|
*/
|
|
127
|
-
comments?: false |
|
|
128
|
+
comments?: false | "some" | "all" | { regex: string };
|
|
128
129
|
|
|
129
130
|
/**
|
|
130
131
|
* Currently noop.
|
|
@@ -709,6 +710,15 @@ export interface JscConfig {
|
|
|
709
710
|
minify?: JsMinifyOptions;
|
|
710
711
|
|
|
711
712
|
preserveAllComments?: boolean;
|
|
713
|
+
|
|
714
|
+
output?: {
|
|
715
|
+
/**
|
|
716
|
+
* This can be used to keep the output ascii-only.
|
|
717
|
+
* If this option is set, `minify.format.asciiOnly` will be ignored.
|
|
718
|
+
* @default 'utf8'
|
|
719
|
+
*/
|
|
720
|
+
charset?: 'utf8' | 'ascii';
|
|
721
|
+
}
|
|
712
722
|
}
|
|
713
723
|
|
|
714
724
|
export type JscTarget =
|
package/wasm.js
CHANGED
|
@@ -658,8 +658,8 @@ function __wbg_get_imports() {
|
|
|
658
658
|
const ret = false;
|
|
659
659
|
return ret;
|
|
660
660
|
};
|
|
661
|
-
imports.wbg.
|
|
662
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
661
|
+
imports.wbg.__wbindgen_closure_wrapper16183 = function(arg0, arg1, arg2) {
|
|
662
|
+
const ret = makeMutClosure(arg0, arg1, 637, __wbg_adapter_50);
|
|
663
663
|
return addHeapObject(ret);
|
|
664
664
|
};
|
|
665
665
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|