@swc/wasm-web 1.15.41 → 1.15.43
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 +104 -0
- package/wasm.js +2 -2
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -865,6 +865,8 @@ export interface TransformConfig {
|
|
|
865
865
|
*/
|
|
866
866
|
react?: ReactConfig;
|
|
867
867
|
|
|
868
|
+
reactCompiler?: boolean | ReactCompilerOptions;
|
|
869
|
+
|
|
868
870
|
constModules?: ConstModulesConfig;
|
|
869
871
|
|
|
870
872
|
/**
|
|
@@ -887,6 +889,108 @@ export interface TransformConfig {
|
|
|
887
889
|
useDefineForClassFields?: boolean;
|
|
888
890
|
}
|
|
889
891
|
|
|
892
|
+
export interface ReactCompilerOptions {
|
|
893
|
+
/**
|
|
894
|
+
* Which functions to compile.
|
|
895
|
+
*
|
|
896
|
+
* Defaults to `"infer"`.
|
|
897
|
+
*/
|
|
898
|
+
compilationMode?: "infer" | "syntax" | "annotation" | "all";
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* What to do when a function cannot be compiled.
|
|
902
|
+
*
|
|
903
|
+
* Defaults to `"none"`.
|
|
904
|
+
*/
|
|
905
|
+
panicThreshold?: "none" | "critical_errors" | "all_errors";
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* React runtime version target.
|
|
909
|
+
*
|
|
910
|
+
* Defaults to `"19"`.
|
|
911
|
+
*/
|
|
912
|
+
target?: "17" | "18" | "19";
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Analyze and report diagnostics only; emit no transformed code.
|
|
916
|
+
*
|
|
917
|
+
* Defaults to `false`.
|
|
918
|
+
*/
|
|
919
|
+
noEmit?: boolean;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Defaults to `"client"`.
|
|
923
|
+
*/
|
|
924
|
+
outputMode?: "client" | "ssr" | "lint";
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Compile even functions marked with opt-out directives.
|
|
928
|
+
*
|
|
929
|
+
* Defaults to `false`.
|
|
930
|
+
*/
|
|
931
|
+
ignoreUseNoForget?: boolean;
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Treat Flow suppression comments as opt-outs.
|
|
935
|
+
*
|
|
936
|
+
* Defaults to `true`.
|
|
937
|
+
*/
|
|
938
|
+
flowSuppressions?: boolean;
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Enable react-native-reanimated support.
|
|
942
|
+
*
|
|
943
|
+
* Defaults to `false`.
|
|
944
|
+
*/
|
|
945
|
+
enableReanimated?: boolean;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Development mode.
|
|
949
|
+
*
|
|
950
|
+
* Defaults to `false`.
|
|
951
|
+
*/
|
|
952
|
+
isDev?: boolean;
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* ESLint rules whose suppressions opt a function out of compilation.
|
|
956
|
+
*/
|
|
957
|
+
eslintSuppressionRules?: string[];
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* Extra directives that opt a function out of compilation.
|
|
961
|
+
*/
|
|
962
|
+
customOptOutDirectives?: string[];
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Emit a gated version of each compiled function.
|
|
966
|
+
*/
|
|
967
|
+
gating?: ReactCompilerGatingConfig;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Dynamically-gated compilation.
|
|
971
|
+
*/
|
|
972
|
+
dynamicGating?: ReactCompilerDynamicGatingConfig;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
export interface ReactCompilerGatingConfig {
|
|
976
|
+
/**
|
|
977
|
+
* Module the gating import comes from.
|
|
978
|
+
*/
|
|
979
|
+
source: string;
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* Imported specifier used as the gate.
|
|
983
|
+
*/
|
|
984
|
+
importSpecifierName: string;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
export interface ReactCompilerDynamicGatingConfig {
|
|
988
|
+
/**
|
|
989
|
+
* Module the gating import comes from.
|
|
990
|
+
*/
|
|
991
|
+
source: string;
|
|
992
|
+
}
|
|
993
|
+
|
|
890
994
|
export interface ReactConfig {
|
|
891
995
|
/**
|
|
892
996
|
* Replace the function used when compiling JSX expressions.
|
package/wasm.js
CHANGED
|
@@ -635,8 +635,8 @@ function __wbg_get_imports() {
|
|
|
635
635
|
const ret = false;
|
|
636
636
|
return ret;
|
|
637
637
|
};
|
|
638
|
-
imports.wbg.
|
|
639
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
638
|
+
imports.wbg.__wbindgen_closure_wrapper16151 = function(arg0, arg1, arg2) {
|
|
639
|
+
const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_52);
|
|
640
640
|
return addHeapObject(ret);
|
|
641
641
|
};
|
|
642
642
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|