@tamagui/static 1.136.4 → 1.136.7

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.
Files changed (111) hide show
  1. package/dist/{check-dep-versions.mjs → check-dep-versions.cjs} +1 -2
  2. package/dist/{checkDeps.mjs → checkDeps.cjs} +2 -3
  3. package/dist/{constants.mjs → constants.cjs} +1 -2
  4. package/dist/{exports.mjs → exports.cjs} +14 -15
  5. package/dist/extractor/{accessSafe.mjs → accessSafe.cjs} +1 -2
  6. package/dist/extractor/{babelParse.mjs → babelParse.cjs} +1 -2
  7. package/dist/extractor/{bundle.mjs → bundle.cjs} +4 -5
  8. package/dist/extractor/{bundleConfig.mjs → bundleConfig.cjs} +6 -7
  9. package/dist/extractor/{concatClassName.mjs → concatClassName.cjs} +1 -2
  10. package/dist/extractor/{createEvaluator.mjs → createEvaluator.cjs} +3 -4
  11. package/dist/extractor/{createExtractor.mjs → createExtractor.cjs} +16 -17
  12. package/dist/extractor/{createLogger.mjs → createLogger.cjs} +2 -3
  13. package/dist/extractor/{errors.mjs → errors.cjs} +1 -2
  14. package/dist/extractor/{esbuildAliasPlugin.mjs → esbuildAliasPlugin.cjs} +1 -2
  15. package/dist/extractor/{esbuildTsconfigPaths.mjs → esbuildTsconfigPaths.cjs} +1 -2
  16. package/dist/extractor/{evaluateAstNode.mjs → evaluateAstNode.cjs} +1 -2
  17. package/dist/extractor/{extractHelpers.mjs → extractHelpers.cjs} +2 -3
  18. package/dist/extractor/{extractMediaStyle.mjs → extractMediaStyle.cjs} +3 -4
  19. package/dist/extractor/{extractToClassNames.mjs → extractToClassNames.cjs} +10 -11
  20. package/dist/extractor/{extractToNative.mjs → extractToNative.cjs} +7 -8
  21. package/dist/extractor/{findTopmostFunction.mjs → findTopmostFunction.cjs} +1 -2
  22. package/dist/extractor/{generatedUid.mjs → generatedUid.cjs} +1 -2
  23. package/dist/extractor/{getPrefixLogs.mjs → getPrefixLogs.cjs} +1 -2
  24. package/dist/extractor/{getPropValueFromAttributes.mjs → getPropValueFromAttributes.cjs} +2 -3
  25. package/dist/extractor/{getSourceModule.mjs → getSourceModule.cjs} +1 -2
  26. package/dist/extractor/{getStaticBindingsForScope.mjs → getStaticBindingsForScope.cjs} +3 -4
  27. package/dist/extractor/{getTamaguiConfigPathFromOptionsConfig.mjs → getTamaguiConfigPathFromOptionsConfig.cjs} +1 -2
  28. package/dist/extractor/{literalToAst.mjs → literalToAst.cjs} +1 -2
  29. package/dist/extractor/{loadFile.mjs → loadFile.cjs} +1 -2
  30. package/dist/extractor/{loadTamagui.mjs → loadTamagui.cjs} +7 -8
  31. package/dist/extractor/{logLines.mjs → logLines.cjs} +1 -2
  32. package/dist/extractor/{normalizeTernaries.mjs → normalizeTernaries.cjs} +2 -3
  33. package/dist/extractor/{propsToFontFamilyCache.mjs → propsToFontFamilyCache.cjs} +1 -2
  34. package/dist/extractor/{regenerateConfig.mjs → regenerateConfig.cjs} +3 -4
  35. package/dist/extractor/{removeUnusedHooks.mjs → removeUnusedHooks.cjs} +1 -2
  36. package/dist/extractor/{timer.mjs → timer.cjs} +1 -2
  37. package/dist/extractor/{validHTMLAttributes.mjs → validHTMLAttributes.cjs} +1 -2
  38. package/dist/extractor/{watchTamaguiConfig.mjs → watchTamaguiConfig.cjs} +3 -4
  39. package/dist/{getPragmaOptions.mjs → getPragmaOptions.cjs} +1 -2
  40. package/dist/helpers/{memoize.mjs → memoize.cjs} +1 -2
  41. package/dist/helpers/{requireTamaguiCore.mjs → requireTamaguiCore.cjs} +1 -2
  42. package/dist/{index.mjs → index.cjs} +3 -4
  43. package/dist/{registerRequire.mjs → registerRequire.cjs} +3 -4
  44. package/dist/{server.mjs → server.cjs} +1 -2
  45. package/dist/setup.cjs +0 -0
  46. package/dist/{types.mjs → types.cjs} +1 -2
  47. package/dist/{worker.mjs → worker.cjs} +5 -6
  48. package/dist/worker.js +1 -1
  49. package/dist/worker.js.map +1 -1
  50. package/package.json +23 -18
  51. package/src/worker.ts +132 -0
  52. package/types/worker.d.ts +46 -0
  53. package/types/worker.d.ts.map +1 -1
  54. package/dist/async-wrapper.js +0 -98
  55. package/dist/async-wrapper.js.map +0 -6
  56. package/dist/async-wrapper.mjs +0 -113
  57. package/dist/async-wrapper.mjs.map +0 -1
  58. package/dist/check-dep-versions.mjs.map +0 -1
  59. package/dist/checkDeps.mjs.map +0 -1
  60. package/dist/constants.mjs.map +0 -1
  61. package/dist/exports.mjs.map +0 -1
  62. package/dist/extractor/accessSafe.mjs.map +0 -1
  63. package/dist/extractor/babelParse.mjs.map +0 -1
  64. package/dist/extractor/bundle.mjs.map +0 -1
  65. package/dist/extractor/bundleConfig.mjs.map +0 -1
  66. package/dist/extractor/concatClassName.mjs.map +0 -1
  67. package/dist/extractor/createEvaluator.mjs.map +0 -1
  68. package/dist/extractor/createExtractor.mjs.map +0 -1
  69. package/dist/extractor/createLogger.mjs.map +0 -1
  70. package/dist/extractor/errors.mjs.map +0 -1
  71. package/dist/extractor/esbuildAliasPlugin.mjs.map +0 -1
  72. package/dist/extractor/esbuildTsconfigPaths.mjs.map +0 -1
  73. package/dist/extractor/evaluateAstNode.mjs.map +0 -1
  74. package/dist/extractor/extractHelpers.mjs.map +0 -1
  75. package/dist/extractor/extractMediaStyle.mjs.map +0 -1
  76. package/dist/extractor/extractToClassNames.mjs.map +0 -1
  77. package/dist/extractor/extractToNative.mjs.map +0 -1
  78. package/dist/extractor/findTopmostFunction.mjs.map +0 -1
  79. package/dist/extractor/generatedUid.mjs.map +0 -1
  80. package/dist/extractor/getPrefixLogs.mjs.map +0 -1
  81. package/dist/extractor/getPropValueFromAttributes.mjs.map +0 -1
  82. package/dist/extractor/getSourceModule.mjs.map +0 -1
  83. package/dist/extractor/getStaticBindingsForScope.mjs.map +0 -1
  84. package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs.map +0 -1
  85. package/dist/extractor/literalToAst.mjs.map +0 -1
  86. package/dist/extractor/loadFile.mjs.map +0 -1
  87. package/dist/extractor/loadTamagui.mjs.map +0 -1
  88. package/dist/extractor/logLines.mjs.map +0 -1
  89. package/dist/extractor/normalizeTernaries.mjs.map +0 -1
  90. package/dist/extractor/propsToFontFamilyCache.mjs.map +0 -1
  91. package/dist/extractor/regenerateConfig.mjs.map +0 -1
  92. package/dist/extractor/removeUnusedHooks.mjs.map +0 -1
  93. package/dist/extractor/timer.mjs.map +0 -1
  94. package/dist/extractor/validHTMLAttributes.mjs.map +0 -1
  95. package/dist/extractor/watchTamaguiConfig.mjs.map +0 -1
  96. package/dist/getPragmaOptions.mjs.map +0 -1
  97. package/dist/helpers/memoize.mjs.map +0 -1
  98. package/dist/helpers/requireTamaguiCore.mjs.map +0 -1
  99. package/dist/index.mjs.map +0 -1
  100. package/dist/registerRequire.mjs.map +0 -1
  101. package/dist/server.mjs.map +0 -1
  102. package/dist/setup.mjs +0 -2
  103. package/dist/setup.mjs.map +0 -1
  104. package/dist/sync-wrapper.js +0 -61
  105. package/dist/sync-wrapper.js.map +0 -6
  106. package/dist/sync-wrapper.mjs +0 -62
  107. package/dist/sync-wrapper.mjs.map +0 -1
  108. package/dist/types.mjs.map +0 -1
  109. package/dist/worker.mjs.map +0 -1
  110. package/types/async-wrapper.d.ts.map +0 -1
  111. package/types/sync-wrapper.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"names":["registerRequire_exports","__export","getNameToPaths","registerRequire","setRequireResult","module","exports","__toCommonJS","import_node","require","import_bundle","import_requireTamaguiCore","nameToPaths","Module","proxyWorm","isRegistered","og","whitelisted","react","compiled","name","result","platform","proxyWormImports","tamaguiRequire","unregister","register","hookIgnoreNodeModules","prototype","path","apply","requireTamaguiCore","path2","knownIgnorableModules","startsWith","esbuildIgnoreFilesRegex","test","includes","arguments","err","process","env","TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD","allowedIgnores","IGNORES","TAMAGUI_SHOW_FULL_BUNDLE_ERRORS","DEBUG","hasWarnedForModules","has","add","console","error","message","stack","size","info","clear","TAMAGUI_IGNORE_BUNDLE_ERRORS","extraIgnores","split","solito","Object","fromEntries","map","k","Set"],"sources":["../src/registerRequire.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAP,uBAAA;AAAA,IAAAQ,WAAA,GAAyBC,OAAA;EAEzBC,aAAA,GAAwCD,OAAA;EACxCE,yBAAA,GAAmCF,OAAA;AAGnC,MAAMG,WAAA,GAAc,CAAC;EAERV,cAAA,GAAiBA,CAAA,KAAMU,WAAA;EAE9BC,MAAA,GAASJ,OAAA,CAAQ,aAAa;EAC9BK,SAAA,GAAYL,OAAA,CAAQ,qBAAqB;AAE/C,IAAIM,YAAA,GAAe;EACfC,EAAA;AAEJ,MAAMC,WAAA,GAAc;IAClBC,KAAA,EAAO;EACT;EAEMC,QAAA,GAAW,CAAC;AACX,SAASf,iBAAiBgB,IAAA,EAAcC,MAAA,EAAa;EAC1DF,QAAA,CAASC,IAAI,IAAIC,MAAA;AACnB;AAEO,SAASlB,gBACdmB,QAAA,EACA;EAAEC;AAAiB,IAAI;EACrBA,gBAAA,EAAkB;AACpB,GACA;EAEA,IAAIR,YAAA,EACF,OAAO;IACLS,cAAA,EAAgBf,OAAA;IAChBgB,UAAA,EAAYA,CAAA,KAAM,CAAC;EACrB;EAGF,MAAM;IAAEA;EAAW,QAAIjB,WAAA,CAAAkB,QAAA,EAAS;IAC9BC,qBAAA,EAAuB;EACzB,CAAC;EAEIX,EAAA,KACHA,EAAA,GAAKH,MAAA,CAAOe,SAAA,CAAUnB,OAAA,GAGxBM,YAAA,GAAe,IAEfF,MAAA,CAAOe,SAAA,CAAUnB,OAAA,GAAUe,cA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Y;EAEtCtB,cAAA,GAAiB;IACrB,kBAAkB;IAClB,iBAAiB;IACjB,mBAAmB;EACrB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["server_exports","__export","startServer","module","exports","__toCommonJS","import_node_net","__toESM","require","options","port","getAvailablePort","server","default","createServer","unref","Promise","resolve","reject","on","conn","data","console","info","toString","listen","port2","address","close","checkAvailablePort","catch"],"sources":["../src/server.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,cAAA;AAEA,IAAAM,eAAA,GAAgBC,OAAA,CAAAC,OAAA;AAEhB,eAAsBN,YAAYO,OAAA,EAAyB;EACzD,MAAMC,IAAA,GAAO,MAAMC,gBAAA,CAAiB;IAC9BC,MAAA,GAASN,eAAA,CAAAO,OAAA,CAAIC,YAAA,CAAa;EAChCF,MAAA,CAAOG,KAAA,CAAM,GAEb,MAAM,IAAIC,OAAA,CAAQ,CAACC,OAAA,EAASC,MAAA,KAAW;IACrCN,MAAA,CAAOO,EAAA,CAAG,SAASD,MAAM,GACzBN,MAAA,CAAOO,EAAA,CAAG,cAAeC,IAAA,IAAS;MAChCA,IAAA,CAAKD,EAAA,CAAG,QAASE,IAAA,IAAS;QACxBC,OAAA,CAAQC,IAAA,CAAK,OAAOF,IAAA,CAAKG,QAAA,CAAS,CAAC;MACrC,CAAC;IACH,CAAC,GACDZ,MAAA,CAAOa,MAAA,CAAO;MAAEf;IAAK,GAAG,MAAM;MAC5B,MAAM;QAAEA,IAAA,EAAAgB;MAAK,IAAId,MAAA,CAAOe,OAAA,CAAQ;MAChCf,MAAA,CAAOgB,KAAA,CAAM,MAAM;QACjBX,OAAA,CAAQS,KAAI;MACd,CAAC;IACH,CAAC;EACH,CAAC;AACH;AAEA,eAAef,iBAAiBD,IAAA,GAAO,MAAuB;EAC5D,OAAOmB,kBAAA,CAAmBnB,IAAI,EAAEoB,KAAA,CAAM,MAAMnB,gBAAA,CAAiBD,IAAA,GAAO,CAAC,CAAC;AACxE;AAEA,SAASmB,mBAAmBnB,IAAA,EAAc;EACxC,OAAO,IAAIM,OAAA,CAAgB,CAACC,OAAA,EAASC,MAAA,KAAW;IAC9C,MAAMN,MAAA,GAASN,eAAA,CAAAO,OAAA,CAAIC,YAAA,CAAa;IAChCF,MAAA,CAAOG,KAAA,CAAM,GACbH,MAAA,CAAOO,EAAA,CAAG,SAASD,MAAM,GAEzBN,MAAA,CAAOa,MAAA,CAAO;MAAEf;IAAK,GAAG,MAAM;MAC5B,MAAM;QAAEA,IAAA,EAAAgB;MAAK,IAAId,MAAA,CAAOe,OAAA,CAAQ;MAChCf,MAAA,CAAOgB,KAAA,CAAM,MAAM;QACjBX,OAAA,CAAQS,KAAI;MACd,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]}
package/dist/setup.mjs DELETED
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=setup.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
@@ -1,61 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var sync_wrapper_exports = {};
16
- __export(sync_wrapper_exports, {
17
- extractToClassNamesSync: () => extractToClassNamesSync,
18
- extractToNativeSync: () => extractToNativeSync
19
- });
20
- module.exports = __toCommonJS(sync_wrapper_exports);
21
- var import_synckit = require("synckit"), import_node_path = require("node:path"), import_node_url = require("node:url");
22
- const import_meta = {}, getWorkerPath = () => typeof __filename < "u" ? (0, import_node_path.resolve)(__dirname, "worker.js") : typeof import_meta < "u" && import_meta.url ? (0, import_node_path.resolve)((0, import_node_path.dirname)((0, import_node_url.fileURLToPath)(import_meta.url)), "worker.js") : (0, import_node_path.resolve)(__dirname, "worker.js"), runTaskSync = (0, import_synckit.createSyncFn)(
23
- getWorkerPath()
24
- );
25
- function extractToClassNamesSync({
26
- source,
27
- sourcePath = "",
28
- options,
29
- shouldPrintDebug = !1
30
- }) {
31
- if (typeof source != "string")
32
- throw new Error("`source` must be a string of javascript");
33
- const result = runTaskSync({
34
- type: "extractToClassNames",
35
- source,
36
- sourcePath,
37
- options,
38
- shouldPrintDebug
39
- });
40
- if (!result.success)
41
- throw new Error(
42
- `Worker error: ${result.error}${result.stack ? `
43
- ${result.stack}` : ""}`
44
- );
45
- return result.data;
46
- }
47
- function extractToNativeSync(sourceFileName, sourceCode, options) {
48
- const result = runTaskSync({
49
- type: "extractToNative",
50
- sourceFileName,
51
- sourceCode,
52
- options
53
- });
54
- if (!result.success)
55
- throw new Error(
56
- `Worker error: ${result.error}${result.stack ? `
57
- ${result.stack}` : ""}`
58
- );
59
- return result.data;
60
- }
61
- //# sourceMappingURL=sync-wrapper.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/sync-wrapper.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,qBAA6B,oBAC7B,mBAAiC,sBACjC,kBAA8B;AAP9B,wBAcM,gBAAgB,MAEhB,OAAO,aAAe,UACjB,0BAAQ,WAAW,WAAW,IAGnC,OAAO,cAAgB,OAAe,YAAY,UAC7C,8BAAQ,8BAAQ,+BAAc,YAAY,GAAG,CAAC,GAAG,WAAW,QAG9D,0BAAQ,WAAW,WAAW,GAKjC,kBAAc;AAAA,EAClB,cAAc;AAChB;AAMO,SAAS,wBAAwB;AAAA,EACtC;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA,mBAAmB;AACrB,GAK6B;AAC3B,MAAI,OAAO,UAAW;AACpB,UAAM,IAAI,MAAM,yCAAyC;AAW3D,QAAM,SAAS,YARU;AAAA,IACvB,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAE+B;AAE/B,MAAI,CAAC,OAAO;AACV,UAAM,IAAI;AAAA,MACR,iBAAiB,OAAO,KAAK,GAAG,OAAO,QAAQ;AAAA,EAAK,OAAO,KAAK,KAAK,EAAE;AAAA,IACzE;AAGF,SAAO,OAAO;AAChB;AAMO,SAAS,oBACd,gBACA,YACA,SACiB;AAQjB,QAAM,SAAS,YAPU;AAAA,IACvB,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAE+B;AAE/B,MAAI,CAAC,OAAO;AACV,UAAM,IAAI;AAAA,MACR,iBAAiB,OAAO,KAAK,GAAG,OAAO,QAAQ;AAAA,EAAK,OAAO,KAAK,KAAK,EAAE;AAAA,IACzE;AAGF,SAAO,OAAO;AAChB;",
5
- "names": []
6
- }
@@ -1,62 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- return to;
17
- };
18
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
20
- }), mod);
21
- var sync_wrapper_exports = {};
22
- __export(sync_wrapper_exports, {
23
- extractToClassNamesSync: () => extractToClassNamesSync,
24
- extractToNativeSync: () => extractToNativeSync
25
- });
26
- module.exports = __toCommonJS(sync_wrapper_exports);
27
- var import_synckit = require("synckit"),
28
- import_node_path = require("node:path"),
29
- import_node_url = require("node:url");
30
- const import_meta = {},
31
- getWorkerPath = () => typeof __filename < "u" ? (0, import_node_path.resolve)(__dirname, "worker.js") : typeof import_meta < "u" && import_meta.url ? (0, import_node_path.resolve)((0, import_node_path.dirname)((0, import_node_url.fileURLToPath)(import_meta.url)), "worker.js") : (0, import_node_path.resolve)(__dirname, "worker.js"),
32
- runTaskSync = (0, import_synckit.createSyncFn)(getWorkerPath());
33
- function extractToClassNamesSync({
34
- source,
35
- sourcePath = "",
36
- options,
37
- shouldPrintDebug = !1
38
- }) {
39
- if (typeof source != "string") throw new Error("`source` must be a string of javascript");
40
- const result = runTaskSync({
41
- type: "extractToClassNames",
42
- source,
43
- sourcePath,
44
- options,
45
- shouldPrintDebug
46
- });
47
- if (!result.success) throw new Error(`Worker error: ${result.error}${result.stack ? `
48
- ${result.stack}` : ""}`);
49
- return result.data;
50
- }
51
- function extractToNativeSync(sourceFileName, sourceCode, options) {
52
- const result = runTaskSync({
53
- type: "extractToNative",
54
- sourceFileName,
55
- sourceCode,
56
- options
57
- });
58
- if (!result.success) throw new Error(`Worker error: ${result.error}${result.stack ? `
59
- ${result.stack}` : ""}`);
60
- return result.data;
61
- }
62
- //# sourceMappingURL=sync-wrapper.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sync_wrapper_exports","__export","extractToClassNamesSync","extractToNativeSync","module","exports","__toCommonJS","import_synckit","require","import_node_path","import_node_url","import_meta","getWorkerPath","__filename","resolve","__dirname","url","dirname","fileURLToPath","runTaskSync","createSyncFn","source","sourcePath","options","shouldPrintDebug","Error","result","type","success","error","stack","data","sourceFileName","sourceCode"],"sources":["../src/sync-wrapper.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAA,uBAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,oBAAA;AAKA,IAAAO,cAAA,GAA6BC,OAAA;EAC7BC,gBAAA,GAAiCD,OAAA;EACjCE,eAAA,GAA8BF,OAAA;AAP9B,MAAAG,WAAA;EAcMC,aAAA,GAAgBA,CAAA,KAEhB,OAAOC,UAAA,GAAe,UACjBJ,gBAAA,CAAAK,OAAA,EAAQC,SAAA,EAAW,WAAW,IAGnC,OAAOJ,WAAA,GAAgB,OAAeA,WAAA,CAAYK,GAAA,OAC7CP,gBAAA,CAAAK,OAAA,MAAQL,gBAAA,CAAAQ,OAAA,MAAQP,eAAA,CAAAQ,aAAA,EAAcP,WAAA,CAAYK,GAAG,CAAC,GAAG,WAAW,QAG9DP,gBAAA,CAAAK,OAAA,EAAQC,SAAA,EAAW,WAAW;EAKjCI,WAAA,OAAcZ,cAAA,CAAAa,YAAA,EAClBR,aAAA,CAAc,CAChB;AAMO,SAASV,wBAAwB;EACtCmB,MAAA;EACAC,UAAA,GAAa;EACbC,OAAA;EACAC,gBAAA,GAAmB;AACrB,GAK6B;EAC3B,IAAI,OAAOH,MAAA,IAAW,UACpB,MAAM,IAAII,KAAA,CAAM,yCAAyC;EAW3D,MAAMC,MAAA,GAASP,WAAA,CARU;IACvBQ,IAAA,EAAM;IACNN,MAAA;IACAC,UAAA;IACAC,OAAA;IACAC;EACF,CAE+B;EAE/B,IAAI,CAACE,MAAA,CAAOE,OAAA,EACV,MAAM,IAAIH,KAAA,CACR,iBAAiBC,MAAA,CAAOG,KAAK,GAAGH,MAAA,CAAOI,KAAA,GAAQ;AAAA,EAAKJ,MAAA,CAAOI,KAAK,KAAK,EAAE,EACzE;EAGF,OAAOJ,MAAA,CAAOK,IAAA;AAChB;AAMO,SAAS5B,oBACd6B,cAAA,EACAC,UAAA,EACAV,OAAA,EACiB;EAQjB,MAAMG,MAAA,GAASP,WAAA,CAPU;IACvBQ,IAAA,EAAM;IACNK,cAAA;IACAC,UAAA;IACAV;EACF,CAE+B;EAE/B,IAAI,CAACG,MAAA,CAAOE,OAAA,EACV,MAAM,IAAIH,KAAA,CACR,iBAAiBC,MAAA,CAAOG,KAAK,GAAGH,MAAA,CAAOI,KAAA,GAAQ;AAAA,EAAKJ,MAAA,CAAOI,KAAK,KAAK,EAAE,EACzE;EAGF,OAAOJ,MAAA,CAAOK,IAAA;AAChB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["types_exports","module","exports","__toCommonJS"],"sources":["../src/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAH,aAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["worker_exports","__export","default","worker_default","runTask","module","exports","__toCommonJS","import_createExtractor","require","import_extractToClassNames","import_extractToNative","webExtractor","createExtractor","platform","nativeExtractor","configCache","Map","task","type","options","disableExtraction","_disableLoadTamagui","cacheKey","JSON","stringify","config","components","has","set","loadTamagui","get","success","data","extractToClassNames","extractor","source","sourcePath","shouldPrintDebug","extractToNative","sourceFileName","sourceCode","clear","error","Error","message","String","stack"],"sources":["../src/worker.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC,cAAA;EAAAC,OAAA,EAAAA,CAAA,KAAAA;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