@vxrn/compiler 1.1.397 → 1.1.398
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/dist/cjs/configure.cjs +1 -0
- package/dist/cjs/configure.js +1 -0
- package/dist/cjs/configure.js.map +1 -1
- package/dist/cjs/index.cjs +57 -7
- package/dist/cjs/index.js +51 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/refresh-runtime.cjs +1 -3
- package/dist/cjs/refresh-runtime.js +1 -1
- package/dist/cjs/refresh-runtime.js.map +1 -1
- package/dist/cjs/transformBabel.cjs +22 -18
- package/dist/cjs/transformBabel.js +19 -22
- package/dist/cjs/transformBabel.js.map +1 -1
- package/dist/cjs/transformSWC.cjs +77 -76
- package/dist/cjs/transformSWC.js +76 -76
- package/dist/cjs/transformSWC.js.map +1 -1
- package/dist/esm/configure.js +1 -0
- package/dist/esm/configure.js.map +1 -1
- package/dist/esm/configure.mjs +1 -0
- package/dist/esm/configure.mjs.map +1 -1
- package/dist/esm/index.js +53 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +58 -8
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/refresh-runtime.js +1 -1
- package/dist/esm/refresh-runtime.js.map +1 -1
- package/dist/esm/refresh-runtime.mjs +1 -3
- package/dist/esm/refresh-runtime.mjs.map +1 -1
- package/dist/esm/transformBabel.js +19 -21
- package/dist/esm/transformBabel.js.map +1 -1
- package/dist/esm/transformBabel.mjs +22 -18
- package/dist/esm/transformBabel.mjs.map +1 -1
- package/dist/esm/transformSWC.js +77 -77
- package/dist/esm/transformSWC.js.map +1 -1
- package/dist/esm/transformSWC.mjs +78 -77
- package/dist/esm/transformSWC.mjs.map +1 -1
- package/package.json +10 -8
- package/src/configure.ts +2 -0
- package/src/index.ts +108 -11
- package/src/refresh-runtime.js +1 -1
- package/src/transformBabel.ts +36 -17
- package/src/transformSWC.ts +102 -102
- package/types/configure.d.ts +1 -0
- package/types/configure.d.ts.map +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/transformBabel.d.ts +1 -1
- package/types/transformBabel.d.ts.map +1 -1
- package/types/transformSWC.d.ts +4 -1
- package/types/transformSWC.d.ts.map +1 -1
- package/dist/cjs/configure.native.js +0 -35
- package/dist/cjs/configure.native.js.map +0 -6
- package/dist/cjs/constants.native.js +0 -65
- package/dist/cjs/constants.native.js.map +0 -6
- package/dist/cjs/index.native.js +0 -123
- package/dist/cjs/index.native.js.map +0 -6
- package/dist/cjs/refresh-runtime.native.js +0 -316
- package/dist/cjs/refresh-runtime.native.js.map +0 -6
- package/dist/cjs/transformBabel.native.js +0 -152
- package/dist/cjs/transformBabel.native.js.map +0 -6
- package/dist/cjs/transformSWC.native.js +0 -275
- package/dist/cjs/transformSWC.native.js.map +0 -6
- package/dist/cjs/types.native.js +0 -15
- package/dist/cjs/types.native.js.map +0 -6
- package/dist/esm/configure.native.js +0 -13
- package/dist/esm/configure.native.js.map +0 -6
- package/dist/esm/constants.native.js +0 -41
- package/dist/esm/constants.native.js.map +0 -6
- package/dist/esm/index.native.js +0 -104
- package/dist/esm/index.native.js.map +0 -6
- package/dist/esm/refresh-runtime.native.js +0 -290
- package/dist/esm/refresh-runtime.native.js.map +0 -6
- package/dist/esm/transformBabel.native.js +0 -125
- package/dist/esm/transformBabel.native.js.map +0 -6
- package/dist/esm/transformSWC.native.js +0 -257
- package/dist/esm/transformSWC.native.js.map +0 -6
- package/dist/esm/types.native.js +0 -1
- package/dist/esm/types.native.js.map +0 -6
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var configure_exports = {};
|
|
17
|
-
__export(configure_exports, {
|
|
18
|
-
configuration: () => configuration,
|
|
19
|
-
configureVXRNCompilerPlugin: () => configureVXRNCompilerPlugin
|
|
20
|
-
});
|
|
21
|
-
module.exports = __toCommonJS(configure_exports);
|
|
22
|
-
var configuration = {
|
|
23
|
-
enableReanimated: !1,
|
|
24
|
-
enableCompiler: !1,
|
|
25
|
-
enableNativeCSS: !1
|
|
26
|
-
};
|
|
27
|
-
function configureVXRNCompilerPlugin(_) {
|
|
28
|
-
Object.assign(configuration, _);
|
|
29
|
-
}
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
configuration,
|
|
33
|
-
configureVXRNCompilerPlugin
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=configure.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Users/n8/one/packages/compiler/src/configure.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAQA;;;;;;AAAO,IAAMA,gBAAsB;EACjCC,kBAAkB;EAClBC,gBAAgB;EAChBC,iBAAiB;AACnB;AAEO,SAASC,4BAA4BC,GAAO;AACjDC,SAAOC,OAAOP,eAAeK,CAAAA;AAC/B;",
|
|
5
|
-
"names": ["configuration", "enableReanimated", "enableCompiler", "enableNativeCSS", "configureVXRNCompilerPlugin", "_", "Object", "assign"]
|
|
6
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var constants_exports = {};
|
|
17
|
-
__export(constants_exports, {
|
|
18
|
-
asyncGeneratorRegex: () => asyncGeneratorRegex,
|
|
19
|
-
debug: () => debug,
|
|
20
|
-
parsers: () => parsers,
|
|
21
|
-
runtimePublicPath: () => runtimePublicPath,
|
|
22
|
-
validParsers: () => validParsers
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(constants_exports);
|
|
25
|
-
var import_utils = require("@vxrn/utils"), { debug } = (0, import_utils.createDebugger)("vxrn:compiler-plugin"), runtimePublicPath = "/@react-refresh", asyncGeneratorRegex = /(async \*|async function\*|for await)/, parsers = {
|
|
26
|
-
".tsx": {
|
|
27
|
-
syntax: "typescript",
|
|
28
|
-
tsx: !0,
|
|
29
|
-
decorators: !0
|
|
30
|
-
},
|
|
31
|
-
".ts": {
|
|
32
|
-
syntax: "typescript",
|
|
33
|
-
tsx: !1,
|
|
34
|
-
decorators: !0
|
|
35
|
-
},
|
|
36
|
-
".jsx": {
|
|
37
|
-
syntax: "ecmascript",
|
|
38
|
-
jsx: !0
|
|
39
|
-
},
|
|
40
|
-
".js": {
|
|
41
|
-
syntax: "ecmascript"
|
|
42
|
-
},
|
|
43
|
-
".mjs": {
|
|
44
|
-
syntax: "ecmascript"
|
|
45
|
-
},
|
|
46
|
-
".cjs": {
|
|
47
|
-
syntax: "ecmascript"
|
|
48
|
-
},
|
|
49
|
-
".mdx": {
|
|
50
|
-
syntax: "ecmascript",
|
|
51
|
-
jsx: !0
|
|
52
|
-
}
|
|
53
|
-
}, validParsers = /* @__PURE__ */ new Set([
|
|
54
|
-
...Object.keys(parsers),
|
|
55
|
-
".css"
|
|
56
|
-
]);
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {
|
|
59
|
-
asyncGeneratorRegex,
|
|
60
|
-
debug,
|
|
61
|
-
parsers,
|
|
62
|
-
runtimePublicPath,
|
|
63
|
-
validParsers
|
|
64
|
-
});
|
|
65
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Users/n8/one/packages/compiler/src/constants.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAEA;;;;;;;;;mBAA+B,wBAElB,EAAEA,MAAK,QAAKC,6BAAe,sBAAA,GAE3BC,oBAAoB,mBAEpBC,sBAAsB,yCAEtBC,UAAwC;EACnD,QAAQ;IAAEC,QAAQ;IAAcC,KAAK;IAAMC,YAAY;EAAK;EAC5D,OAAO;IAAEF,QAAQ;IAAcC,KAAK;IAAOC,YAAY;EAAK;EAC5D,QAAQ;IAAEF,QAAQ;IAAcG,KAAK;EAAK;EAC1C,OAAO;IAAEH,QAAQ;EAAa;EAC9B,QAAQ;IAAEA,QAAQ;EAAa;EAC/B,QAAQ;IAAEA,QAAQ;EAAa;EAC/B,QAAQ;IAAEA,QAAQ;IAAcG,KAAK;EAAK;AAC5C,GAEaC,eAAe,oBAAIC,IAAI;KAAIC,OAAOC,KAAKR,OAAAA;EAAU;CAAO;",
|
|
5
|
-
"names": ["debug", "createDebugger", "runtimePublicPath", "asyncGeneratorRegex", "parsers", "syntax", "tsx", "decorators", "jsx", "validParsers", "Set", "Object", "keys"]
|
|
6
|
-
}
|
package/dist/cjs/index.native.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var index_exports = {};
|
|
17
|
-
__export(index_exports, {
|
|
18
|
-
createVXRNCompilerPlugin: () => createVXRNCompilerPlugin
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(index_exports);
|
|
21
|
-
var import_utils = require("@vxrn/utils"), import_node_fs = require("node:fs"), import_promises = require("node:fs/promises"), import_node_path = require("node:path"), import_constants = require("./constants"), import_transformBabel = require("./transformBabel"), import_transformSWC = require("./transformSWC");
|
|
22
|
-
__reExport(index_exports, require("./configure"), module.exports);
|
|
23
|
-
__reExport(index_exports, require("./transformBabel"), module.exports);
|
|
24
|
-
__reExport(index_exports, require("./transformSWC"), module.exports);
|
|
25
|
-
const import_meta = {};
|
|
26
|
-
async function createVXRNCompilerPlugin(optionsIn) {
|
|
27
|
-
var reactVersion = await async function() {
|
|
28
|
-
var path = (0, import_utils.resolvePath)("react/package.json"), json = JSON.parse(await (0, import_promises.readFile)(path, "utf-8"));
|
|
29
|
-
return json.version;
|
|
30
|
-
}(), envNames = {
|
|
31
|
-
ios: !0,
|
|
32
|
-
android: !0,
|
|
33
|
-
client: !0,
|
|
34
|
-
ssr: !0
|
|
35
|
-
};
|
|
36
|
-
function getEnvName(name) {
|
|
37
|
-
if (!envNames[name]) throw new Error(`Invalid env: ${name}`);
|
|
38
|
-
return name;
|
|
39
|
-
}
|
|
40
|
-
return [
|
|
41
|
-
{
|
|
42
|
-
name: "one:compiler-resolve-refresh-runtime",
|
|
43
|
-
apply: "serve",
|
|
44
|
-
enforce: "pre",
|
|
45
|
-
// Run before Vite default resolve to avoid syscalls
|
|
46
|
-
resolveId: function(id) {
|
|
47
|
-
return id === import_constants.runtimePublicPath ? id : void 0;
|
|
48
|
-
},
|
|
49
|
-
load: function(id) {
|
|
50
|
-
return id === import_constants.runtimePublicPath ? (0, import_node_fs.readFileSync)((0, import_node_path.join)(import_meta.dirname, "refresh-runtime.js"), "utf-8") : void 0;
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "one:compiler",
|
|
55
|
-
enforce: "pre",
|
|
56
|
-
config: function() {
|
|
57
|
-
var config = {
|
|
58
|
-
esbuild: !1,
|
|
59
|
-
optimizeDeps: {
|
|
60
|
-
noDiscovery: !0
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
return {
|
|
64
|
-
environments: {
|
|
65
|
-
ios: config,
|
|
66
|
-
android: config
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
},
|
|
70
|
-
transform: {
|
|
71
|
-
order: "pre",
|
|
72
|
-
async handler(codeIn, _id) {
|
|
73
|
-
var _optionsIn_transform, code = codeIn, shouldDebug = process.env.NODE_ENV === "development" && codeIn.startsWith("// debug");
|
|
74
|
-
shouldDebug && (console.info(`[one] ${_id} input:`), console.info(codeIn));
|
|
75
|
-
var extension = (0, import_node_path.extname)(_id);
|
|
76
|
-
if (import_constants.validParsers.has(extension)) {
|
|
77
|
-
var id = _id.split("?")[0], isPreProcess = id.startsWith("vxrn-swc-preprocess:");
|
|
78
|
-
if (isPreProcess && (id = id.replace("vxrn-swc-preprocess:", "")), !id.includes("virtual:")) {
|
|
79
|
-
var environment = getEnvName(this.environment.name), production = process.env.NODE_ENV === "production", transformProps = {
|
|
80
|
-
id,
|
|
81
|
-
code,
|
|
82
|
-
development: !production,
|
|
83
|
-
environment,
|
|
84
|
-
reactForRNVersion: reactVersion.split(".")[0]
|
|
85
|
-
}, userTransform = optionsIn == null || (_optionsIn_transform = optionsIn.transform) === null || _optionsIn_transform === void 0 ? void 0 : _optionsIn_transform.call(optionsIn, transformProps);
|
|
86
|
-
if (userTransform !== !1) {
|
|
87
|
-
if (!isPreProcess && userTransform !== "swc") {
|
|
88
|
-
var babelOptions = (0, import_transformBabel.getBabelOptions)({
|
|
89
|
-
...transformProps,
|
|
90
|
-
userSetting: userTransform
|
|
91
|
-
});
|
|
92
|
-
if (babelOptions) {
|
|
93
|
-
var babelOut = await (0, import_transformBabel.transformBabel)(id, code, babelOptions);
|
|
94
|
-
babelOut && (import_constants.debug === null || import_constants.debug === void 0 || (0, import_constants.debug)(`[${id}] transformed with babel options: ${JSON.stringify(babelOptions)}`), code = babelOut);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
var swcOptions = {
|
|
98
|
-
environment,
|
|
99
|
-
mode: "serve",
|
|
100
|
-
production,
|
|
101
|
-
...optionsIn
|
|
102
|
-
}, out = await (0, import_transformSWC.transformSWC)(id, code, {
|
|
103
|
-
...swcOptions,
|
|
104
|
-
es5: !0,
|
|
105
|
-
noHMR: isPreProcess
|
|
106
|
-
});
|
|
107
|
-
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out == null ? void 0 : out.code)), out;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
];
|
|
115
|
-
}
|
|
116
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
117
|
-
0 && (module.exports = {
|
|
118
|
-
createVXRNCompilerPlugin,
|
|
119
|
-
...require("./configure"),
|
|
120
|
-
...require("./transformBabel"),
|
|
121
|
-
...require("./transformSWC")
|
|
122
|
-
});
|
|
123
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Users/n8/one/packages/compiler/src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAKA,mBAA4B,wBAC5B,iBAA6B,oBAC7B,kBAAyB,6BACzB,mBAA8B,sBAE9B,mBAAuD,wBACvD,wBAAgD,6BAChD,sBAA6B;AAG7B,0BAAc,wBAfd;AAgBA,0BAAc,6BAhBd;AAiBA,0BAAc,2BAjBd;;AAoBA,eAAsBA,yBACpBC,WAA4B;AAE5B,MAAMC,eAAe,MAAO,iBAAA;AAC1B,QAAMC,WAAOC,0BAAY,oBAAA,GACnBC,OAAOC,KAAKC,MAAM,UAAMC,0BAASL,MAAM,OAAA,CAAA;AAC7C,WAAOE,KAAKI;EACd,EAAA,GAEMC,WAAW;IACfC,KAAK;IACLC,SAAS;IACTC,QAAQ;IACRC,KAAK;EACP;AAEA,WAASC,WAAWC,MAAY;AAC9B,QAAI,CAACN,SAASM,IAAAA,EAAO,OAAM,IAAIC,MAAM,gBAAgBD,IAAAA,EAAM;AAC3D,WAAOA;EACT;AAEA,S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AAIG,kBAAkB,IAItB;oBAAI,CAACR,gBAAgBQ,kBAAkB,OAAO;AAC5C,sBAAMC,mBAAeC,uCAAgB;oBACnC,GAAGL;oBACHM,aAAaH;kBACf,CAAA;AAEA,sBAAIC,cAAc;AAChB,wBAAMG,WAAW,UAAMC,sCAAe3C,IAAIiB,MAAMsB,YAAAA;AAChD,oBAAIG,aACFE,2BAAAA,QAAAA,2BAAAA,cAAAA,wBAAQ,IAAI5C,EAAAA,qCAAuCf,KAAK4D,UAAUN,YAAAA,CAAAA,EAAe,GACjFtB,OAAOyB;kBAEX;gBAIF;AAEA,oBAAMI,aAAa;kBACjBb;kBACAc,MAAM;kBACNb;kBACA,GAAGtD;gBACL,GAEMoE,MAAM,UAAMC,kCAAajD,IAAIiB,MAAM;kBACvC,GAAG6B;kBACHI,KAAK;kBACLC,OAAOrB;gBACT,CAAA;AAEA,uBAAIZ,gBACFK,QAAQC,KAAK,cAAcsB,UAAAA,GAC3BvB,QAAQC,KAAK,iBAAiBwB,OAAAA,OAAAA,SAAAA,IAAK/B,IAAI,IAGlC+B;;;;QACT;MACF;IACF;;AAEJ;",
|
|
5
|
-
"names": ["createVXRNCompilerPlugin", "optionsIn", "reactVersion", "path", "resolvePath", "json", "JSON", "parse", "readFile", "version", "envNames", "ios", "android", "client", "ssr", "getEnvName", "name", "Error", "apply", "enforce", "resolveId", "id", "runtimePublicPath", "undefined", "load", "readFileSync", "join", "dirname", "config", "esbuild", "optimizeDeps", "noDiscovery", "environments", "transform", "order", "handler", "codeIn", "_id", "code", "shouldDebug", "process", "env", "NODE_ENV", "startsWith", "console", "info", "extension", "extname", "validParsers", "has", "split", "isPreProcess", "replace", "includes", "environment", "production", "transformProps", "development", "reactForRNVersion", "userTransform", "babelOptions", "getBabelOptions", "userSetting", "babelOut", "transformBabel", "debug", "stringify", "swcOptions", "mode", "out", "transformSWC", "es5", "noHMR"]
|
|
6
|
-
}
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var refresh_runtime_exports = {};
|
|
17
|
-
__export(refresh_runtime_exports, {
|
|
18
|
-
__hmr_import: () => __hmr_import,
|
|
19
|
-
createSignatureFunctionForTransform: () => createSignatureFunctionForTransform,
|
|
20
|
-
default: () => refresh_runtime_default,
|
|
21
|
-
getRefreshReg: () => getRefreshReg,
|
|
22
|
-
injectIntoGlobalHook: () => injectIntoGlobalHook,
|
|
23
|
-
registerExportsForReactRefresh: () => registerExportsForReactRefresh,
|
|
24
|
-
validateRefreshBoundaryAndEnqueueUpdate: () => validateRefreshBoundaryAndEnqueueUpdate
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(refresh_runtime_exports);
|
|
27
|
-
/*! Copyright (c) Meta Platforms, Inc. and affiliates. **/
|
|
28
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_MEMO_TYPE = Symbol.for("react.memo"), allFamiliesByID = /* @__PURE__ */ new Map(), allFamiliesByType = /* @__PURE__ */ new WeakMap(), allSignaturesByType = /* @__PURE__ */ new WeakMap(), updatedFamiliesByType = /* @__PURE__ */ new WeakMap(), pendingUpdates = [], helpersByRendererID = /* @__PURE__ */ new Map(), helpersByRoot = /* @__PURE__ */ new Map(), mountedRoots = /* @__PURE__ */ new Set(), failedRoots = /* @__PURE__ */ new Set(), rootElements = /* @__PURE__ */ new WeakMap(), isPerformingRefresh = !1;
|
|
29
|
-
function computeFullKey(signature) {
|
|
30
|
-
if (signature.fullKey !== null)
|
|
31
|
-
return signature.fullKey;
|
|
32
|
-
var fullKey = signature.ownKey, hooks2;
|
|
33
|
-
try {
|
|
34
|
-
hooks2 = signature.getCustomHooks();
|
|
35
|
-
} catch {
|
|
36
|
-
return signature.forceReset = !0, signature.fullKey = fullKey, fullKey;
|
|
37
|
-
}
|
|
38
|
-
for (var i = 0; i < hooks2.length; i++) {
|
|
39
|
-
var hook = hooks2[i];
|
|
40
|
-
if (typeof hook != "function")
|
|
41
|
-
return signature.forceReset = !0, signature.fullKey = fullKey, fullKey;
|
|
42
|
-
var nestedHookSignature = allSignaturesByType.get(hook);
|
|
43
|
-
if (nestedHookSignature !== void 0) {
|
|
44
|
-
var nestedHookKey = computeFullKey(nestedHookSignature);
|
|
45
|
-
nestedHookSignature.forceReset && (signature.forceReset = !0), fullKey += `
|
|
46
|
-
---
|
|
47
|
-
` + nestedHookKey;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return signature.fullKey = fullKey, fullKey;
|
|
51
|
-
}
|
|
52
|
-
function haveEqualSignatures(prevType, nextType) {
|
|
53
|
-
var prevSignature = allSignaturesByType.get(prevType), nextSignature = allSignaturesByType.get(nextType);
|
|
54
|
-
return prevSignature === void 0 && nextSignature === void 0 ? !0 : !(prevSignature === void 0 || nextSignature === void 0 || computeFullKey(prevSignature) !== computeFullKey(nextSignature) || nextSignature.forceReset);
|
|
55
|
-
}
|
|
56
|
-
function isReactClass(type) {
|
|
57
|
-
return type.prototype && type.prototype.isReactComponent;
|
|
58
|
-
}
|
|
59
|
-
function canPreserveStateBetween(prevType, nextType) {
|
|
60
|
-
return isReactClass(prevType) || isReactClass(nextType) ? !1 : !!haveEqualSignatures(prevType, nextType);
|
|
61
|
-
}
|
|
62
|
-
function resolveFamily(type) {
|
|
63
|
-
return updatedFamiliesByType.get(type);
|
|
64
|
-
}
|
|
65
|
-
function getProperty(object, property) {
|
|
66
|
-
try {
|
|
67
|
-
return object[property];
|
|
68
|
-
} catch {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function performReactRefresh() {
|
|
73
|
-
if (pendingUpdates.length === 0 || isPerformingRefresh)
|
|
74
|
-
return null;
|
|
75
|
-
isPerformingRefresh = !0;
|
|
76
|
-
try {
|
|
77
|
-
var staleFamilies = /* @__PURE__ */ new Set(), updatedFamilies = /* @__PURE__ */ new Set(), updates = pendingUpdates;
|
|
78
|
-
pendingUpdates = [], updates.forEach(function(param) {
|
|
79
|
-
var [family, nextType] = param, prevType = family.current;
|
|
80
|
-
updatedFamiliesByType.set(prevType, family), updatedFamiliesByType.set(nextType, family), family.current = nextType, canPreserveStateBetween(prevType, nextType) ? updatedFamilies.add(family) : staleFamilies.add(family);
|
|
81
|
-
});
|
|
82
|
-
var update = {
|
|
83
|
-
updatedFamilies,
|
|
84
|
-
// Families that will re-render preserving state
|
|
85
|
-
staleFamilies
|
|
86
|
-
};
|
|
87
|
-
helpersByRendererID.forEach(function(helpers) {
|
|
88
|
-
helpers.setRefreshHandler(resolveFamily);
|
|
89
|
-
});
|
|
90
|
-
var didError = !1, firstError = null, failedRootsSnapshot = new Set(failedRoots), mountedRootsSnapshot = new Set(mountedRoots), helpersByRootSnapshot = new Map(helpersByRoot);
|
|
91
|
-
if (failedRootsSnapshot.forEach(function(root) {
|
|
92
|
-
var helpers = helpersByRootSnapshot.get(root);
|
|
93
|
-
if (helpers === void 0)
|
|
94
|
-
throw new Error("Could not find helpers for a root. This is a bug in React Refresh.");
|
|
95
|
-
if (failedRoots.has(root), rootElements !== null && rootElements.has(root)) {
|
|
96
|
-
var element = rootElements.get(root);
|
|
97
|
-
try {
|
|
98
|
-
helpers.scheduleRoot(root, element);
|
|
99
|
-
} catch (err) {
|
|
100
|
-
didError || (didError = !0, firstError = err);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}), mountedRootsSnapshot.forEach(function(root) {
|
|
104
|
-
var helpers = helpersByRootSnapshot.get(root);
|
|
105
|
-
if (helpers === void 0)
|
|
106
|
-
throw new Error("Could not find helpers for a root. This is a bug in React Refresh.");
|
|
107
|
-
mountedRoots.has(root);
|
|
108
|
-
try {
|
|
109
|
-
helpers.scheduleRefresh(root, update);
|
|
110
|
-
} catch (err) {
|
|
111
|
-
didError || (didError = !0, firstError = err);
|
|
112
|
-
}
|
|
113
|
-
}), didError)
|
|
114
|
-
throw firstError;
|
|
115
|
-
return update;
|
|
116
|
-
} finally {
|
|
117
|
-
isPerformingRefresh = !1;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function register(type, id) {
|
|
121
|
-
if (type !== null && !(typeof type != "function" && typeof type != "object") && !allFamiliesByType.has(type)) {
|
|
122
|
-
var family = allFamiliesByID.get(id);
|
|
123
|
-
if (family === void 0 ? (family = {
|
|
124
|
-
current: type
|
|
125
|
-
}, allFamiliesByID.set(id, family)) : pendingUpdates.push([
|
|
126
|
-
family,
|
|
127
|
-
type
|
|
128
|
-
]), allFamiliesByType.set(type, family), typeof type == "object" && type !== null)
|
|
129
|
-
switch (getProperty(type, "$$typeof")) {
|
|
130
|
-
case REACT_FORWARD_REF_TYPE:
|
|
131
|
-
register(type.render, id + "$render");
|
|
132
|
-
break;
|
|
133
|
-
case REACT_MEMO_TYPE:
|
|
134
|
-
register(type.type, id + "$type");
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
function setSignature(type, key, forceReset, getCustomHooks) {
|
|
140
|
-
if (allSignaturesByType.has(type) || allSignaturesByType.set(type, {
|
|
141
|
-
forceReset,
|
|
142
|
-
ownKey: key,
|
|
143
|
-
fullKey: null,
|
|
144
|
-
getCustomHooks: getCustomHooks || function() {
|
|
145
|
-
return [];
|
|
146
|
-
}
|
|
147
|
-
}), typeof type == "object" && type !== null)
|
|
148
|
-
switch (getProperty(type, "$$typeof")) {
|
|
149
|
-
case REACT_FORWARD_REF_TYPE:
|
|
150
|
-
setSignature(type.render, key, forceReset, getCustomHooks);
|
|
151
|
-
break;
|
|
152
|
-
case REACT_MEMO_TYPE:
|
|
153
|
-
setSignature(type.type, key, forceReset, getCustomHooks);
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
function collectCustomHooksForSignature(type) {
|
|
158
|
-
var signature = allSignaturesByType.get(type);
|
|
159
|
-
signature !== void 0 && computeFullKey(signature);
|
|
160
|
-
}
|
|
161
|
-
function injectIntoGlobalHook(globalObject) {
|
|
162
|
-
var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
163
|
-
if (hook === void 0) {
|
|
164
|
-
var nextID = 0;
|
|
165
|
-
globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {
|
|
166
|
-
renderers: /* @__PURE__ */ new Map(),
|
|
167
|
-
supportsFiber: !0,
|
|
168
|
-
inject: function(injected) {
|
|
169
|
-
return nextID++;
|
|
170
|
-
},
|
|
171
|
-
onScheduleFiberRoot: function(id, root, children) {
|
|
172
|
-
},
|
|
173
|
-
onCommitFiberRoot: function(id, root, maybePriorityLevel, didError) {
|
|
174
|
-
},
|
|
175
|
-
onCommitFiberUnmount() {
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
if (hook.isDisabled) {
|
|
180
|
-
console.warn("Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled.");
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
var oldInject = hook.inject;
|
|
184
|
-
hook.inject = function(injected) {
|
|
185
|
-
var id = oldInject.apply(this, arguments);
|
|
186
|
-
return typeof injected.scheduleRefresh == "function" && typeof injected.setRefreshHandler == "function" && helpersByRendererID.set(id, injected), id;
|
|
187
|
-
}, hook.renderers.forEach(function(injected, id) {
|
|
188
|
-
typeof injected.scheduleRefresh == "function" && typeof injected.setRefreshHandler == "function" && helpersByRendererID.set(id, injected);
|
|
189
|
-
});
|
|
190
|
-
var oldOnCommitFiberRoot = hook.onCommitFiberRoot, oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function() {
|
|
191
|
-
};
|
|
192
|
-
hook.onScheduleFiberRoot = function(id, root, children) {
|
|
193
|
-
return isPerformingRefresh || (failedRoots.delete(root), rootElements !== null && rootElements.set(root, children)), oldOnScheduleFiberRoot.apply(this, arguments);
|
|
194
|
-
}, hook.onCommitFiberRoot = function(id, root, maybePriorityLevel, didError) {
|
|
195
|
-
var helpers = helpersByRendererID.get(id);
|
|
196
|
-
if (helpers !== void 0) {
|
|
197
|
-
helpersByRoot.set(root, helpers);
|
|
198
|
-
var current = root.current, alternate = current.alternate;
|
|
199
|
-
if (alternate !== null) {
|
|
200
|
-
var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null && mountedRoots.has(root), isMounted = current.memoizedState != null && current.memoizedState.element != null;
|
|
201
|
-
!wasMounted && isMounted ? (mountedRoots.add(root), failedRoots.delete(root)) : wasMounted && isMounted || (wasMounted && !isMounted ? (mountedRoots.delete(root), didError ? failedRoots.add(root) : helpersByRoot.delete(root)) : !wasMounted && !isMounted && didError && failedRoots.add(root));
|
|
202
|
-
} else
|
|
203
|
-
mountedRoots.add(root);
|
|
204
|
-
}
|
|
205
|
-
return oldOnCommitFiberRoot.apply(this, arguments);
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function createSignatureFunctionForTransform() {
|
|
209
|
-
var savedType, hasCustomHooks, didCollectHooks = !1;
|
|
210
|
-
return function(type, key, forceReset, getCustomHooks) {
|
|
211
|
-
if (typeof key == "string")
|
|
212
|
-
return savedType || (savedType = type, hasCustomHooks = typeof getCustomHooks == "function"), type != null && (typeof type == "function" || typeof type == "object") && setSignature(type, key, forceReset, getCustomHooks), type;
|
|
213
|
-
!didCollectHooks && hasCustomHooks && (didCollectHooks = !0, collectCustomHooksForSignature(savedType));
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function isLikelyComponentType(type) {
|
|
217
|
-
switch (typeof type) {
|
|
218
|
-
case "function": {
|
|
219
|
-
if (type.prototype != null) {
|
|
220
|
-
if (type.prototype.isReactComponent)
|
|
221
|
-
return !0;
|
|
222
|
-
var ownNames = Object.getOwnPropertyNames(type.prototype);
|
|
223
|
-
if (ownNames.length > 1 || ownNames[0] !== "constructor" || type.prototype.__proto__ !== Object.prototype)
|
|
224
|
-
return !1;
|
|
225
|
-
}
|
|
226
|
-
var name = type.name || type.displayName;
|
|
227
|
-
return typeof name == "string" && /^[A-Z]/.test(name);
|
|
228
|
-
}
|
|
229
|
-
case "object": {
|
|
230
|
-
if (type != null)
|
|
231
|
-
switch (getProperty(type, "$$typeof")) {
|
|
232
|
-
case REACT_FORWARD_REF_TYPE:
|
|
233
|
-
case REACT_MEMO_TYPE:
|
|
234
|
-
return !0;
|
|
235
|
-
default:
|
|
236
|
-
return !1;
|
|
237
|
-
}
|
|
238
|
-
return !1;
|
|
239
|
-
}
|
|
240
|
-
default:
|
|
241
|
-
return !1;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
function getRefreshReg(filename) {
|
|
245
|
-
return function(type, id) {
|
|
246
|
-
return register(type, filename + " " + id);
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
function registerExportsForReactRefresh(filename, moduleExports) {
|
|
250
|
-
for (var key in moduleExports)
|
|
251
|
-
if (key !== "__esModule") {
|
|
252
|
-
var exportValue = moduleExports[key];
|
|
253
|
-
isLikelyComponentType(exportValue) && register(exportValue, filename + " export " + key);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
function debounce(fn, delay) {
|
|
257
|
-
var handle;
|
|
258
|
-
return function() {
|
|
259
|
-
clearTimeout(handle), handle = setTimeout(fn, delay);
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
var hooks = [];
|
|
263
|
-
window.__registerBeforePerformReactRefresh = function(cb) {
|
|
264
|
-
hooks.push(cb);
|
|
265
|
-
};
|
|
266
|
-
var enqueueUpdate = debounce(async function() {
|
|
267
|
-
hooks.length && await Promise.all(hooks.map(function(cb) {
|
|
268
|
-
return cb();
|
|
269
|
-
})), performReactRefresh();
|
|
270
|
-
}, 16);
|
|
271
|
-
function validateRefreshBoundaryAndEnqueueUpdate(id, prevExports, nextExports) {
|
|
272
|
-
var _window___getReactRefreshIgnoredExports, _window, _window___getReactRefreshIgnoredExports1, ignoredExports = (_window___getReactRefreshIgnoredExports1 = (_window___getReactRefreshIgnoredExports = (_window = window).__getReactRefreshIgnoredExports) === null || _window___getReactRefreshIgnoredExports === void 0 ? void 0 : _window___getReactRefreshIgnoredExports.call(_window, {
|
|
273
|
-
id
|
|
274
|
-
})) !== null && _window___getReactRefreshIgnoredExports1 !== void 0 ? _window___getReactRefreshIgnoredExports1 : [];
|
|
275
|
-
if (predicateOnExport(ignoredExports, prevExports, function(key) {
|
|
276
|
-
return key in nextExports;
|
|
277
|
-
}) !== !0)
|
|
278
|
-
return "Could not Fast Refresh (export removed)";
|
|
279
|
-
if (predicateOnExport(ignoredExports, nextExports, function(key) {
|
|
280
|
-
return key in prevExports;
|
|
281
|
-
}) !== !0)
|
|
282
|
-
return "Could not Fast Refresh (new export)";
|
|
283
|
-
var hasExports = !1, allExportsAreComponentsOrUnchanged = predicateOnExport(ignoredExports, nextExports, function(key, value) {
|
|
284
|
-
return hasExports = !0, isLikelyComponentType(value) ? !0 : prevExports[key] === nextExports[key];
|
|
285
|
-
});
|
|
286
|
-
if (hasExports && allExportsAreComponentsOrUnchanged === !0)
|
|
287
|
-
enqueueUpdate();
|
|
288
|
-
else
|
|
289
|
-
return `Could not Fast Refresh ("${allExportsAreComponentsOrUnchanged}" export is incompatible). Learn more at https://github.com/vitejs/vite-plugin-react-swc#consistent-components-exports`;
|
|
290
|
-
}
|
|
291
|
-
function predicateOnExport(ignoredExports, moduleExports, predicate) {
|
|
292
|
-
for (var key in moduleExports)
|
|
293
|
-
if (key !== "__esModule" && !ignoredExports.includes(key)) {
|
|
294
|
-
var desc = Object.getOwnPropertyDescriptor(moduleExports, key);
|
|
295
|
-
if (desc && desc.get || !predicate(key, moduleExports[key])) return key;
|
|
296
|
-
}
|
|
297
|
-
return !0;
|
|
298
|
-
}
|
|
299
|
-
var __hmr_import = function(module2) {
|
|
300
|
-
return import(
|
|
301
|
-
/* @vite-ignore */
|
|
302
|
-
module2
|
|
303
|
-
);
|
|
304
|
-
}, refresh_runtime_default = {
|
|
305
|
-
injectIntoGlobalHook
|
|
306
|
-
};
|
|
307
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
308
|
-
0 && (module.exports = {
|
|
309
|
-
__hmr_import,
|
|
310
|
-
createSignatureFunctionForTransform,
|
|
311
|
-
getRefreshReg,
|
|
312
|
-
injectIntoGlobalHook,
|
|
313
|
-
registerExportsForReactRefresh,
|
|
314
|
-
validateRefreshBoundaryAndEnqueueUpdate
|
|
315
|
-
});
|
|
316
|
-
//# sourceMappingURL=refresh-runtime.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Users/n8/one/packages/compiler/src/refresh-runtime.js"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;AAOA,IAAMA,yBAAyBC,OAAOC,IAAI,mBAAA,GACpCC,kBAAkBF,OAAOC,IAAI,YAAA,GAI/BE,kBAAkB,oBAAIC,IAAAA,GACtBC,oBAAoB,oBAAIC,QAAAA,GACxBC,sBAAsB,oBAAID,QAAAA,GAIxBE,wBAAwB,oBAAIF,QAAAA,GAI9BG,iBAAiB,CAAA,GAGfC,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gBAAeO,SAASnE,GAAAA,GAC5B;UAAMoE,OAAOnC,OAAOoC,yBAAyB3B,eAAe1C,GAAAA;AAE5D,UADIoE,QAAQA,KAAKlH,OACb,CAACgH,UAAUlE,KAAK0C,cAAc1C,GAAAA,CAAI,EAAG,QAAOA;;AAElD,SAAO;AACT;AAIO,IAAMsE,eAAe,SAACC,SAAAA;SAAW;;IAA0BA;;GAGlE,0BAAe;EAAErE;AAAqB;",
|
|
5
|
-
"names": ["REACT_FORWARD_REF_TYPE", "Symbol", "for", "REACT_MEMO_TYPE", "allFamiliesByID", "Map", "allFamiliesByType", "WeakMap", "allSignaturesByType", "updatedFamiliesByType", "pendingUpdates", "helpersByRendererID", "helpersByRoot", "mountedRoots", "Set", "failedRoots", "rootElements", "isPerformingRefresh", "computeFullKey", "signature", "fullKey", "ownKey", "hooks", "getCustomHooks", "forceReset", "i", "length", "hook", "nestedHookSignature", "get", "undefined", "nestedHookKey", "haveEqualSignatures", "prevType", "nextType", "prevSignature", "nextSignature", "isReactClass", "type", "prototype", "isReactComponent", "canPreserveStateBetween", "resolveFamily", "getProperty", "object", "property", "performReactRefresh", "staleFamilies", "updatedFamilies", "updates", "forEach", "family", "current", "set", "add", "update", "helpers", "setRefreshHandler", "didError", "firstError", "failedRootsSnapshot", "mountedRootsSnapshot", "helpersByRootSnapshot", "root", "Error", "has", "element", "scheduleRoot", "err", "scheduleRefresh", "register", "id", "push", "render", "setSignature", "key", "collectCustomHooksForSignature", "injectIntoGlobalHook", "globalObject", "__REACT_DEVTOOLS_GLOBAL_HOOK__", "nextID", "renderers", "supportsFiber", "inject", "injected", "onScheduleFiberRoot", "children", "onCommitFiberRoot", "maybePriorityLevel", "onCommitFiberUnmount", "isDisabled", "console", "oldInject", "apply", "arguments", "oldOnCommitFiberRoot", "oldOnScheduleFiberRoot", "delete", "alternate", "wasMounted", "memoizedState", "isMounted", "createSignatureFunctionForTransform", "savedType", "hasCustomHooks", "didCollectHooks", "isLikelyComponentType", "ownNames", "Object", "getOwnPropertyNames", "__proto__", "name", "displayName", "test", "getRefreshReg", "filename", "registerExportsForReactRefresh", "moduleExports", "exportValue", "debounce", "fn", "delay", "handle", "clearTimeout", "setTimeout", "window", "__registerBeforePerformReactRefresh", "cb", "enqueueUpdate", "Promise", "all", "map", "validateRefreshBoundaryAndEnqueueUpdate", "prevExports", "nextExports", "ignoredExports", "__getReactRefreshIgnoredExports", "predicateOnExport", "hasExports", "allExportsAreComponentsOrUnchanged", "value", "predicate", "includes", "desc", "getOwnPropertyDescriptor", "__hmr_import", "module"]
|
|
6
|
-
}
|