@tamagui/static 1.136.1-1762547287708 → 1.136.1-1762552971784

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.
@@ -58,8 +58,10 @@ async function extractToClassNames({
58
58
  shouldPrintDebug
59
59
  }, result = await getPool().run(task, { name: "runTask" });
60
60
  if (!result.success)
61
- throw new Error(`Worker error: ${result.error}${result.stack ? `
62
- ${result.stack}` : ""}`);
61
+ throw new Error(
62
+ `Worker error: ${result.error}${result.stack ? `
63
+ ${result.stack}` : ""}`
64
+ );
63
65
  return result.data;
64
66
  }
65
67
  async function extractToNative(sourceFileName, sourceCode, options) {
@@ -70,8 +72,10 @@ async function extractToNative(sourceFileName, sourceCode, options) {
70
72
  options
71
73
  }, result = await getPool().run(task, { name: "runTask" });
72
74
  if (!result.success)
73
- throw new Error(`Worker error: ${result.error}${result.stack ? `
74
- ${result.stack}` : ""}`);
75
+ throw new Error(
76
+ `Worker error: ${result.error}${result.stack ? `
77
+ ${result.stack}` : ""}`
78
+ );
75
79
  return result.data;
76
80
  }
77
81
  async function clearWorkerCache() {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/async-wrapper.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,qBAAoB,6BACpB,kBAA8B,qBAC9B,mBAAiC;AAPjC,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;AAGvC,IAAI,cAA8B;AAKlC,SAAS,UAAmB;AAC1B,SAAK,gBACH,cAAc,IAAI,eAAAA,QAAQ;AAAA,IACxB,UAAU,cAAc;AAAA;AAAA,IAExB,YAAY;AAA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CAAC;AAExD,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;AAMA,eAAsB,mBAAkC;AACtD,MAAI,CAAC,YAAa;AAElB,QAAM,OAAmB,EAAE,MAAM,aAAa;AAC9C,QAAM,YAAY,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACjD;AAMA,eAAsB,cAA6B;AACjD,EAAI,gBACF,MAAM,YAAY,QAAQ,GAC1B,cAAc;AAElB;AAKO,SAAS,eAAe;AAC7B,SAAK,cAGE;AAAA,IACL,SAAS,YAAY,QAAQ;AAAA,IAC7B,WAAW,YAAY;AAAA,IACvB,WAAW,YAAY;AAAA,IACvB,UAAU,YAAY;AAAA,IACtB,aAAa,YAAY;AAAA,EAC3B,IARS;AASX;",
5
5
  "names": ["Piscina"]
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"names":["async_wrapper_exports","__export","clearWorkerCache","destroyPool","extractToClassNames","extractToNative","getPoolStats","module","exports","__toCommonJS","import_piscina","__toESM","require","import_node_url","import_node_path","import_meta","getWorkerPath","__filename","resolve","__dirname","url","dirname","fileURLToPath","piscinaPool","getPool","default","filename","minThreads","maxThreads","idleTimeout","source","sourcePath","options","shouldPrintDebug","Error","task","type","result","run","name","success","error","stack","data","sourceFileName","sourceCode","destroy","threads","length","queueSize","completed","duration","utilization"],"sources":["../src/async-wrapper.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA,mBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,YAA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X","ignoreList":[]}
1
+ {"version":3,"names":["async_wrapper_exports","__export","clearWorkerCache","destroyPool","extractToClassNames","extractToNative","getPoolStats","module","exports","__toCommonJS","import_piscina","__toESM","require","import_node_url","import_node_path","import_meta","getWorkerPath","__filename","resolve","__dirname","url","dirname","fileURLToPath","piscinaPool","getPool","default","filename","minThreads","maxThreads","idleTimeout","source","sourcePath","options","shouldPrintDebug","Error","task","type","result","run","name","success","error","stack","data","sourceFileName","sourceCode","destroy","threads","length","queueSize","completed","duration","utilization"],"sources":["../src/async-wrapper.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA,mBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAT,qBAAA;AAKA,IAAAU,cAAA,GAAoBC,OAAA,CAAAC,OAAA;EACpBC,eAAA,GAA8BD,OAAA;EAC9BE,gBAAA,GAAiCF,OAAA;AAPjC,MAAAG,WAAA;EAcMC,aAAA,GAAgBA,CAAA,KAEhB,OAAOC,UAAA,GAAe,UACjBH,gBAAA,CAAAI,OAAA,EAAQC,SAAA,EAAW,WAAW,IAGnC,OAAOJ,WAAA,GAAgB,OAAeA,WAAA,CAAYK,GAAA,OAC7CN,gBAAA,CAAAI,OAAA,MAAQJ,gBAAA,CAAAO,OAAA,MAAQR,eAAA,CAAAS,aAAA,EAAcP,WAAA,CAAYK,GAAG,CAAC,GAAG,WAAW,QAG9DN,gBAAA,CAAAI,OAAA,EAAQC,SAAA,EAAW,WAAW;AAGvC,IAAII,WAAA,GAA8B;AAKlC,SAASC,QAAA,EAAmB;EA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AAOM,IAAA;AAChB;AAMA,eAAsBzC,iBAAA,EAAkC;EACtD,IAAI,CAACqB,WAAA,EAAa;EAElB,MAAMY,IAAA,GAAmB;IAAEC,IAAA,EAAM;EAAa;EAC9C,MAAMb,WAAA,CAAYe,GAAA,CAAIH,IAAA,EAAM;IAAEI,IAAA,EAAM;EAAU,CAAC;AACjD;AAMA,eAAsBpC,YAAA,EAA6B;EAC7CoB,WAAA,KACF,MAAMA,WAAA,CAAYuB,OAAA,CAAQ,GAC1BvB,WAAA,GAAc;AAElB;AAKO,SAASjB,aAAA,EAAe;EAC7B,OAAKiB,WAAA,GAGE;IACLwB,OAAA,EAASxB,WAAA,CAAYwB,OAAA,CAAQC,MAAA;IAC7BC,SAAA,EAAW1B,WAAA,CAAY0B,SAAA;IACvBC,SAAA,EAAW3B,WAAA,CAAY2B,SAAA;IACvBC,QAAA,EAAU5B,WAAA,CAAY4B,QAAA;IACtBC,WAAA,EAAa7B,WAAA,CAAY6B;EAC3B,IARS;AASX","ignoreList":[]}
package/dist/exports.js CHANGED
@@ -14,33 +14,21 @@ var __export = (target, all) => {
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
15
  var exports_exports = {};
16
16
  __export(exports_exports, {
17
- clearWorkerCache: () => import_async_wrapper.clearWorkerCache,
18
17
  createExtractor: () => import_createExtractor.createExtractor,
19
- destroyPool: () => import_async_wrapper.destroyPool,
20
- esbuildWatchFiles: () => import_loadTamagui.esbuildWatchFiles,
21
- extractToClassNames: () => import_async_wrapper.extractToClassNames,
22
- extractToClassNamesLegacy: () => import_extractToClassNames.extractToClassNames,
23
- extractToNative: () => import_async_wrapper.extractToNative,
24
- extractToNativeLegacy: () => import_extractToNative2.extractToNative,
25
- generateThemesAndLog: () => import_loadTamagui.generateThemesAndLog,
26
- getBabelPlugin: () => import_extractToNative.getBabelPlugin,
27
- getOptions: () => import_loadTamagui.getOptions,
28
- getPoolStats: () => import_async_wrapper.getPoolStats,
29
- literalToAst: () => import_literalToAst.literalToAst,
30
- loadTamagui: () => import_loadTamagui2.loadTamagui,
31
- loadTamaguiBuildConfigSync: () => import_loadTamagui.loadTamaguiBuildConfigSync,
32
- loadTamaguiSync: () => import_loadTamagui2.loadTamaguiSync
18
+ literalToAst: () => import_literalToAst.literalToAst
33
19
  });
34
20
  module.exports = __toCommonJS(exports_exports);
35
21
  __reExport(exports_exports, require("./checkDeps"), module.exports);
36
22
  __reExport(exports_exports, require("./types"), module.exports);
37
- var import_literalToAst = require("./extractor/literalToAst");
23
+ var import_createExtractor = require("./extractor/createExtractor"), import_literalToAst = require("./extractor/literalToAst");
38
24
  __reExport(exports_exports, require("./constants"), module.exports);
25
+ __reExport(exports_exports, require("./extractor/extractToClassNames"), module.exports);
39
26
  __reExport(exports_exports, require("./extractor/concatClassName"), module.exports);
27
+ __reExport(exports_exports, require("./extractor/extractToNative"), module.exports);
40
28
  __reExport(exports_exports, require("./extractor/extractHelpers"), module.exports);
29
+ __reExport(exports_exports, require("./extractor/loadTamagui"), module.exports);
41
30
  __reExport(exports_exports, require("./extractor/watchTamaguiConfig"), module.exports);
42
31
  __reExport(exports_exports, require("./extractor/createLogger"), module.exports);
43
32
  __reExport(exports_exports, require("./registerRequire"), module.exports);
44
33
  __reExport(exports_exports, require("./getPragmaOptions"), module.exports);
45
- var import_async_wrapper = require("./async-wrapper"), import_extractToNative = require("./extractor/extractToNative"), import_loadTamagui = require("./extractor/loadTamagui"), import_createExtractor = require("./extractor/createExtractor"), import_extractToClassNames = require("./extractor/extractToClassNames"), import_extractToNative2 = require("./extractor/extractToNative"), import_loadTamagui2 = require("./extractor/loadTamagui");
46
34
  //# sourceMappingURL=exports.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/exports.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAc,wBAAd;AACA,4BAAc,oBADd;AAEA,0BAA6B;AAC7B,4BAAc,wBAHd;AAIA,4BAAc,wCAJd;AAKA,4BAAc,uCALd;AAMA,4BAAc,2CANd;AAOA,4BAAc,qCAPd;AAQA,4BAAc,8BARd;AASA,4BAAc,+BATd;AAaA,2BAMO,4BAKP,yBAA+B,wCAG/B,qBAKO,oCAIP,yBAAgC,wCAChC,6BAAiE,4CACjEA,0BAAyD,wCACzDC,sBAA6C;",
5
- "names": ["import_extractToNative", "import_loadTamagui"]
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAc,wBAAd;AACA,4BAAc,oBADd;AAEA,6BAAgC,wCAChC,sBAA6B;AAC7B,4BAAc,wBAJd;AAKA,4BAAc,4CALd;AAMA,4BAAc,wCANd;AAOA,4BAAc,wCAPd;AAQA,4BAAc,uCARd;AASA,4BAAc,oCATd;AAUA,4BAAc,2CAVd;AAWA,4BAAc,qCAXd;AAYA,4BAAc,8BAZd;AAaA,4BAAc,+BAbd;",
5
+ "names": []
6
6
  }
package/dist/exports.mjs CHANGED
@@ -21,39 +21,22 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
21
  }), mod);
22
22
  var exports_exports = {};
23
23
  __export(exports_exports, {
24
- clearWorkerCache: () => import_async_wrapper.clearWorkerCache,
25
24
  createExtractor: () => import_createExtractor.createExtractor,
26
- destroyPool: () => import_async_wrapper.destroyPool,
27
- esbuildWatchFiles: () => import_loadTamagui.esbuildWatchFiles,
28
- extractToClassNames: () => import_async_wrapper.extractToClassNames,
29
- extractToClassNamesLegacy: () => import_extractToClassNames.extractToClassNames,
30
- extractToNative: () => import_async_wrapper.extractToNative,
31
- extractToNativeLegacy: () => import_extractToNative2.extractToNative,
32
- generateThemesAndLog: () => import_loadTamagui.generateThemesAndLog,
33
- getBabelPlugin: () => import_extractToNative.getBabelPlugin,
34
- getOptions: () => import_loadTamagui.getOptions,
35
- getPoolStats: () => import_async_wrapper.getPoolStats,
36
- literalToAst: () => import_literalToAst.literalToAst,
37
- loadTamagui: () => import_loadTamagui2.loadTamagui,
38
- loadTamaguiBuildConfigSync: () => import_loadTamagui.loadTamaguiBuildConfigSync,
39
- loadTamaguiSync: () => import_loadTamagui2.loadTamaguiSync
25
+ literalToAst: () => import_literalToAst.literalToAst
40
26
  });
41
27
  module.exports = __toCommonJS(exports_exports);
42
28
  __reExport(exports_exports, require("./checkDeps.mjs"), module.exports);
43
29
  __reExport(exports_exports, require("./types.mjs"), module.exports);
44
- var import_literalToAst = require("./extractor/literalToAst.mjs");
30
+ var import_createExtractor = require("./extractor/createExtractor.mjs"),
31
+ import_literalToAst = require("./extractor/literalToAst.mjs");
45
32
  __reExport(exports_exports, require("./constants.mjs"), module.exports);
33
+ __reExport(exports_exports, require("./extractor/extractToClassNames.mjs"), module.exports);
46
34
  __reExport(exports_exports, require("./extractor/concatClassName.mjs"), module.exports);
35
+ __reExport(exports_exports, require("./extractor/extractToNative.mjs"), module.exports);
47
36
  __reExport(exports_exports, require("./extractor/extractHelpers.mjs"), module.exports);
37
+ __reExport(exports_exports, require("./extractor/loadTamagui.mjs"), module.exports);
48
38
  __reExport(exports_exports, require("./extractor/watchTamaguiConfig.mjs"), module.exports);
49
39
  __reExport(exports_exports, require("./extractor/createLogger.mjs"), module.exports);
50
40
  __reExport(exports_exports, require("./registerRequire.mjs"), module.exports);
51
41
  __reExport(exports_exports, require("./getPragmaOptions.mjs"), module.exports);
52
- var import_async_wrapper = require("./async-wrapper.mjs"),
53
- import_extractToNative = require("./extractor/extractToNative.mjs"),
54
- import_loadTamagui = require("./extractor/loadTamagui.mjs"),
55
- import_createExtractor = require("./extractor/createExtractor.mjs"),
56
- import_extractToClassNames = require("./extractor/extractToClassNames.mjs"),
57
- import_extractToNative2 = require("./extractor/extractToNative.mjs"),
58
- import_loadTamagui2 = require("./extractor/loadTamagui.mjs");
59
42
  //# sourceMappingURL=exports.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["exports_exports","__export","clearWorkerCache","import_async_wrapper","createExtractor","import_createExtractor","destroyPool","esbuildWatchFiles","import_loadTamagui","extractToClassNames","extractToClassNamesLegacy","import_extractToClassNames","extractToNative","extractToNativeLegacy","import_extractToNative2","generateThemesAndLog","getBabelPlugin","import_extractToNative","getOptions","getPoolStats","literalToAst","import_literalToAst","loadTamagui","import_loadTamagui2","loadTamaguiBuildConfigSync","loadTamaguiSync","module","exports","__toCommonJS","__reExport","require"],"sources":["../src/exports.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAC,oBAAA,CAAAD,gBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAC,sBAAA,CAAAD,eAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAH,oBAAA,CAAAG,WAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAC,kBAAA,CAAAD,iBAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAN,oBAAA,CAAAM,mBAAA;EAAAC,yBAAA,EAAAA,CAAA,KAAAC,0BAAA,CAAAF,mBAAA;EAAAG,eAAA,EAAAA,CAAA,KAAAT,oBAAA,CAAAS,eAAA;EAAAC,qBAAA,EAAAA,CAAA,KAAAC,uBAAA,CAAAF,eAAA;EAAAG,oBAAA,EAAAA,CAAA,KAAAP,kBAAA,CAAAO,oBAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAC,sBAAA,CAAAD,cAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAV,kBAAA,CAAAU,UAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAhB,oBAAA,CAAAgB,YAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAC,mBAAA,CAAAD,YAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAC,mBAAA,CAAAD,WAAA;EAAAE,0BAAA,EAAAA,CAAA,KAAAhB,kBAAA,CAAAgB,0BAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAF,mBAAA,CAAAE;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAA5B,eAAA;AAAA6B,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,qBAAdJ,MAAA,CAAAC,OAAA;AACAE,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,iBADdJ,MAAA,CAAAC,OAAA;AAEA,IAAAN,mBAAA,GAA6BS,OAAA;AAC7BD,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,qBAHdJ,MAAA,CAAAC,OAAA;AAIAE,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,qCAJdJ,MAAA,CAAAC,OAAA;AAKAE,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,oCALdJ,MAAA,CAAAC,OAAA;AAMAE,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,wCANdJ,MAAA,CAAAC,OAAA;AAOAE,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,kCAPdJ,MAAA,CAAAC,OAAA;AAQAE,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,2BARdJ,MAAA,CAAAC,OAAA;AASAE,UAAA,CAAA7B,eAAA,EAAc8B,OAAA,4BATdJ,MAAA,CAAAC,OAAA;AAaA,IAAAxB,oBAAA,GAMO2B,OAAA;EAKPb,sBAAA,GAA+Ba,OAAA;EAG/BtB,kBAAA,GAKOsB,OAAA;EAIPzB,sBAAA,GAAgCyB,OAAA;EAChCnB,0BAAA,GAAiEmB,OAAA;EACjEhB,uBAAA,GAAyDgB,OAAA;EACzDP,mBAAA,GAA6CO,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["exports_exports","__export","createExtractor","import_createExtractor","literalToAst","import_literalToAst","module","exports","__toCommonJS","__reExport","require"],"sources":["../src/exports.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAC,sBAAA,CAAAD,eAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAC,mBAAA,CAAAD;AAAA;AAAAE,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAR,eAAA;AAAAS,UAAA,CAAAT,eAAA,EAAcU,OAAA,qBAAdJ,MAAA,CAAAC,OAAA;AACAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,iBADdJ,MAAA,CAAAC,OAAA;AAEA,IAAAJ,sBAAA,GAAgCO,OAAA;EAChCL,mBAAA,GAA6BK,OAAA;AAC7BD,UAAA,CAAAT,eAAA,EAAcU,OAAA,qBAJdJ,MAAA,CAAAC,OAAA;AAKAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,yCALdJ,MAAA,CAAAC,OAAA;AAMAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,qCANdJ,MAAA,CAAAC,OAAA;AAOAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,qCAPdJ,MAAA,CAAAC,OAAA;AAQAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,oCARdJ,MAAA,CAAAC,OAAA;AASAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,iCATdJ,MAAA,CAAAC,OAAA;AAUAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,wCAVdJ,MAAA,CAAAC,OAAA;AAWAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,kCAXdJ,MAAA,CAAAC,OAAA;AAYAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,2BAZdJ,MAAA,CAAAC,OAAA;AAaAE,UAAA,CAAAT,eAAA,EAAcU,OAAA,4BAbdJ,MAAA,CAAAC,OAAA","ignoreList":[]}
@@ -32,7 +32,7 @@ __export(bundleConfig_exports, {
32
32
  writeTamaguiCSS: () => writeTamaguiCSS
33
33
  });
34
34
  module.exports = __toCommonJS(bundleConfig_exports);
35
- var import_generator = __toESM(require("@babel/generator")), import_traverse = __toESM(require("@babel/traverse")), t = __toESM(require("@babel/types")), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), FS = __toESM(require("fs-extra")), import_node_fs = require("node:fs"), import_promises = require("node:fs/promises"), import_node_path = require("node:path"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_registerRequire = require("../registerRequire"), import_babelParse = require("./babelParse"), import_bundle = require("./bundle"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
35
+ var import_generator = __toESM(require("@babel/generator")), import_traverse = __toESM(require("@babel/traverse")), t = __toESM(require("@babel/types")), import_node_fs = require("node:fs"), import_node_path = require("node:path"), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), FS = __toESM(require("fs-extra")), import_promises = require("node:fs/promises"), import_registerRequire = require("../registerRequire"), import_babelParse = require("./babelParse"), import_bundle = require("./bundle"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore");
36
36
  const external = [
37
37
  "@tamagui/core",
38
38
  "@tamagui/web",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/extractor/bundleConfig.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAqB,sCACrB,kBAAqB,qCACrB,IAAmB,kCACnB,mBAAgC,+BAEhC,iBAAoB,6BACpB,KAAoB,8BACpB,iBAAyC,oBACzC,kBAAyB,6BACzB,mBAAgE,sBAChE,4BAAmC,0CACnC,yBAAkD,+BAElD,oBAA2B,yBAC3B,gBAA2D,qBAC3D,+CAAsD;AAuBtD,MAAM,WAAW;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEM,sBAAsB;AAAA,E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GF,MADqB,WAAW;AAE9B,WAAO;AAEX;AAEA,SAAS,qBAAqB,KAAU;AACtC,SAAO,KAAK,WAAW;AACzB;AAEA,MAAM,kBAAsD,CAAC;AAE7D,SAAS,oBAAoB,KAAa;AACxC,QAAM,YAAY,oBAAI,IAAY;AAIlC,6BAAAC,SAAS,KAAK;AAAA,IACZ,uBAAuB,UAAU;AAC/B,UAAI,SAAS,KAAK;AAChB,mBAAW,QAAQ,SAAS,KAAK;AAC/B,oBAAU;AAAA,YACR,EAAE,aAAa,KAAK,QAAQ,IAAI,KAAK,SAAS,OAAO,KAAK,SAAS;AAAA,UACrE;AAAA,IAGN;AAAA,EACF,CAAC,OAGD,gBAAAA,SAAS,KAAK;AAAA,IACZ,oBAAoB,UAAU;AAE5B,UAAI,CAAC,EAAE,UAAU,SAAS,MAAM,EAAG;AACnC,YAAM,OAAO,SAAS,KAAK;AAC3B,UAAI,KAAK,SAAS,EAAG;AACrB,YAAM,CAAC,GAAG,IAAI;AACd,MAAK,EAAE,aAAa,IAAI,EAAE,KACrB,IAAI,SACL,UAAU,IAAI,IAAI,GAAG,IAAI,MAC7B,UAAU,IAAI,IAAI,GAAG,IAAI,GACzB,SAAS;AAAA,QACP,EAAE,uBAAuB,EAAE,oBAAoB,OAAO,CAAC,GAAG,CAAC,GAAG;AAAA,UAC5D,EAAE,gBAAgB,EAAE,WAAW,IAAI,GAAG,IAAI,GAAG,EAAE,WAAW,IAAI,GAAG,IAAI,CAAC;AAAA,QACxE,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,CAAC,OAGM,iBAAAC,SAAS,KAAY;AAAA,IAC1B,SAAS;AAAA,IACT,UAAU;AAAA,IACV,aAAa;AAAA,IACb,YAAY;AAAA,EACd,CAAC,EAAE;AACL;",
5
5
  "names": ["forceExports", "esbuild", "traverse", "generate"]
6
6
  }
@@ -44,17 +44,17 @@ module.exports = __toCommonJS(bundleConfig_exports);
44
44
  var import_generator = __toESM(require("@babel/generator")),
45
45
  import_traverse = __toESM(require("@babel/traverse")),
46
46
  t = __toESM(require("@babel/types")),
47
+ import_node_fs = require("node:fs"),
48
+ import_node_path = require("node:path"),
47
49
  import_cli_color = require("@tamagui/cli-color"),
48
50
  import_esbuild = __toESM(require("esbuild")),
49
51
  FS = __toESM(require("fs-extra")),
50
- import_node_fs = require("node:fs"),
51
52
  import_promises = require("node:fs/promises"),
52
- import_node_path = require("node:path"),
53
- import_requireTamaguiCore = require("../helpers/requireTamaguiCore.mjs"),
54
53
  import_registerRequire = require("../registerRequire.mjs"),
55
54
  import_babelParse = require("./babelParse.mjs"),
56
55
  import_bundle = require("./bundle.mjs"),
57
- import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig.mjs");
56
+ import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig.mjs"),
57
+ import_requireTamaguiCore = require("../helpers/requireTamaguiCore.mjs");
58
58
  const external = ["@tamagui/core", "@tamagui/web", "react", "react-dom", "react-native-svg"],
59
59
  esbuildExtraOptions = {
60
60
  define: {
@@ -1 +1 @@
1
- {"version":3,"names":["bundleConfig_exports","__export","bundleConfig","esbuildOptions","getBundledConfig","getLoadedConfig","hasBundledConfigChanged","loadComponents","loadComponentsInner","writeTamaguiCSS","module","exports","__toCommonJS","import_generator","__toESM","require","import_traverse","t","import_cli_color","import_esbuild","FS","import_node_fs","import_promises","import_node_path","import_requireTamaguiCore","import_registerRequire","import_babelParse","import_bundle","import_getTamaguiConfigPathFromOptionsConfig","external","esbuildExtraOptions","define","__DEV__","process","env","NODE_ENV","target","format","jsx","platform","currentBundle","isBundling","lastBundle","waitForBundle","Set","loadedConfig","props","rebuild","Promise","res","add","global","tamaguiLastLoaded","updateLastLoaded","config","Date","now","tamaguiLastBundledConfig","hasBundledOnce","configEntry","getTamaguiConfigPathFromOptionsConfig","tmpDir","join","cwd","configOutPath","baseComponents","components","filter","x","componentOutPaths","map","componentModule","split","sep","replace","DEBUG","startsWith","console","info","disableInitialBuild","ensureDir","start","all","esbundleTamaguiConfig","entryPoints","outfile","i","resolvePlatformSpecificEntries","colorLog","Color","FgYellow","Dim","relative","p","out","unregister","registerRequire","key","cache","test","err","default","tokens","Error","parsed","createTamagui","requireTamaguiCore","outputCSS","component","moduleName","indexOf","includes","IS_TAMAGUI_DEV","warn","JSON","stringify","nameToPaths","tamaguiConfig","error","message","stack","forEach","cb","clear","flush","writeFile","css","getCSS","existsSync","readFile","forceExports","coreComponents","getCoreComponents","otherComponents","loaded","componentsModules","cacheComponents","proxyWormImports","flatMap","name","isDynamic","extname","fileContents","readFileSync","loadModule","dirname","basename","writtenContents","didBabel","attemptLoad","forceExports2","transformAddExports","babelParse","esbuildit","writeFileSync","buildSync","alias","resolve","bundle","packages","allowOverwrite","sourcemap","loader","esbuildLoaderConfig","moduleResult","setRequireResult","nameToInfo","getComponentStaticConfigByName","interopDefaultExport","dispose","removeSync","TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD","src","transformSync","code","exported","Array","isArray","found","getTamaguiComponent","Component","sc","staticConfig","toUpperCase","mod","ast","usedNames","ExportNamedDeclaration","nodePath","node","specifiers","spec","isIdentifier","value","VariableDeclaration","isProgram","parent","decs","declarations","length","dec","id","init","has","replaceWith","exportNamedDeclaration","variableDeclaration","exportSpecifier","identifier","concise","filename","retainLines","sourceMaps"],"sources":["../../src/extractor/bundleConfig.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,uBAAA,EAAAA,CAAA,KAAAA,uBAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,mBAAA,EAAAA,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]}
1
+ {"version":3,"names":["bundleConfig_exports","__export","bundleConfig","esbuildOptions","getBundledConfig","getLoadedConfig","hasBundledConfigChanged","loadComponents","loadComponentsInner","writeTamaguiCSS","module","exports","__toCommonJS","import_generator","__toESM","require","import_traverse","t","import_node_fs","import_node_path","import_cli_color","import_esbuild","FS","import_promises","import_registerRequire","import_babelParse","import_bundle","import_getTamaguiConfigPathFromOptionsConfig","import_requireTamaguiCore","external","esbuildExtraOptions","define","__DEV__","process","env","NODE_ENV","target","format","jsx","platform","currentBundle","isBundling","lastBundle","waitForBundle","Set","loadedConfig","props","rebuild","Promise","res","add","global","tamaguiLastLoaded","updateLastLoaded","config","Date","now","tamaguiLastBundledConfig","hasBundledOnce","configEntry","getTamaguiConfigPathFromOptionsConfig","tmpDir","join","cwd","configOutPath","baseComponents","components","filter","x","componentOutPaths","map","componentModule","split","sep","replace","DEBUG","startsWith","console","info","disableInitialBuild","ensureDir","start","all","esbundleTamaguiConfig","entryPoints","outfile","i","resolvePlatformSpecificEntries","colorLog","Color","FgYellow","Dim","relative","p","out","unregister","registerRequire","key","cache","test","err","default","tokens","Error","parsed","createTamagui","requireTamaguiCore","outputCSS","component","moduleName","indexOf","includes","IS_TAMAGUI_DEV","warn","JSON","stringify","nameToPaths","tamaguiConfig","error","message","stack","forEach","cb","clear","flush","writeFile","css","getCSS","existsSync","readFile","forceExports","coreComponents","getCoreComponents","otherComponents","loaded","componentsModules","cacheComponents","proxyWormImports","flatMap","name","isDynamic","extname","fileContents","readFileSync","loadModule","dirname","basename","writtenContents","didBabel","attemptLoad","forceExports2","transformAddExports","babelParse","esbuildit","writeFileSync","buildSync","alias","resolve","bundle","packages","allowOverwrite","sourcemap","loader","esbuildLoaderConfig","moduleResult","setRequireResult","nameToInfo","getComponentStaticConfigByName","interopDefaultExport","dispose","removeSync","TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD","src","transformSync","code","exported","Array","isArray","found","getTamaguiComponent","Component","sc","staticConfig","toUpperCase","mod","ast","usedNames","ExportNamedDeclaration","nodePath","node","specifiers","spec","isIdentifier","value","VariableDeclaration","isProgram","parent","decs","declarations","length","dec","id","init","has","replaceWith","exportNamedDeclaration","variableDeclaration","exportSpecifier","identifier","concise","filename","retainLines","sourceMaps"],"sources":["../../src/extractor/bundleConfig.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,uBAAA,EAAAA,CAAA,KAAAA,uBAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA,mBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAZ,oBAAA;AAAA,IAAAa,gBAAA,GAAqBC,OAAA,CAAAC,OAAA;EACrBC,eAAA,GAAqBF,OAAA,CAAAC,OAAA;EACrBE,CAAA,GAAmBH,OAAA,CAAAC,OAAA;EACnBG,cAAA,GAAyCH,OAAA;EACzCI,gBAAA,GAAgEJ,OAAA;EAEhEK,gBAAA,GAAgCL,OAAA;EAMhCM,cAAA,GAAoBP,OAAA,CAAAC,OAAA;EACpBO,EAAA,GAAoBR,OAAA,CAAAC,OAAA;EACpBQ,eAAA,GAAyBR,OAAA;EACzBS,sBAAA,GAAkDT,OAAA;EAElDU,iBAAA,GAA2BV,OAAA;EAC3BW,aAAA,GAA2DX,OAAA;EAC3DY,4CAAA,GAAsDZ,OAAA;EACtDa,yBAAA,GAAmCb,OAAA;AAuBnC,MAAMc,QAAA,GAAW,CACf,iBACA,gBACA,SACA,aACA,mBACF;EAEMC,mBAAA,GAAsB;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MAC7B+C,SAAA,CAAUxI,GAAA,CAAIsJ,GAAA,CAAIC,EAAA,CAAG9D,IAAI,GACzBiD,QAAA,CAASgB,WAAA,CACP3L,CAAA,CAAE4L,sBAAA,CAAuB5L,CAAA,CAAE6L,mBAAA,CAAoB,OAAO,CAACN,GAAG,CAAC,GAAG,CAC5DvL,CAAA,CAAE8L,eAAA,CAAgB9L,CAAA,CAAE+L,UAAA,CAAWR,GAAA,CAAIC,EAAA,CAAG9D,IAAI,GAAG1H,CAAA,CAAE+L,UAAA,CAAWR,GAAA,CAAIC,EAAA,CAAG9D,IAAI,CAAC,EACvE,CACH;IACF;EACF,CAAC,OAGM9H,gBAAA,CAAAwF,OAAA,EAASoF,GAAA,EAAY;IAC1BwB,OAAA,EAAS;IACTC,QAAA,EAAU;IACVC,WAAA,EAAa;IACbC,UAAA,EAAY;EACd,CAAC,EAAEtC,IAAA;AACL","ignoreList":[]}
@@ -17,7 +17,7 @@ __export(watchTamaguiConfig_exports, {
17
17
  watchTamaguiConfig: () => watchTamaguiConfig
18
18
  });
19
19
  module.exports = __toCommonJS(watchTamaguiConfig_exports);
20
- var import_async_wrapper = require("../async-wrapper"), import_loadTamagui = require("./loadTamagui"), import_regenerateConfig = require("./regenerateConfig");
20
+ var import_loadTamagui = require("./loadTamagui"), import_regenerateConfig = require("./regenerateConfig");
21
21
  let isWatching = !1;
22
22
  async function watchTamaguiConfig(tamaguiOptions) {
23
23
  if (process.env.NODE_ENV === "production")
@@ -34,7 +34,7 @@ async function watchTamaguiConfig(tamaguiOptions) {
34
34
  const disposeConfigWatcher = await (0, import_loadTamagui.esbuildWatchFiles)(
35
35
  options.tamaguiOptions.config,
36
36
  async () => {
37
- await (0, import_async_wrapper.clearWorkerCache)(), await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions), await (0, import_regenerateConfig.regenerateConfig)(options.tamaguiOptions, null, !0);
37
+ await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions), await (0, import_regenerateConfig.regenerateConfig)(options.tamaguiOptions, null, !0);
38
38
  }
39
39
  ), themeBuilderInput = options.tamaguiOptions.themeBuilder?.input;
40
40
  let disposeThemesWatcher;
@@ -45,7 +45,7 @@ async function watchTamaguiConfig(tamaguiOptions) {
45
45
  } catch {
46
46
  }
47
47
  disposeThemesWatcher = await (0, import_loadTamagui.esbuildWatchFiles)(inputPath, async () => {
48
- await (0, import_async_wrapper.clearWorkerCache)(), await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions);
48
+ await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions);
49
49
  });
50
50
  }
51
51
  return {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/extractor/watchTamaguiConfig.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,2BAAiC,6BACjC,qBAAoE,0BACpE,0BAAiC;AAEjC,IAAI,aAAa;AAEjB,eAAsB,mBAAmB,gBAAgC;AACvE,MAAI,QAAQ,IAAI,aAAa;AAC3B,WAAO;AAAA,MACL,UAAU;AAAA,MAAC;AAAA,IACb;AAGF,MAAI;AACF;AAGF,eAAa;AAEb,QAAM,UAAU,UAAM,+BAAW,EAAE,eAAe,CAAC;AAEnD,MAAI,CAAC,QAAQ,eAAe;AAC1B,uBAAa,IACP,IAAI,MAAM,WAAW;AAG7B,QAAM,uBAAuB,UAAM;AAAA,IACjC,QAAQ,eAAe;AAAA,IACvB,YAAY;AACV,gBAAM,uCAAiB,GACvB,UAAM,yCAAqB,QAAQ,cAAc,GACjD,UAAM,0CAAiB,QAAQ,gBAAgB,MAAM,EAAI;AAAA,IAC3D;AAAA,EACF,GAEM,oBAAoB,QAAQ,eAAe,cAAc;AAC/D,MAAI;AAEJ,MAAI,mBAAmB;AACrB,QAAI,YAAY;AAChB,QAAI;AACF,kBAAY,QAAQ,QAAQ,iBAAiB;AAAA,IAC/C,QAAQ;AAAA,IAER;AACA,2BAAuB,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25
  module.exports = __toCommonJS(watchTamaguiConfig_exports);
26
- var import_async_wrapper = require("../async-wrapper.mjs"),
27
- import_loadTamagui = require("./loadTamagui.mjs"),
26
+ var import_loadTamagui = require("./loadTamagui.mjs"),
28
27
  import_regenerateConfig = require("./regenerateConfig.mjs");
29
28
  let isWatching = !1;
30
29
  async function watchTamaguiConfig(tamaguiOptions) {
@@ -38,7 +37,7 @@ async function watchTamaguiConfig(tamaguiOptions) {
38
37
  });
39
38
  if (!options.tamaguiOptions.config) throw isWatching = !1, new Error("No config");
40
39
  const disposeConfigWatcher = await (0, import_loadTamagui.esbuildWatchFiles)(options.tamaguiOptions.config, async () => {
41
- await (0, import_async_wrapper.clearWorkerCache)(), await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions), await (0, import_regenerateConfig.regenerateConfig)(options.tamaguiOptions, null, !0);
40
+ await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions), await (0, import_regenerateConfig.regenerateConfig)(options.tamaguiOptions, null, !0);
42
41
  }),
43
42
  themeBuilderInput = options.tamaguiOptions.themeBuilder?.input;
44
43
  let disposeThemesWatcher;
@@ -48,7 +47,7 @@ async function watchTamaguiConfig(tamaguiOptions) {
48
47
  inputPath = require.resolve(themeBuilderInput);
49
48
  } catch {}
50
49
  disposeThemesWatcher = await (0, import_loadTamagui.esbuildWatchFiles)(inputPath, async () => {
51
- await (0, import_async_wrapper.clearWorkerCache)(), await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions);
50
+ await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions);
52
51
  });
53
52
  }
54
53
  return {
@@ -1 +1 @@
1
- {"version":3,"names":["watchTamaguiConfig_exports","__export","watchTamaguiConfig","module","exports","__toCommonJS","import_async_wrapper","require","import_loadTamagui","import_regenerateConfig","isWatching","tamaguiOptions","process","env","NODE_ENV","dispose","options","getOptions","config","Error","disposeConfigWatcher","esbuildWatchFiles","clearWorkerCache","generateThemesAndLog","regenerateConfig","themeBuilderInput","themeBuilder","input","disposeThemesWatcher","inputPath","resolve"],"sources":["../../src/extractor/watchTamaguiConfig.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,0BAAA;AACA,IAAAM,oBAAA,GAAiCC,OAAA;EACjCC,kBAAA,GAAoED,OAAA;EACpEE,uBAAA,GAAiCF,OAAA;AAEjC,IAAIG,UAAA,GAAa;AAEjB,eAAsBR,mBAAmBS,cAAA,EAAgC;EACvE,IAAIC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,cAC3B,OAAO;IACLC,QAAA,EAAU,CAAC;EACb;EAGF,IAAIL,UAAA,EACF;EAGFA,UAAA,GAAa;EAEb,MAAMM,OAAA,GAAU,UAAMR,kBAAA,CAAAS,UAAA,EAAW;IAAEN;EAAe,CAAC;EAEnD,IAAI,CAACK,OAAA,CAAQL,cAAA,CAAeO,MAAA,EAC1B,MAAAR,UAAA,GAAa,IACP,IAAIS,KAAA,CAAM,WAAW;EAG7B,MAAMC,oBAAA,GAAuB,UAAMZ,kBAAA,CAAAa,iBAAA,EACjCL,OAAA,CAAQL,cAAA,CAAeO,MAAA,EACvB,YAAY;MACV,UAAMZ,oBAAA,CAAAgB,gBAAA,EAAiB,GACvB,UAAMd,kBAAA,CAAAe,oBAAA,EAAqBP,OAAA,CAAQL,cAAc,GACjD,UAAMF,uBAAA,CAAAe,gBAAA,EAAiBR,OAAA,CAAQL,cAAA,EAAgB,MAAM,EAAI;IAC3D,CACF;IAEMc,iBAAA,GAAoBT,OAAA,CAAQL,cAAA,CAAee,YAAA,EAAcC,KAAA;EAC/D,IAAIC,oBAAA;EAEJ,IAAIH,iBAAA,EAAmB;IACrB,IAAII,SAAA,GAAYJ,iBAAA;IAChB,IAAI;MACFI,SAAA,GAAYtB,OAAA,CAAQuB,OAAA,CAAQL,iBAAiB;IAC/C,QAAQ,CAER;IACAG,oBAAA,GAAuB,UAAMpB,kBAAA,CAAAa,iBAAA,EAAkBQ,SAAA,EAAW,YAAY;MACpE,UAAMvB,oBAAA,CAAAgB,gBAAA,EAAiB,GACvB,UAAMd,kBAAA,CAAAe,oBAAA,EAAqBP,OAAA,CAAQL,cAAc;IACnD,CAAC;EACH;EAEA,OAAO;IACLI,QAAA,EAAU;MACRL,UAAA,GAAa,IACbU,oBAAA,CAAqB,GACrBQ,oBAAA,GAAuB;IACzB;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"names":["watchTamaguiConfig_exports","__export","watchTamaguiConfig","module","exports","__toCommonJS","import_loadTamagui","require","import_regenerateConfig","isWatching","tamaguiOptions","process","env","NODE_ENV","dispose","options","getOptions","config","Error","disposeConfigWatcher","esbuildWatchFiles","generateThemesAndLog","regenerateConfig","themeBuilderInput","themeBuilder","input","disposeThemesWatcher","inputPath","resolve"],"sources":["../../src/extractor/watchTamaguiConfig.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,0BAAA;AACA,IAAAM,kBAAA,GAAoEC,OAAA;EACpEC,uBAAA,GAAiCD,OAAA;AAEjC,IAAIE,UAAA,GAAa;AAEjB,eAAsBP,mBAAmBQ,cAAA,EAAgC;EACvE,IAAIC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,cAC3B,OAAO;IACLC,QAAA,EAAU,CAAC;EACb;EAGF,IAAIL,UAAA,EACF;EAGFA,UAAA,GAAa;EAEb,MAAMM,OAAA,GAAU,UAAMT,kBAAA,CAAAU,UAAA,EAAW;IAAEN;EAAe,CAAC;EAEnD,IAAI,CAACK,OAAA,CAAQL,cAAA,CAAeO,MAAA,EAC1B,MAAAR,UAAA,GAAa,IACP,IAAIS,KAAA,CAAM,WAAW;EAG7B,MAAMC,oBAAA,GAAuB,UAAMb,kBAAA,CAAAc,iBAAA,EACjCL,OAAA,CAAQL,cAAA,CAAeO,MAAA,EACvB,YAAY;MACV,UAAMX,kBAAA,CAAAe,oBAAA,EAAqBN,OAAA,CAAQL,cAAc,GACjD,UAAMF,uBAAA,CAAAc,gBAAA,EAAiBP,OAAA,CAAQL,cAAA,EAAgB,MAAM,EAAI;IAC3D,CACF;IAEMa,iBAAA,GAAoBR,OAAA,CAAQL,cAAA,CAAec,YAAA,EAAcC,KAAA;EAC/D,IAAIC,oBAAA;EAEJ,IAAIH,iBAAA,EAAmB;IACrB,IAAII,SAAA,GAAYJ,iBAAA;IAChB,IAAI;MACFI,SAAA,GAAYpB,OAAA,CAAQqB,OAAA,CAAQL,iBAAiB;IAC/C,QAAQ,CAER;IACAG,oBAAA,GAAuB,UAAMpB,kBAAA,CAAAc,iBAAA,EAAkBO,SAAA,EAAW,YAAY;MACpE,UAAMrB,kBAAA,CAAAe,oBAAA,EAAqBN,OAAA,CAAQL,cAAc;IACnD,CAAC;EACH;EAEA,OAAO;IACLI,QAAA,EAAU;MACRL,UAAA,GAAa,IACbU,oBAAA,CAAqB,GACrBO,oBAAA,GAAuB;IACzB;EACF;AACF","ignoreList":[]}
@@ -19,7 +19,9 @@ __export(sync_wrapper_exports, {
19
19
  });
20
20
  module.exports = __toCommonJS(sync_wrapper_exports);
21
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)(getWorkerPath());
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
+ );
23
25
  function extractToClassNamesSync({
24
26
  source,
25
27
  sourcePath = "",
@@ -36,8 +38,10 @@ function extractToClassNamesSync({
36
38
  shouldPrintDebug
37
39
  });
38
40
  if (!result.success)
39
- throw new Error(`Worker error: ${result.error}${result.stack ? `
40
- ${result.stack}` : ""}`);
41
+ throw new Error(
42
+ `Worker error: ${result.error}${result.stack ? `
43
+ ${result.stack}` : ""}`
44
+ );
41
45
  return result.data;
42
46
  }
43
47
  function extractToNativeSync(sourceFileName, sourceCode, options) {
@@ -48,8 +52,10 @@ function extractToNativeSync(sourceFileName, sourceCode, options) {
48
52
  options
49
53
  });
50
54
  if (!result.success)
51
- throw new Error(`Worker error: ${result.error}${result.stack ? `
52
- ${result.stack}` : ""}`);
55
+ throw new Error(
56
+ `Worker error: ${result.error}${result.stack ? `
57
+ ${result.stack}` : ""}`
58
+ );
53
59
  return result.data;
54
60
  }
55
61
  //# sourceMappingURL=sync-wrapper.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
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,6BAA0D,cAAc,CAAC;A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A,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
5
  "names": []
6
6
  }
@@ -1 +1 @@
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,SA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"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":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/static",
3
- "version": "1.136.1-1762547287708",
3
+ "version": "1.136.1-1762552971784",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "type": "commonjs",
@@ -43,19 +43,19 @@
43
43
  "@babel/template": "^7.25.0",
44
44
  "@babel/traverse": "^7.25.4",
45
45
  "@babel/types": "^7.25.4",
46
- "@tamagui/cli-color": "1.136.1-1762547287708",
47
- "@tamagui/config-default": "1.136.1-1762547287708",
48
- "@tamagui/core": "1.136.1-1762547287708",
49
- "@tamagui/fake-react-native": "1.136.1-1762547287708",
50
- "@tamagui/generate-themes": "1.136.1-1762547287708",
51
- "@tamagui/helpers": "1.136.1-1762547287708",
52
- "@tamagui/helpers-node": "1.136.1-1762547287708",
53
- "@tamagui/proxy-worm": "1.136.1-1762547287708",
54
- "@tamagui/react-native-web-internals": "1.136.1-1762547287708",
55
- "@tamagui/react-native-web-lite": "1.136.1-1762547287708",
56
- "@tamagui/shorthands": "1.136.1-1762547287708",
57
- "@tamagui/types": "1.136.1-1762547287708",
58
- "@tamagui/web": "1.136.1-1762547287708",
46
+ "@tamagui/cli-color": "1.136.1-1762552971784",
47
+ "@tamagui/config-default": "1.136.1-1762552971784",
48
+ "@tamagui/core": "1.136.1-1762552971784",
49
+ "@tamagui/fake-react-native": "1.136.1-1762552971784",
50
+ "@tamagui/generate-themes": "1.136.1-1762552971784",
51
+ "@tamagui/helpers": "1.136.1-1762552971784",
52
+ "@tamagui/helpers-node": "1.136.1-1762552971784",
53
+ "@tamagui/proxy-worm": "1.136.1-1762552971784",
54
+ "@tamagui/react-native-web-internals": "1.136.1-1762552971784",
55
+ "@tamagui/react-native-web-lite": "1.136.1-1762552971784",
56
+ "@tamagui/shorthands": "1.136.1-1762552971784",
57
+ "@tamagui/types": "1.136.1-1762552971784",
58
+ "@tamagui/web": "1.136.1-1762552971784",
59
59
  "babel-literal-to-ast": "^2.1.0",
60
60
  "browserslist": "^4.22.2",
61
61
  "check-dependency-version-consistency": "^4.1.0",
@@ -67,14 +67,12 @@
67
67
  "fs-extra": "^11.2.0",
68
68
  "invariant": "^2.2.4",
69
69
  "js-yaml": "^4.1.0",
70
- "piscina": "^5.1.4",
71
- "react-native-web": "^0.20.0",
72
- "synckit": "^0.11.11"
70
+ "react-native-web": "^0.20.0"
73
71
  },
74
72
  "devDependencies": {
75
73
  "@babel/plugin-syntax-typescript": "^7.25.4",
76
74
  "@expo/match-media": "^0.4.0",
77
- "@tamagui/build": "1.136.1-1762547287708",
75
+ "@tamagui/build": "1.136.1-1762552971784",
78
76
  "@types/babel__core": "^7.20.5",
79
77
  "@types/find-root": "^1.1.2",
80
78
  "@types/node": "^22.1.0",
package/src/exports.ts CHANGED
@@ -1,40 +1,14 @@
1
1
  export * from './checkDeps'
2
2
  export * from './types'
3
+ export { createExtractor } from './extractor/createExtractor'
3
4
  export { literalToAst } from './extractor/literalToAst'
4
5
  export * from './constants'
6
+ export * from './extractor/extractToClassNames'
5
7
  export * from './extractor/concatClassName'
8
+ export * from './extractor/extractToNative'
6
9
  export * from './extractor/extractHelpers'
10
+ export * from './extractor/loadTamagui'
7
11
  export * from './extractor/watchTamaguiConfig'
8
12
  export * from './extractor/createLogger'
9
13
  export * from './registerRequire'
10
14
  export * from './getPragmaOptions'
11
-
12
- // PRIMARY API: Worker-based extraction (Webpack, Vite, Metro)
13
- // Config loading happens automatically in worker thread
14
- export {
15
- extractToClassNames,
16
- extractToNative,
17
- clearWorkerCache,
18
- destroyPool,
19
- getPoolStats,
20
- } from './async-wrapper'
21
-
22
- // BABEL PLUGIN: Uses visitor pattern with in-process extraction
23
- // Visitor processes AST incrementally so can't offload per-element to worker
24
- // Uses esbuild-register in-process (acceptable tradeoff - babel/native less common)
25
- export { getBabelPlugin } from './extractor/extractToNative'
26
-
27
- // UTILITIES: For CLI and advanced usage
28
- export {
29
- generateThemesAndLog,
30
- esbuildWatchFiles,
31
- getOptions,
32
- loadTamaguiBuildConfigSync,
33
- } from './extractor/loadTamagui'
34
- export type { TamaguiProjectInfo } from './extractor/loadTamagui'
35
-
36
- // INTERNAL: For tests and backwards compatibility
37
- export { createExtractor } from './extractor/createExtractor'
38
- export { extractToClassNames as extractToClassNamesLegacy } from './extractor/extractToClassNames'
39
- export { extractToNative as extractToNativeLegacy } from './extractor/extractToNative'
40
- export { loadTamagui, loadTamaguiSync } from './extractor/loadTamagui'
@@ -1,19 +1,24 @@
1
1
  import generate from '@babel/generator'
2
2
  import traverse from '@babel/traverse'
3
3
  import * as t from '@babel/types'
4
+ import { existsSync, readFileSync } from 'node:fs'
5
+ import { basename, dirname, extname, join, relative, sep } from 'node:path'
6
+ // @ts-ignore why
4
7
  import { Color, colorLog } from '@tamagui/cli-color'
5
- import type { StaticConfig, TamaguiInternalConfig } from '@tamagui/web'
8
+ import {
9
+ createTamagui,
10
+ type StaticConfig,
11
+ type TamaguiInternalConfig,
12
+ } from '@tamagui/web'
6
13
  import esbuild from 'esbuild'
7
14
  import * as FS from 'fs-extra'
8
- import { existsSync, readFileSync } from 'node:fs'
9
15
  import { readFile } from 'node:fs/promises'
10
- import { basename, dirname, extname, join, relative, sep } from 'node:path'
11
- import { requireTamaguiCore } from '../helpers/requireTamaguiCore'
12
16
  import { registerRequire, setRequireResult } from '../registerRequire'
13
17
  import type { TamaguiOptions } from '../types'
14
18
  import { babelParse } from './babelParse'
15
19
  import { esbuildLoaderConfig, esbundleTamaguiConfig } from './bundle'
16
20
  import { getTamaguiConfigPathFromOptionsConfig } from './getTamaguiConfigPathFromOptionsConfig'
21
+ import { requireTamaguiCore } from '../helpers/requireTamaguiCore'
17
22
 
18
23
  type NameToPaths = {
19
24
  [key: string]: Set<string>
@@ -1,5 +1,4 @@
1
1
  import type { TamaguiOptions } from '@tamagui/types'
2
- import { clearWorkerCache } from '../async-wrapper'
3
2
  import { esbuildWatchFiles, generateThemesAndLog, getOptions } from './loadTamagui'
4
3
  import { regenerateConfig } from './regenerateConfig'
5
4
 
@@ -28,7 +27,6 @@ export async function watchTamaguiConfig(tamaguiOptions: TamaguiOptions) {
28
27
  const disposeConfigWatcher = await esbuildWatchFiles(
29
28
  options.tamaguiOptions.config,
30
29
  async () => {
31
- await clearWorkerCache() // Clear worker cache first
32
30
  await generateThemesAndLog(options.tamaguiOptions)
33
31
  await regenerateConfig(options.tamaguiOptions, null, true)
34
32
  }
@@ -45,7 +43,6 @@ export async function watchTamaguiConfig(tamaguiOptions: TamaguiOptions) {
45
43
  // ok
46
44
  }
47
45
  disposeThemesWatcher = await esbuildWatchFiles(inputPath, async () => {
48
- await clearWorkerCache() // Clear worker cache first
49
46
  await generateThemesAndLog(options.tamaguiOptions)
50
47
  })
51
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"async-wrapper.d.ts","sourceRoot":"","sources":["../src/async-wrapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAA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AAE,MAAM,CAAA;IACnB,OAAO,EAAE,cAAc,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACvC,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAuBpC;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAkB1B;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAKtD;AAED;;;GAGG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAKjD;AAED;;GAEG;AACH,wBAAgB,YAAY;;;;;;SAW3B"}
@@ -1,19 +1,15 @@
1
1
  export * from './checkDeps';
2
2
  export * from './types';
3
+ export { createExtractor } from './extractor/createExtractor';
3
4
  export { literalToAst } from './extractor/literalToAst';
4
5
  export * from './constants';
6
+ export * from './extractor/extractToClassNames';
5
7
  export * from './extractor/concatClassName';
8
+ export * from './extractor/extractToNative';
6
9
  export * from './extractor/extractHelpers';
10
+ export * from './extractor/loadTamagui';
7
11
  export * from './extractor/watchTamaguiConfig';
8
12
  export * from './extractor/createLogger';
9
13
  export * from './registerRequire';
10
14
  export * from './getPragmaOptions';
11
- export { extractToClassNames, extractToNative, clearWorkerCache, destroyPool, getPoolStats, } from './async-wrapper';
12
- export { getBabelPlugin } from './extractor/extractToNative';
13
- export { generateThemesAndLog, esbuildWatchFiles, getOptions, loadTamaguiBuildConfigSync, } from './extractor/loadTamagui';
14
- export type { TamaguiProjectInfo } from './extractor/loadTamagui';
15
- export { createExtractor } from './extractor/createExtractor';
16
- export { extractToClassNames as extractToClassNamesLegacy } from './extractor/extractToClassNames';
17
- export { extractToNative as extractToNativeLegacy } from './extractor/extractToNative';
18
- export { loadTamagui, loadTamaguiSync } from './extractor/loadTamagui';
19
15
  //# sourceMappingURL=exports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,cAAc,aAAa,CAAA;AAC3B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAIlC,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,YAAY,GACb,MAAM,iBAAiB,CAAA;AAKxB,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAG5D,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,0BAA0B,GAC3B,MAAM,yBAAyB,CAAA;AAChC,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAGjE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAClG,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,cAAc,aAAa,CAAA;AAC3B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { StaticConfig, TamaguiInternalConfig } from '@tamagui/web';
1
+ import { type StaticConfig, type TamaguiInternalConfig } from '@tamagui/web';
2
2
  import type { TamaguiOptions } from '../types';
3
3
  type NameToPaths = {
4
4
  [key: string]: Set<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"bundleConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/bundleConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAQvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAK9C,KAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAChB,MAAM,EACN;QACE,YAAY,EAAE,YAAY,CAAA;KAC3B,CACF,CAAA;CACF,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC/B,aAAa,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC5C,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAgBD,eAAO,MAAM,cAAc;;;;;;;;CAMK,CAAA;AAEhC,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;AAQxF,wBAAg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AO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;AAQxF,wBAAgB,uBAAuB,YAMtC;AAID,eAAO,MAAM,eAAe,oCAAqB,CAAA;AAEjD,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,UAAQ,gBAS5E;AAWD,wBAAsB,YAAY,CAAC,KAAK,EAAE,cAAc,gBA+LvD;AAED,wBAAsB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,iBAmBrF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,EAAE,YAAY,UAAQ,sBAIzE;AAqBD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,cAAc,EACrB,YAAY,UAAQ,GACnB,IAAI,GAAG,gBAAgB,EAAE,CA+H3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"watchTamaguiConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/watchTamaguiConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAOpD,wBAAsB,kBAAkB,CAAC,cAAc,EAAE,cAAc;;eAoDtE"}
1
+ {"version":3,"file":"watchTamaguiConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/watchTamaguiConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAMpD,wBAAsB,kBAAkB,CAAC,cAAc,EAAE,cAAc;;eAkDtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"sync-wrapper.d.ts","sourceRoot":"","sources":["../src/sync-wrapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAqB7C;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,UAAe,EACf,OAAO,EACP,gBAAwB,GACzB,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,cAAc,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACvC,GAAG,iBAAiB,GAAG,IAAI,CAoB3B;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,GACtB,eAAe,CAejB"}
1
+ {"version":3,"file":"sync-wrapper.d.ts","sourceRoot":"","sources":["../src/sync-wrapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAuB7C;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,UAAe,EACf,OAAO,EACP,gBAAwB,GACzB,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,cAAc,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACvC,GAAG,iBAAiB,GAAG,IAAI,CAsB3B;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,GACtB,eAAe,CAiBjB"}
@@ -1,149 +0,0 @@
1
- /**
2
- * Piscina-based async wrapper for bundlers (Webpack, Vite, Metro)
3
- * Provides worker thread pooling for better performance
4
- */
5
-
6
- import Piscina from 'piscina'
7
- import { fileURLToPath } from 'node:url'
8
- import { resolve, dirname } from 'node:path'
9
- import type { BabelFileResult } from '@babel/core'
10
- import type { ExtractedResponse } from './extractor/extractToClassNames'
11
- import type { TamaguiOptions } from './types'
12
- import type { WorkerTask, WorkerResult } from './worker'
13
-
14
- // Resolve worker path - works for both CJS and ESM
15
- const getWorkerPath = () => {
16
- // In CJS, __filename is available
17
- if (typeof __filename !== 'undefined') {
18
- return resolve(__dirname, 'worker.js')
19
- }
20
- // In ESM, use import.meta.url
21
- if (typeof import.meta !== 'undefined' && import.meta.url) {
22
- return resolve(dirname(fileURLToPath(import.meta.url)), 'worker.js')
23
- }
24
- // Fallback
25
- return resolve(__dirname, 'worker.js')
26
- }
27
-
28
- let piscinaPool: Piscina | null = null
29
-
30
- /**
31
- * Get or create the Piscina worker pool
32
- */
33
- function getPool(): Piscina {
34
- if (!piscinaPool) {
35
- piscinaPool = new Piscina({
36
- filename: getWorkerPath(),
37
- // Single worker for state consistency and simpler caching
38
- minThreads: 1,
39
- maxThreads: 1,
40
- idleTimeout: 60000, // 60s - keep alive for config watching
41
- })
42
- }
43
- return piscinaPool
44
- }
45
-
46
- /**
47
- * Extract Tamagui components to className-based CSS for web
48
- * Used by Webpack, Vite, and Metro plugins
49
- */
50
- export async function extractToClassNames({
51
- source,
52
- sourcePath = '',
53
- options,
54
- shouldPrintDebug = false,
55
- }: {
56
- source: string | Buffer
57
- sourcePath?: string
58
- options: TamaguiOptions
59
- shouldPrintDebug?: boolean | 'verbose'
60
- }): Promise<ExtractedResponse | null> {
61
- if (typeof source !== 'string') {
62
- throw new Error('`source` must be a string of javascript')
63
- }
64
-
65
- const task: WorkerTask = {
66
- type: 'extractToClassNames',
67
- source,
68
- sourcePath,
69
- options,
70
- shouldPrintDebug,
71
- }
72
-
73
- const pool = getPool()
74
- const result = (await pool.run(task, { name: 'runTask' })) as WorkerResult
75
-
76
- if (!result.success) {
77
- throw new Error(
78
- `Worker error: ${result.error}${result.stack ? `\n${result.stack}` : ''}`
79
- )
80
- }
81
-
82
- return result.data as ExtractedResponse | null
83
- }
84
-
85
- /**
86
- * Extract Tamagui components to React Native StyleSheet format
87
- * Used by native compilation (less common now)
88
- */
89
- export async function extractToNative(
90
- sourceFileName: string,
91
- sourceCode: string,
92
- options: TamaguiOptions
93
- ): Promise<BabelFileResult> {
94
- const task: WorkerTask = {
95
- type: 'extractToNative',
96
- sourceFileName,
97
- sourceCode,
98
- options,
99
- }
100
-
101
- const pool = getPool()
102
- const result = (await pool.run(task, { name: 'runTask' })) as WorkerResult
103
-
104
- if (!result.success) {
105
- throw new Error(
106
- `Worker error: ${result.error}${result.stack ? `\n${result.stack}` : ''}`
107
- )
108
- }
109
-
110
- return result.data as BabelFileResult
111
- }
112
-
113
- /**
114
- * Clear the worker's config cache
115
- * Called when config files change (via watch)
116
- */
117
- export async function clearWorkerCache(): Promise<void> {
118
- if (!piscinaPool) return
119
-
120
- const task: WorkerTask = { type: 'clearCache' }
121
- await piscinaPool.run(task, { name: 'runTask' })
122
- }
123
-
124
- /**
125
- * Clean up the worker pool on exit
126
- * Should be called when the build process completes
127
- */
128
- export async function destroyPool(): Promise<void> {
129
- if (piscinaPool) {
130
- await piscinaPool.destroy()
131
- piscinaPool = null
132
- }
133
- }
134
-
135
- /**
136
- * Get pool statistics for debugging
137
- */
138
- export function getPoolStats() {
139
- if (!piscinaPool) {
140
- return null
141
- }
142
- return {
143
- threads: piscinaPool.threads.length,
144
- queueSize: piscinaPool.queueSize,
145
- completed: piscinaPool.completed,
146
- duration: piscinaPool.duration,
147
- utilization: piscinaPool.utilization,
148
- }
149
- }
@@ -1,97 +0,0 @@
1
- /**
2
- * Synckit-based sync wrapper for Babel plugin
3
- * Allows synchronous calls to the async worker for Babel compatibility
4
- */
5
-
6
- import { createSyncFn } from 'synckit'
7
- import { resolve, dirname } from 'node:path'
8
- import { fileURLToPath } from 'node:url'
9
- import type { BabelFileResult } from '@babel/core'
10
- import type { ExtractedResponse } from './extractor/extractToClassNames'
11
- import type { TamaguiOptions } from './types'
12
- import type { WorkerTask, WorkerResult } from './worker'
13
-
14
- // Resolve worker path - works for both CJS and ESM
15
- const getWorkerPath = () => {
16
- // In CJS, __filename is available
17
- if (typeof __filename !== 'undefined') {
18
- return resolve(__dirname, 'worker.js')
19
- }
20
- // In ESM, use import.meta.url
21
- if (typeof import.meta !== 'undefined' && import.meta.url) {
22
- return resolve(dirname(fileURLToPath(import.meta.url)), 'worker.js')
23
- }
24
- // Fallback
25
- return resolve(__dirname, 'worker.js')
26
- }
27
-
28
- // Create the sync function that calls the worker
29
- // synckit will automatically handle worker thread management
30
- const runTaskSync = createSyncFn<(task: WorkerTask) => Promise<WorkerResult>>(
31
- getWorkerPath()
32
- )
33
-
34
- /**
35
- * Synchronous version of extractToClassNames for Babel plugin
36
- * Uses synckit to call the async worker synchronously
37
- */
38
- export function extractToClassNamesSync({
39
- source,
40
- sourcePath = '',
41
- options,
42
- shouldPrintDebug = false,
43
- }: {
44
- source: string | Buffer
45
- sourcePath?: string
46
- options: TamaguiOptions
47
- shouldPrintDebug?: boolean | 'verbose'
48
- }): ExtractedResponse | null {
49
- if (typeof source !== 'string') {
50
- throw new Error('`source` must be a string of javascript')
51
- }
52
-
53
- const task: WorkerTask = {
54
- type: 'extractToClassNames',
55
- source,
56
- sourcePath,
57
- options,
58
- shouldPrintDebug,
59
- }
60
-
61
- const result = runTaskSync(task)
62
-
63
- if (!result.success) {
64
- throw new Error(
65
- `Worker error: ${result.error}${result.stack ? `\n${result.stack}` : ''}`
66
- )
67
- }
68
-
69
- return result.data as ExtractedResponse | null
70
- }
71
-
72
- /**
73
- * Synchronous version of extractToNative for Babel plugin
74
- * Uses synckit to call the async worker synchronously
75
- */
76
- export function extractToNativeSync(
77
- sourceFileName: string,
78
- sourceCode: string,
79
- options: TamaguiOptions
80
- ): BabelFileResult {
81
- const task: WorkerTask = {
82
- type: 'extractToNative',
83
- sourceFileName,
84
- sourceCode,
85
- options,
86
- }
87
-
88
- const result = runTaskSync(task)
89
-
90
- if (!result.success) {
91
- throw new Error(
92
- `Worker error: ${result.error}${result.stack ? `\n${result.stack}` : ''}`
93
- )
94
- }
95
-
96
- return result.data as BabelFileResult
97
- }
package/src/worker.ts DELETED
@@ -1,128 +0,0 @@
1
- /**
2
- * Worker thread implementation for Tamagui extraction
3
- * Used by both piscina (async) and synckit (sync for babel)
4
- */
5
-
6
- import type { BabelFileResult } from '@babel/core'
7
- import { createExtractor } from './extractor/createExtractor'
8
- import type {
9
- ExtractedResponse,
10
- ExtractToClassNamesProps,
11
- } from './extractor/extractToClassNames'
12
- import { extractToClassNames as extractToClassNamesImpl } from './extractor/extractToClassNames'
13
- import { extractToNative as extractToNativeImpl } from './extractor/extractToNative'
14
- import type { TamaguiOptions } from './types'
15
-
16
- // Create extractors for web and native in worker
17
- const webExtractor = createExtractor({ platform: 'web' })
18
- const nativeExtractor = createExtractor({ platform: 'native' })
19
-
20
- // Cache config loading to avoid reloading
21
- const configCache: Map<string, Promise<any>> = new Map()
22
-
23
- export interface ExtractToClassNamesTask {
24
- type: 'extractToClassNames'
25
- source: string
26
- sourcePath: string
27
- options: TamaguiOptions
28
- shouldPrintDebug: boolean | 'verbose'
29
- }
30
-
31
- export interface ExtractToNativeTask {
32
- type: 'extractToNative'
33
- sourceFileName: string
34
- sourceCode: string
35
- options: TamaguiOptions
36
- }
37
-
38
- export interface ClearCacheTask {
39
- type: 'clearCache'
40
- }
41
-
42
- export type WorkerTask = ExtractToClassNamesTask | ExtractToNativeTask | ClearCacheTask
43
-
44
- export type WorkerResult =
45
- | { success: true; data: ExtractedResponse | null }
46
- | { success: true; data: BabelFileResult }
47
- | { success: false; error: string; stack?: string }
48
-
49
- /**
50
- * Main worker function that handles both extraction types
51
- * This is called by piscina for async usage
52
- */
53
- export async function runTask(task: WorkerTask): Promise<WorkerResult> {
54
- try {
55
- if (task.type === 'extractToClassNames') {
56
- // Load web config if needed (with caching)
57
- if (!task.options.disableExtraction && !task.options['_disableLoadTamagui']) {
58
- const cacheKey = JSON.stringify({
59
- config: task.options.config,
60
- components: task.options.components,
61
- })
62
-
63
- if (!configCache.has(cacheKey)) {
64
- configCache.set(cacheKey, webExtractor.loadTamagui(task.options))
65
- }
66
-
67
- await configCache.get(cacheKey)
68
- }
69
-
70
- const result = await extractToClassNamesImpl({
71
- extractor: webExtractor,
72
- source: task.source,
73
- sourcePath: task.sourcePath,
74
- options: task.options,
75
- shouldPrintDebug: task.shouldPrintDebug,
76
- })
77
-
78
- return { success: true, data: result }
79
- }
80
-
81
- if (task.type === 'extractToNative') {
82
- // Load native config if needed (with caching)
83
- const cacheKey = JSON.stringify({
84
- config: task.options.config,
85
- components: task.options.components,
86
- })
87
-
88
- if (!configCache.has(cacheKey)) {
89
- configCache.set(cacheKey, nativeExtractor.loadTamagui(task.options))
90
- }
91
-
92
- await configCache.get(cacheKey)
93
-
94
- // extractToNative uses its own module-level extractor
95
- // This is for babel plugin which uses visitor pattern
96
- const result = extractToNativeImpl(
97
- task.sourceFileName,
98
- task.sourceCode,
99
- task.options
100
- )
101
-
102
- return { success: true, data: result }
103
- }
104
-
105
- if (task.type === 'clearCache') {
106
- // Clear config caches when files change
107
- configCache.clear()
108
- return { success: true, data: null }
109
- }
110
-
111
- return {
112
- success: false,
113
- error: `Unknown task type: ${(task as any).type}`,
114
- }
115
- } catch (error) {
116
- return {
117
- success: false,
118
- error: error instanceof Error ? error.message : String(error),
119
- stack: error instanceof Error ? error.stack : undefined,
120
- }
121
- }
122
- }
123
-
124
- /**
125
- * For synckit compatibility - exports the runTask as default
126
- * Synckit will call this function synchronously using worker threads
127
- */
128
- export default runTask
@@ -1,43 +0,0 @@
1
- /**
2
- * Piscina-based async wrapper for bundlers (Webpack, Vite, Metro)
3
- * Provides worker thread pooling for better performance
4
- */
5
- import type { BabelFileResult } from '@babel/core';
6
- import type { ExtractedResponse } from './extractor/extractToClassNames';
7
- import type { TamaguiOptions } from './types';
8
- /**
9
- * Extract Tamagui components to className-based CSS for web
10
- * Used by Webpack, Vite, and Metro plugins
11
- */
12
- export declare function extractToClassNames({ source, sourcePath, options, shouldPrintDebug, }: {
13
- source: string | Buffer;
14
- sourcePath?: string;
15
- options: TamaguiOptions;
16
- shouldPrintDebug?: boolean | 'verbose';
17
- }): Promise<ExtractedResponse | null>;
18
- /**
19
- * Extract Tamagui components to React Native StyleSheet format
20
- * Used by native compilation (less common now)
21
- */
22
- export declare function extractToNative(sourceFileName: string, sourceCode: string, options: TamaguiOptions): Promise<BabelFileResult>;
23
- /**
24
- * Clear the worker's config cache
25
- * Called when config files change (via watch)
26
- */
27
- export declare function clearWorkerCache(): Promise<void>;
28
- /**
29
- * Clean up the worker pool on exit
30
- * Should be called when the build process completes
31
- */
32
- export declare function destroyPool(): Promise<void>;
33
- /**
34
- * Get pool statistics for debugging
35
- */
36
- export declare function getPoolStats(): {
37
- threads: number;
38
- queueSize: number;
39
- completed: number;
40
- duration: number;
41
- utilization: number;
42
- } | null;
43
- //# sourceMappingURL=async-wrapper.d.ts.map
@@ -1,23 +0,0 @@
1
- /**
2
- * Synckit-based sync wrapper for Babel plugin
3
- * Allows synchronous calls to the async worker for Babel compatibility
4
- */
5
- import type { BabelFileResult } from '@babel/core';
6
- import type { ExtractedResponse } from './extractor/extractToClassNames';
7
- import type { TamaguiOptions } from './types';
8
- /**
9
- * Synchronous version of extractToClassNames for Babel plugin
10
- * Uses synckit to call the async worker synchronously
11
- */
12
- export declare function extractToClassNamesSync({ source, sourcePath, options, shouldPrintDebug, }: {
13
- source: string | Buffer;
14
- sourcePath?: string;
15
- options: TamaguiOptions;
16
- shouldPrintDebug?: boolean | 'verbose';
17
- }): ExtractedResponse | null;
18
- /**
19
- * Synchronous version of extractToNative for Babel plugin
20
- * Uses synckit to call the async worker synchronously
21
- */
22
- export declare function extractToNativeSync(sourceFileName: string, sourceCode: string, options: TamaguiOptions): BabelFileResult;
23
- //# sourceMappingURL=sync-wrapper.d.ts.map
package/types/worker.d.ts DELETED
@@ -1,46 +0,0 @@
1
- /**
2
- * Worker thread implementation for Tamagui extraction
3
- * Used by both piscina (async) and synckit (sync for babel)
4
- */
5
- import type { BabelFileResult } from '@babel/core';
6
- import type { ExtractedResponse } from './extractor/extractToClassNames';
7
- import type { TamaguiOptions } from './types';
8
- export interface ExtractToClassNamesTask {
9
- type: 'extractToClassNames';
10
- source: string;
11
- sourcePath: string;
12
- options: TamaguiOptions;
13
- shouldPrintDebug: boolean | 'verbose';
14
- }
15
- export interface ExtractToNativeTask {
16
- type: 'extractToNative';
17
- sourceFileName: string;
18
- sourceCode: string;
19
- options: TamaguiOptions;
20
- }
21
- export interface ClearCacheTask {
22
- type: 'clearCache';
23
- }
24
- export type WorkerTask = ExtractToClassNamesTask | ExtractToNativeTask | ClearCacheTask;
25
- export type WorkerResult = {
26
- success: true;
27
- data: ExtractedResponse | null;
28
- } | {
29
- success: true;
30
- data: BabelFileResult;
31
- } | {
32
- success: false;
33
- error: string;
34
- stack?: string;
35
- };
36
- /**
37
- * Main worker function that handles both extraction types
38
- * This is called by piscina for async usage
39
- */
40
- export declare function runTask(task: WorkerTask): Promise<WorkerResult>;
41
- /**
42
- * For synckit compatibility - exports the runTask as default
43
- * Synckit will call this function synchronously using worker threads
44
- */
45
- export default runTask;
46
- //# sourceMappingURL=worker.d.ts.map