@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
package/dist/setup.cjs ADDED
File without changes
@@ -13,5 +13,4 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
13
13
  value: !0
14
14
  }), mod);
15
15
  var types_exports = {};
16
- module.exports = __toCommonJS(types_exports);
17
- //# sourceMappingURL=types.mjs.map
16
+ module.exports = __toCommonJS(types_exports);
@@ -24,9 +24,9 @@ __export(worker_exports, {
24
24
  runTask: () => runTask
25
25
  });
26
26
  module.exports = __toCommonJS(worker_exports);
27
- var import_createExtractor = require("./extractor/createExtractor.mjs"),
28
- import_extractToClassNames = require("./extractor/extractToClassNames.mjs"),
29
- import_extractToNative = require("./extractor/extractToNative.mjs");
27
+ var import_createExtractor = require("./extractor/createExtractor.cjs"),
28
+ import_extractToClassNames = require("./extractor/extractToClassNames.cjs"),
29
+ import_extractToNative = require("./extractor/extractToNative.cjs");
30
30
  const webExtractor = (0, import_createExtractor.createExtractor)({
31
31
  platform: "web"
32
32
  }),
@@ -65,7 +65,7 @@ async function runTask(task) {
65
65
  data: (0, import_extractToNative.extractToNative)(task.sourceFileName, task.sourceCode, task.options)
66
66
  };
67
67
  }
68
- return task.type === "clearCache" ? (configCache.clear(), {
68
+ return task.type === "clearCache" ? (configCache.clear(), console.info("[tamagui] \u{1F504} Worker cache cleared (config changed)"), {
69
69
  success: !0,
70
70
  data: null
71
71
  }) : {
@@ -80,5 +80,4 @@ async function runTask(task) {
80
80
  };
81
81
  }
82
82
  }
83
- var worker_default = runTask;
84
- //# sourceMappingURL=worker.mjs.map
83
+ var worker_default = runTask;
package/dist/worker.js CHANGED
@@ -49,7 +49,7 @@ async function runTask(task) {
49
49
  task.options
50
50
  ) };
51
51
  }
52
- return task.type === "clearCache" ? (configCache.clear(), { success: !0, data: null }) : {
52
+ return task.type === "clearCache" ? (configCache.clear(), console.info("[tamagui] \u{1F504} Worker cache cleared (config changed)"), { success: !0, data: null }) : {
53
53
  success: !1,
54
54
  error: `Unknown task type: ${task.type}`
55
55
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/worker.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,6BAAgC,wCAKhC,6BAA+D,4CAC/D,yBAAuD;AAIvD,MAAM,mBAAe,wCAAgB,EAAE,UAAU,MAAM,CAAC,GAClD,sBAAkB,wCAAgB,EAAE,UAAU,SAAS,CAAC,GAGxD,cAAyC,oBAAI,IAAI;AAgCvD,eAAsB,QAAQ,MAAyC;AACrE,MAAI;AACF,QAAI,KAAK,SAAS,uBAAuB;AAEvC,UAAI,CAAC,KAAK,QAAQ,qBAAqB,CAAC,KAAK,QAAQ,qBA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AAY,MAAM,GAClB,QAAQ,KAAK,2DAAoD,GAC1D,EAAE,SAAS,IAAM,MAAM,KAAK,KAG9B;AAAA,MACL,SAAS;AAAA,MACT,OAAO,sBAAuB,KAAa,IAAI;AAAA,IACjD;AAAA,EACF,SAAS,OAAO;AACd,WAAO;AAAA,MACL,SAAS;AAAA,MACT,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAAA,MAC5D,OAAO,iBAAiB,QAAQ,MAAM,QAAQ;AAAA,IAChD;AAAA,EACF;AACF;AAMA,IAAO,iBAAQ;",
5
5
  "names": ["extractToClassNamesImpl", "extractToNativeImpl"]
6
6
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tamagui/static",
3
- "version": "1.136.4",
3
+ "version": "1.136.7",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "type": "commonjs",
7
- "main": "dist/index.js",
7
+ "main": "dist",
8
8
  "files": [
9
9
  "src",
10
10
  "types",
@@ -22,8 +22,13 @@
22
22
  "./package.json": "./package.json",
23
23
  ".": {
24
24
  "types": "./types/index.d.ts",
25
- "require": "./dist/index.js",
26
- "import": "./dist/index.js"
25
+ "require": "./dist/index.cjs",
26
+ "import": "./dist/index.cjs"
27
+ },
28
+ "./worker": {
29
+ "types": "./types/worker.d.ts",
30
+ "require": "./dist/worker.cjs",
31
+ "import": "./dist/worker.cjs"
27
32
  }
28
33
  },
29
34
  "tests": {
@@ -43,19 +48,19 @@
43
48
  "@babel/template": "^7.25.0",
44
49
  "@babel/traverse": "^7.25.4",
45
50
  "@babel/types": "^7.25.4",
46
- "@tamagui/cli-color": "1.136.4",
47
- "@tamagui/config-default": "1.136.4",
48
- "@tamagui/core": "1.136.4",
49
- "@tamagui/fake-react-native": "1.136.4",
50
- "@tamagui/generate-themes": "1.136.4",
51
- "@tamagui/helpers": "1.136.4",
52
- "@tamagui/helpers-node": "1.136.4",
53
- "@tamagui/proxy-worm": "1.136.4",
54
- "@tamagui/react-native-web-internals": "1.136.4",
55
- "@tamagui/react-native-web-lite": "1.136.4",
56
- "@tamagui/shorthands": "1.136.4",
57
- "@tamagui/types": "1.136.4",
58
- "@tamagui/web": "1.136.4",
51
+ "@tamagui/cli-color": "1.136.7",
52
+ "@tamagui/config-default": "1.136.7",
53
+ "@tamagui/core": "1.136.7",
54
+ "@tamagui/fake-react-native": "1.136.7",
55
+ "@tamagui/generate-themes": "1.136.7",
56
+ "@tamagui/helpers": "1.136.7",
57
+ "@tamagui/helpers-node": "1.136.7",
58
+ "@tamagui/proxy-worm": "1.136.7",
59
+ "@tamagui/react-native-web-internals": "1.136.7",
60
+ "@tamagui/react-native-web-lite": "1.136.7",
61
+ "@tamagui/shorthands": "1.136.7",
62
+ "@tamagui/types": "1.136.7",
63
+ "@tamagui/web": "1.136.7",
59
64
  "babel-literal-to-ast": "^2.1.0",
60
65
  "browserslist": "^4.22.2",
61
66
  "check-dependency-version-consistency": "^4.1.0",
@@ -72,7 +77,7 @@
72
77
  "devDependencies": {
73
78
  "@babel/plugin-syntax-typescript": "^7.25.4",
74
79
  "@expo/match-media": "^0.4.0",
75
- "@tamagui/build": "1.136.4",
80
+ "@tamagui/build": "1.136.7",
76
81
  "@types/babel__core": "^7.20.5",
77
82
  "@types/find-root": "^1.1.2",
78
83
  "@types/node": "^22.1.0",
package/src/worker.ts ADDED
@@ -0,0 +1,132 @@
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
+ // Log worker PID once
50
+ let hasLoggedPID = false
51
+
52
+ /**
53
+ * Main worker function that handles both extraction types
54
+ * This is called by piscina for async usage
55
+ */
56
+ export async function runTask(task: WorkerTask): Promise<WorkerResult> {
57
+ try {
58
+ if (task.type === 'extractToClassNames') {
59
+ // Load web config if needed (with caching)
60
+ if (!task.options.disableExtraction && !task.options['_disableLoadTamagui']) {
61
+ const cacheKey = JSON.stringify({
62
+ config: task.options.config,
63
+ components: task.options.components,
64
+ })
65
+
66
+ if (!configCache.has(cacheKey)) {
67
+ configCache.set(cacheKey, webExtractor.loadTamagui(task.options))
68
+ }
69
+
70
+ await configCache.get(cacheKey)
71
+ }
72
+
73
+ const result = await extractToClassNamesImpl({
74
+ extractor: webExtractor,
75
+ source: task.source,
76
+ sourcePath: task.sourcePath,
77
+ options: task.options,
78
+ shouldPrintDebug: task.shouldPrintDebug,
79
+ })
80
+
81
+ return { success: true, data: result }
82
+ }
83
+
84
+ if (task.type === 'extractToNative') {
85
+ // Load native config if needed (with caching)
86
+ const cacheKey = JSON.stringify({
87
+ config: task.options.config,
88
+ components: task.options.components,
89
+ })
90
+
91
+ if (!configCache.has(cacheKey)) {
92
+ configCache.set(cacheKey, nativeExtractor.loadTamagui(task.options))
93
+ }
94
+
95
+ await configCache.get(cacheKey)
96
+
97
+ // extractToNative uses its own module-level extractor
98
+ // This is for babel plugin which uses visitor pattern
99
+ const result = extractToNativeImpl(
100
+ task.sourceFileName,
101
+ task.sourceCode,
102
+ task.options
103
+ )
104
+
105
+ return { success: true, data: result }
106
+ }
107
+
108
+ if (task.type === 'clearCache') {
109
+ // Clear config caches when files change
110
+ configCache.clear()
111
+ console.info(`[tamagui] 🔄 Worker cache cleared (config changed)`)
112
+ return { success: true, data: null }
113
+ }
114
+
115
+ return {
116
+ success: false,
117
+ error: `Unknown task type: ${(task as any).type}`,
118
+ }
119
+ } catch (error) {
120
+ return {
121
+ success: false,
122
+ error: error instanceof Error ? error.message : String(error),
123
+ stack: error instanceof Error ? error.stack : undefined,
124
+ }
125
+ }
126
+ }
127
+
128
+ /**
129
+ * For synckit compatibility - exports the runTask as default
130
+ * Synckit will call this function synchronously using worker threads
131
+ */
132
+ export default runTask
@@ -0,0 +1,46 @@
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
@@ -1 +1 @@
1
- {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,iCAAiC,CAAA;AAGxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAS7C,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,qBAAqB,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,cAAc,CAAA;IACvB,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,iBAAiB,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,cAAc,CAAA;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,MAAM,MAAM,UAAU,GAAG,uBAAuB,GAAG,mBAAmB,GAAG,cAAc,CAAA;AAEvF,MAAM,MAAM,YAAY,GACpB;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAAE,GACjD;IAAE,OAAO,EAAE,IAAI,CAAC;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CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAKrD;;;GAGG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,CAsErE;AAED;;;GAGG;AACH,eAAe,OAAO,CAAA"}
@@ -1,98 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
- // If the importer is in node compatibility mode or this is not an ESM
17
- // file that has been converted to a CommonJS file using a Babel-
18
- // compatible transform (i.e. "__esModule" has not been set), then set
19
- // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
- var async_wrapper_exports = {};
24
- __export(async_wrapper_exports, {
25
- clearWorkerCache: () => clearWorkerCache,
26
- destroyPool: () => destroyPool,
27
- extractToClassNames: () => extractToClassNames,
28
- extractToNative: () => extractToNative,
29
- getPoolStats: () => getPoolStats
30
- });
31
- module.exports = __toCommonJS(async_wrapper_exports);
32
- var import_piscina = __toESM(require("piscina")), import_node_url = require("node:url"), import_node_path = require("node:path");
33
- 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");
34
- let piscinaPool = null;
35
- function getPool() {
36
- return piscinaPool || (piscinaPool = new import_piscina.default({
37
- filename: getWorkerPath(),
38
- // Single worker for state consistency and simpler caching
39
- minThreads: 1,
40
- maxThreads: 1,
41
- idleTimeout: 6e4
42
- // 60s - keep alive for config watching
43
- })), piscinaPool;
44
- }
45
- async function extractToClassNames({
46
- source,
47
- sourcePath = "",
48
- options,
49
- shouldPrintDebug = !1
50
- }) {
51
- if (typeof source != "string")
52
- throw new Error("`source` must be a string of javascript");
53
- const task = {
54
- type: "extractToClassNames",
55
- source,
56
- sourcePath,
57
- options,
58
- shouldPrintDebug
59
- }, result = await getPool().run(task, { name: "runTask" });
60
- if (!result.success)
61
- throw new Error(
62
- `Worker error: ${result.error}${result.stack ? `
63
- ${result.stack}` : ""}`
64
- );
65
- return result.data;
66
- }
67
- async function extractToNative(sourceFileName, sourceCode, options) {
68
- const task = {
69
- type: "extractToNative",
70
- sourceFileName,
71
- sourceCode,
72
- options
73
- }, result = await getPool().run(task, { name: "runTask" });
74
- if (!result.success)
75
- throw new Error(
76
- `Worker error: ${result.error}${result.stack ? `
77
- ${result.stack}` : ""}`
78
- );
79
- return result.data;
80
- }
81
- async function clearWorkerCache() {
82
- if (!piscinaPool) return;
83
- const task = { type: "clearCache" };
84
- await piscinaPool.run(task, { name: "runTask" });
85
- }
86
- async function destroyPool() {
87
- piscinaPool && (await piscinaPool.destroy(), piscinaPool = null);
88
- }
89
- function getPoolStats() {
90
- return piscinaPool ? {
91
- threads: piscinaPool.threads.length,
92
- queueSize: piscinaPool.queueSize,
93
- completed: piscinaPool.completed,
94
- duration: piscinaPool.duration,
95
- utilization: piscinaPool.utilization
96
- } : null;
97
- }
98
- //# sourceMappingURL=async-wrapper.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 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;AAAA,IACZ,YAAY;AAAA,IACZ,aAAa;AAAA;AAAA,EACf,CAAC,IAEI;AACT;AAMA,eAAsB,oBAAoB;AAAA,EACxC;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA,mBAAmB;AACrB,GAKsC;AACpC,MAAI,OAAO,UAAW;AACpB,UAAM,IAAI,MAAM,yCAAyC;AAG3D,QAAM,OAAmB;AAAA,IACvB,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAGM,SAAU,MADH,QAAQ,EACM,IAAI,MAAM,EAAE,MAAM,UAAU,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,gBACpB,gBACA,YACA,SAC0B;AAC1B,QAAM,OAAmB;AAAA,IACvB,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAGM,SAAU,MADH,QAAQ,EACM,IAAI,MAAM,EAAE,MAAM,UAAU,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
- "names": ["Piscina"]
6
- }
@@ -1,113 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
32
- var async_wrapper_exports = {};
33
- __export(async_wrapper_exports, {
34
- clearWorkerCache: () => clearWorkerCache,
35
- destroyPool: () => destroyPool,
36
- extractToClassNames: () => extractToClassNames,
37
- extractToNative: () => extractToNative,
38
- getPoolStats: () => getPoolStats
39
- });
40
- module.exports = __toCommonJS(async_wrapper_exports);
41
- var import_piscina = __toESM(require("piscina")),
42
- import_node_url = require("node:url"),
43
- import_node_path = require("node:path");
44
- const import_meta = {},
45
- 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");
46
- let piscinaPool = null;
47
- function getPool() {
48
- return piscinaPool || (piscinaPool = new import_piscina.default({
49
- filename: getWorkerPath(),
50
- // Single worker for state consistency and simpler caching
51
- minThreads: 1,
52
- maxThreads: 1,
53
- idleTimeout: 6e4
54
- // 60s - keep alive for config watching
55
- })), piscinaPool;
56
- }
57
- async function extractToClassNames({
58
- source,
59
- sourcePath = "",
60
- options,
61
- shouldPrintDebug = !1
62
- }) {
63
- if (typeof source != "string") throw new Error("`source` must be a string of javascript");
64
- const task = {
65
- type: "extractToClassNames",
66
- source,
67
- sourcePath,
68
- options,
69
- shouldPrintDebug
70
- },
71
- result = await getPool().run(task, {
72
- name: "runTask"
73
- });
74
- if (!result.success) throw new Error(`Worker error: ${result.error}${result.stack ? `
75
- ${result.stack}` : ""}`);
76
- return result.data;
77
- }
78
- async function extractToNative(sourceFileName, sourceCode, options) {
79
- const task = {
80
- type: "extractToNative",
81
- sourceFileName,
82
- sourceCode,
83
- options
84
- },
85
- result = await getPool().run(task, {
86
- name: "runTask"
87
- });
88
- if (!result.success) throw new Error(`Worker error: ${result.error}${result.stack ? `
89
- ${result.stack}` : ""}`);
90
- return result.data;
91
- }
92
- async function clearWorkerCache() {
93
- if (!piscinaPool) return;
94
- const task = {
95
- type: "clearCache"
96
- };
97
- await piscinaPool.run(task, {
98
- name: "runTask"
99
- });
100
- }
101
- async function destroyPool() {
102
- piscinaPool && (await piscinaPool.destroy(), piscinaPool = null);
103
- }
104
- function getPoolStats() {
105
- return piscinaPool ? {
106
- threads: piscinaPool.threads.length,
107
- queueSize: piscinaPool.queueSize,
108
- completed: piscinaPool.completed,
109
- duration: piscinaPool.duration,
110
- utilization: piscinaPool.utilization
111
- } : null;
112
- }
113
- //# sourceMappingURL=async-wrapper.mjs.map
@@ -1 +0,0 @@
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;EA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;AASX","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["check_dep_versions_exports","__export","CDVC","module","exports","__toCommonJS","import_fast_glob","require","import_js_yaml","import_node_fs","import_node_path","calculateVersionsForEachDependency","packages","depType","DEFAULT_DEP_TYPES","dependenciesToVersionsSeen","Map","package_","recordDependencyVersionsForPackageJson","packageJson","name","version","recordDependencyVersion","includes","dependencies","dependency","dependencyVersion","Object","entries","devDependencies","optionalDependencies","peerDependencies","resolutions","isLocalPackageVersion","has","set","list","get","push","package","calculateDependenciesAndVersions","dependencyVersions","sort","a","b","localeCompare","flatMap","versionObjectsForDep","versions","filter","versionObject","map","localPackageVersions","allVersionsHaveWorkspacePrefix","every","startsWith","hasIncompatibilityWithLocalPackageVersion","some","length","uniqueVersions","Set","uniqueVersionsWithInfo","versionsObjectsWithSortedPackages","versionObjects","matchingVersionObjects","object","Package","comparator","HARDCODED_IGNORED_DEPENDENCIES","filterOutIgnoredDependencies","mismatchingVersions","ignoredDependencies","includedDependencyPatterns","ignoreDependency","mismatchingVersion","Error","ignoreDependencyPattern","match","getPackages","root","ignorePackages","ignorePackagePatterns","ignorePaths","ignorePathPatterns","exists","accumulatePackages","ignoredPackage","ignoredPackagePattern","test","String","ignoredPath","pathRelative","ignoredPathPattern","ignorePackagePattern","ignorePath","ignorePathPattern","expandWorkspaces","workspacePatterns","workspace","globSync","onlyDirectories","cwd","ignore","paths","results","relativePath","path","join","pathWorkspace","pathPackageJson","packageJsonEndsInNewline","pnpmWorkspacePackages","constructor","packageJsonContents","readFileSync","endsWith","JSON","parse","pnpmWorkspacePath","existsSync","pnpmWorkspaceContents","pnpmWorkspaceYaml","load","relative","workspaces","Array","isArray","TypeError","packageJsonPath","callback","package1","package2","DEPENDENCY_TYPE","DEPENDENCY_TYPE2","check","options","includeDepPattern","dt","keys","optionsWithDefaults","fix","ignoreDep","ignorePackage","s","RegExp","dependenciesAndVersions","dependenciesAndVersionsWithMismatches","dependenciesAndVersionsWithoutIgnored","dependenciesAndVersionsMismatchesWithoutIgnored","fromEntries","isMismatching","dep","toMismatchSummary","dependenciesToMismatchSummary","getDependencies","getDependency","hasMismatchingDependencies","values","mismatchingDependencyVersions","value","tables","v"],"sources":["../src/check-dep-versions.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,IAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,0BAAA;AAKA,IAAAM,gBAAA,GAAyBC,OAAA;EACzBC,cAAA,GAAqBD,OAAA;EACrBE,cAAA,GAAyCF,OAAA;EACzCG,gBAAA,GAA+BH,OAAA;AA+C/B,SAASI,mCACPC,QAAA,EACAC,OAAA,GAAsCC,iBAAA,EACV;EAC5B,MAAMC,0BAAA,GAAyD,mBAAIC,GAAA,CAGjE;EACF,WAAWC,QAAA,IAAYL,QAAA,EACrBM,sCAAA,CAAuCH,0BAAA,EAA4BE,QAAA,EAAUJ,OAAO;EAEtF,OAAOE,0BAAA;AACT;AAGA,SAASG,uCACPH,0BAAA,EACAE,QAAA,EACAJ,OAAA,EACA;EAWA,IAVII,QAAA,CAASE,WAAA,CAAYC,IAAA,IAAQH,QAAA,CAASE,WAAA,CAAYE,OAAA,IACpDC,uBAAA,CACEP,0BAAA,EACAE,QAAA,CAASE,WAAA,CAAYC,IAAA,EACrBH,QAAA,CAASE,WAAA,CAAYE,OAAA,EACrBJ,QAAA,EACA,EACF,GAIAJ,OAAA,CAAQU,QAAA,CAAS,iCAA4B,KAC7CN,QAAA,CAASE,WAAA,CAAYK,YAAA,EAErB,WAAW,CAACC,UAAA,EAAYC,iBAAiB,KAAKC,MAAA,CAAOC,OAAA,CACnDX,QAAA,CAASE,WAAA,CAAYK,YACvB,GACME,iBAAA,IACFJ,uBAAA,CACEP,0BAAA,EACAU,UAAA,EACAC,iBAAA,EACAT,QACF;EAKN,IACEJ,OAAA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CAAOC,OAAA,CAAQJ,YAAY,EAC9DyB,MAAA,CAAO,CAAC,GAAG8G,KAAK,MAAMA,KAAA,CAAMT,aAAa,EACzCnG,GAAA,CAAI,CAAC,CAAC1B,UAAA,EAAYsI,KAAK,OAAO;IAAEtI,UAAA;IAAYuB,QAAA,EAAU+G,KAAA,CAAM/G;EAAS,EAAE;EAE1E,IAAI8G,6BAAA,CAA8BpG,MAAA,KAAW,GAC3C,OAAO;EAGT,MAAMsG,MAAA,GAASF,6BAAA,CACZ3G,GAAA,CAAKc,MAAA,IACG,GAAGA,MAAA,CAAOxC,UAAU,MAAMwC,MAAA,CAAOjB,QAAA,CAASG,GAAA,CAAK8G,CAAA,IAAM,GAAGA,CAAA,CAAE5I,OAAO,EAAE,EAAEsF,IAAA,CAAK,IAAI,CAAC,EACvF,EACAA,IAAA,CAAK,EAAE;EAEV,OAAO,CACL,SAASmD,6BAAA,CAA8BpG,MAAM,IAC3CoG,6BAAA,CAA8BpG,MAAA,KAAW,IAAI,eAAe,cAC9D,oDACAsG,MAAA,CACF,CAAErD,IAAA,CAAK;AAAA,CAAI;AACb","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["checkDeps_exports","__export","DEPENDENCY_TYPE","checkDeps","module","exports","__toCommonJS","import_check_dep_versions","require","DEPENDENCY_TYPE2","dependencies","devDependencies","optionalDependencies","peerDependencies","resolutions","root","summary","CDVC","toMismatchSummary","console","info","process","exit","error"],"sources":["../src/checkDeps.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,iBAAA;AAAA,IAAAO,yBAAA,GAAqBC,OAAA;EAETN,eAAA,GAAL,gBAAKO,gBAAA,KACVA,gBAAA,CAAAC,YAAA,GAAe,gBACfD,gBAAA,CAAAE,eAAA,GAAkB,mBAClBF,gBAAA,CAAAG,oBAAA,GAAuB,wBACvBH,gBAAA,CAAAI,gBAAA,GAAmB,oBACnBJ,gBAAA,CAAAK,WAAA,GAAc,eALJL,gBAAA,GAAAP,eAAA;AAmBZ,eAAsBC,UAAUY,IAAA,EAAc;EAC5C,MAAMC,OAAA,GAAU,IAAIT,yBAAA,CAAAU,IAAA,CAAKF,IAAI,EAAEG,iBAAA,CAAkB;EAE5CF,OAAA,KACHG,OAAA,CAAQC,IAAA,CAAK,uCAAkC,GAC/CC,OAAA,CAAQC,IAAA,CAAK,CAAC,IAGhBH,OAAA,CAAQI,KAAA,CAAMP,OAAO,GACrBK,OAAA,CAAQC,IAAA,CAAK,CAAC;AAChB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["constants_exports","__export","CSS_FILE_NAME","FAILED_EVAL","MEDIA_SEP","SHOULD_DEBUG","cacheDir","module","exports","__toCommonJS","import_find_cache_dir","__toESM","require","default","name","create","Symbol","process","env","DEBUG","startsWith"],"sources":["../src/constants.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAT,iBAAA;AAAA,IAAAU,qBAAA,GAAyBC,OAAA,CAAAC,OAAA;AAElB,MAAMV,aAAA,GAAgB;EAGhBE,SAAA,GAAY;EAGZE,QAAA,OAAWI,qBAAA,CAAAG,OAAA,EAAa;IAAEC,IAAA,EAAM;IAAWC,MAAA,EAAQ;EAAK,CAAC;EAEzDZ,WAAA,GAAca,MAAA,CAAO,mBAAmB;EAExCX,YAAA,GACXY,OAAA,CAAQC,GAAA,CAAIC,KAAA,KAAU,OAAOF,OAAA,CAAQC,GAAA,CAAIC,KAAA,EAAOC,UAAA,CAAW,SAAS","ignoreList":[]}
@@ -1 +0,0 @@
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":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["accessSafe_exports","__export","accessSafe","module","exports","__toCommonJS","t","__toESM","require","obj","member","logicalExpression","binaryExpression","unaryExpression","stringLiteral","nullLiteral","memberExpression","identifier"],"sources":["../../src/extractor/accessSafe.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,kBAAA;AAAA,IAAAM,CAAA,GAAmBC,OAAA,CAAAC,OAAA;AAIZ,SAASN,WAAWO,GAAA,EAAmBC,MAAA,EAAqC;EACjF,OAAOJ,CAAA,CAAEK,iBAAA,CACP,MACAL,CAAA,CAAEK,iBAAA,CACA;EAAA;EAEAL,CAAA,CAAEM,gBAAA,CACA,OACAN,CAAA,CAAEO,eAAA,CAAgB,UAAUJ,GAAG,GAC/BH,CAAA,CAAEQ,aAAA,CAAc,QAAQ,CAC1B;EAAA;EAEAR,CAAA,CAAEM,gBAAA,CAAiB,OAAOH,GAAA,EAAKH,CAAA,CAAES,WAAA,CAAY,CAAC,CAChD;EAAA;EAEAT,CAAA,CAAEU,gBAAA,CAAiBP,GAAA,EAAKH,CAAA,CAAEW,UAAA,CAAWP,MAAM,GAAG,EAAK,CACrD;AACF","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["babelParse_exports","__export","babelParse","parserOptions","module","exports","__toCommonJS","babelParser","__toESM","require","plugins","Object","freeze","sourceType","parser","parse","bind","code","fileName","codeString","toString","err","Error","stack"],"sources":["../../src/extractor/babelParse.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,kBAAA;AAAA,IAAAO,WAAA,GAA6BC,OAAA,CAAAC,OAAA;AAG7B,MAAMC,OAAA,GAAsC,CAC1C,mBACA,mBACA,iBACA,gBACA,OACA,oBACA,oBACA,wBACA,qBACA,cACA,oBACA,4BACF;EAEaP,aAAA,GAA2CQ,MAAA,CAAOC,MAAA,CAAO;IACpEF,OAAA;IACAG,UAAA,EAAY;EACd,CAAC;EAEKC,MAAA,GAASP,WAAA,CAAYQ,KAAA,CAAMC,IAAA,CAAKT,WAAW;AAE1C,SAASL,WAAWe,IAAA,EAAuBC,QAAA,EAA2B;EAC3E,MAAMC,UAAA,GAAaF,IAAA,CAAKG,QAAA,CAAS;EACjC,IAAI;IACF,OAAON,MAAA,CAAOK,UAAA,EAAYhB,aAAa;EACzC,SAASkB,GAAA,EAAK;IACZ,MAAM,IAAIC,KAAA,CACR,wBAAwBD,GAAG,OAAOH,QAAQ;AAAA,EAAYC,UAAU;AAAA,GAC7DE,GAAA,CAAYE,KACf,EACF;EACF;AACF","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["bundle_exports","__export","esbuildIgnoreFilesRegex","esbuildLoaderConfig","esbundleTamaguiConfig","module","exports","__toCommonJS","import_node_path","require","import_esbuild","__toESM","FS","import_esbuildAliasPlugin","import_loadTamagui","import_esbuildTsconfigPaths","dataExtensions","Object","keys","filter","k","map","slice","RegExp","join","getESBuildConfig","entryPoints","resolvePlatformSpecificEntries","options","platform","aliases","process","env","DEBUG","startsWith","console","info","bundle","resolveWebOrNativeSpecificEntry","format","target","jsx","jsxFactory","allowOverwrite","keepNames","resolveExtensions","tsconfigRaw","compilerOptions","loader","logLevel","plugins","TsconfigPathsPlugin","name","setup","build","onResolve","args","path","external","esbuildAliasPlugin","props","asyncLock","config","default","lockFile","dirname","outfile","basename","lockStat","stat","catch","Date","getTime","mtime","Number","POSITIVE_INFINITY","tries","pathExists","Promise","res","setTimeout","writeFile"],"sources":["../../src/extractor/bundle.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAA,uBAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA,mBAAA;EAAAC,qBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAP,cAAA;AAAA,IAAAQ,gBAAA,GAAwCC,OAAA;EACxCC,cAAA,GAAoBC,OAAA,CAAAF,OAAA;EACpBG,EAAA,GAAoBD,OAAA,CAAAF,OAAA;EAEpBI,yBAAA,GAAmCJ,OAAA;EACnCK,kBAAA,GAAgDL,OAAA;EAChDM,2BAAA,GAAoCN,OAAA;AAE7B,MAAMN,mBAAA,GAAsB;IACjC,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,UAAU;IACV,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;EACX;EAEMa,cAAA,GAAiBC,MAAA,CAAOC,IAAA,CAAKf,mBAAmB,EACnDgB,MAAA,CACEC,CAAA,IAAMjB,mBAAA,CAAoBiB,CAAC,MAAM,UAAUjB,mBAAA,CAAoBiB,CAAC,MAAM,SACzE,EACCC,GAAA,CAAKD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