@tamagui/static 1.88.21 → 1.88.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/dist/esm/constants.native.js +4 -37
  2. package/dist/esm/constants.native.js.map +2 -2
  3. package/dist/esm/extractor/accessSafe.native.js +3 -32
  4. package/dist/esm/extractor/accessSafe.native.js.map +1 -1
  5. package/dist/esm/extractor/babelParse.native.js +3 -33
  6. package/dist/esm/extractor/babelParse.native.js.map +1 -1
  7. package/dist/esm/extractor/buildClassName.native.js +3 -33
  8. package/dist/esm/extractor/buildClassName.native.js.map +1 -1
  9. package/dist/esm/extractor/bundle.native.js +14 -39
  10. package/dist/esm/extractor/bundle.native.js.map +2 -2
  11. package/dist/esm/extractor/bundleConfig.native.js +36 -59
  12. package/dist/esm/extractor/bundleConfig.native.js.map +2 -2
  13. package/dist/esm/extractor/createEvaluator.native.js +12 -37
  14. package/dist/esm/extractor/createEvaluator.native.js.map +2 -2
  15. package/dist/esm/extractor/createExtractor.native.js +86 -87
  16. package/dist/esm/extractor/createExtractor.native.js.map +2 -2
  17. package/dist/esm/extractor/ensureImportingConcat.native.js +3 -32
  18. package/dist/esm/extractor/ensureImportingConcat.native.js.map +1 -1
  19. package/dist/esm/extractor/esbuildAliasPlugin.native.js +2 -23
  20. package/dist/esm/extractor/esbuildAliasPlugin.native.js.map +1 -1
  21. package/dist/esm/extractor/evaluateAstNode.native.js +3 -32
  22. package/dist/esm/extractor/evaluateAstNode.native.js.map +1 -1
  23. package/dist/esm/extractor/extractHelpers.native.js +11 -49
  24. package/dist/esm/extractor/extractHelpers.native.js.map +2 -2
  25. package/dist/esm/extractor/extractMediaStyle.native.js +10 -37
  26. package/dist/esm/extractor/extractMediaStyle.native.js.map +1 -1
  27. package/dist/esm/extractor/extractToClassNames.native.js +30 -43
  28. package/dist/esm/extractor/extractToClassNames.native.js.map +2 -2
  29. package/dist/esm/extractor/findTopmostFunction.native.js +2 -23
  30. package/dist/esm/extractor/findTopmostFunction.native.js.map +1 -1
  31. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +18 -45
  32. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +2 -2
  33. package/dist/esm/extractor/generatedUid.native.js +3 -32
  34. package/dist/esm/extractor/generatedUid.native.js.map +1 -1
  35. package/dist/esm/extractor/getPrefixLogs.native.js +2 -23
  36. package/dist/esm/extractor/getPrefixLogs.native.js.map +1 -1
  37. package/dist/esm/extractor/getPropValueFromAttributes.native.js +7 -34
  38. package/dist/esm/extractor/getPropValueFromAttributes.native.js.map +2 -2
  39. package/dist/esm/extractor/getSourceModule.native.js +3 -32
  40. package/dist/esm/extractor/getSourceModule.native.js.map +1 -1
  41. package/dist/esm/extractor/getStaticBindingsForScope.native.js +13 -39
  42. package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +1 -1
  43. package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js +4 -25
  44. package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +1 -1
  45. package/dist/esm/extractor/hoistClassNames.native.js +3 -32
  46. package/dist/esm/extractor/hoistClassNames.native.js.map +1 -1
  47. package/dist/esm/extractor/literalToAst.native.js +3 -33
  48. package/dist/esm/extractor/literalToAst.native.js.map +1 -1
  49. package/dist/esm/extractor/loadFile.native.js +0 -1
  50. package/dist/esm/extractor/loadFile.native.js.map +1 -1
  51. package/dist/esm/extractor/loadTamagui.native.js +60 -73
  52. package/dist/esm/extractor/loadTamagui.native.js.map +2 -2
  53. package/dist/esm/extractor/logLines.native.js +2 -23
  54. package/dist/esm/extractor/logLines.native.js.map +1 -1
  55. package/dist/esm/extractor/normalizeTernaries.native.js +7 -34
  56. package/dist/esm/extractor/normalizeTernaries.native.js.map +2 -2
  57. package/dist/esm/extractor/propsToFontFamilyCache.native.js +2 -25
  58. package/dist/esm/extractor/propsToFontFamilyCache.native.js.map +1 -1
  59. package/dist/esm/extractor/removeUnusedHooks.native.js +3 -32
  60. package/dist/esm/extractor/removeUnusedHooks.native.js.map +1 -1
  61. package/dist/esm/extractor/timer.native.js +2 -23
  62. package/dist/esm/extractor/timer.native.js.map +1 -1
  63. package/dist/esm/extractor/validHTMLAttributes.native.js +2 -23
  64. package/dist/esm/extractor/validHTMLAttributes.native.js.map +1 -1
  65. package/dist/esm/getPragmaOptions.native.js +2 -23
  66. package/dist/esm/getPragmaOptions.native.js.map +1 -1
  67. package/dist/esm/helpers/memoize.native.js +2 -23
  68. package/dist/esm/helpers/memoize.native.js.map +1 -1
  69. package/dist/esm/helpers/requireTamaguiCore.native.js +2 -23
  70. package/dist/esm/helpers/requireTamaguiCore.native.js.map +1 -1
  71. package/dist/esm/index.native.js +3 -22
  72. package/dist/esm/index.native.js.map +1 -1
  73. package/dist/esm/minifyCSS.native.js +6 -34
  74. package/dist/esm/minifyCSS.native.js.map +2 -2
  75. package/dist/esm/registerRequire.native.js +6 -28
  76. package/dist/esm/registerRequire.native.js.map +1 -1
  77. package/dist/esm/server.native.js +5 -34
  78. package/dist/esm/server.native.js.map +2 -2
  79. package/dist/esm/setup.native.js +0 -1
  80. package/dist/esm/setup.native.js.map +1 -1
  81. package/dist/esm/static.native.js +12 -39
  82. package/dist/esm/static.native.js.map +1 -1
  83. package/dist/esm/types.native.js +0 -14
  84. package/dist/esm/types.native.js.map +2 -2
  85. package/dist/esm/webpackPlugin.native.js +2 -23
  86. package/dist/esm/webpackPlugin.native.js.map +1 -1
  87. package/package.json +14 -14
@@ -1,45 +1,12 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var constants_exports = {};
25
- __export(constants_exports, {
26
- CSS_FILE_NAME: () => CSS_FILE_NAME,
27
- FAILED_EVAL: () => FAILED_EVAL,
28
- MEDIA_SEP: () => MEDIA_SEP,
29
- SHOULD_DEBUG: () => SHOULD_DEBUG,
30
- cacheDir: () => cacheDir
31
- });
32
- module.exports = __toCommonJS(constants_exports);
33
- var import_find_cache_dir = __toESM(require("find-cache-dir"));
34
- const CSS_FILE_NAME = "__snack.css", MEDIA_SEP = "_", cacheDir = (0, import_find_cache_dir.default)({ name: "tamagui", create: !0 }), FAILED_EVAL = Symbol("failed_style_eval");
1
+ import findCacheDir from "find-cache-dir";
2
+ const CSS_FILE_NAME = "__snack.css", MEDIA_SEP = "_", cacheDir = findCacheDir({ name: "tamagui", create: !0 }), FAILED_EVAL = Symbol("failed_style_eval");
35
3
  var _a;
36
4
  const SHOULD_DEBUG = process.env.DEBUG === "*" || ((_a = process.env.DEBUG) == null ? void 0 : _a.startsWith("tamagui"));
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
5
+ export {
39
6
  CSS_FILE_NAME,
40
7
  FAILED_EVAL,
41
8
  MEDIA_SEP,
42
9
  SHOULD_DEBUG,
43
10
  cacheDir
44
- });
11
+ };
45
12
  //# sourceMappingURL=constants.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAyB;AAElB,MAAM,gBAAgB,eAGhB,YAAY,KAGZ,eAAW,sBAAAA,SAAa,EAAE,MAAM,WAAW,QAAQ,GAAK,CAAC,GAEzD,cAAc,OAAO,mBAAmB;AAVrD;AAYO,MAAM,eACX,QAAQ,IAAI,UAAU,SAAO,aAAQ,IAAI,UAAZ,mBAAmB,WAAW;",
5
- "names": ["findCacheDir"]
4
+ "mappings": "AAAA,OAAO,kBAAkB;AAElB,MAAM,gBAAgB,eAGhB,YAAY,KAGZ,WAAW,aAAa,EAAE,MAAM,WAAW,QAAQ,GAAK,CAAC,GAEzD,cAAc,OAAO,mBAAmB;AAVrD;AAYO,MAAM,eACX,QAAQ,IAAI,UAAU,SAAO,aAAQ,IAAI,UAAZ,mBAAmB,WAAW;",
5
+ "names": []
6
6
  }
@@ -1,32 +1,4 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var accessSafe_exports = {};
25
- __export(accessSafe_exports, {
26
- accessSafe: () => accessSafe
27
- });
28
- module.exports = __toCommonJS(accessSafe_exports);
29
- var t = __toESM(require("@babel/types"));
1
+ import * as t from "@babel/types";
30
2
  function accessSafe(obj, member) {
31
3
  return t.logicalExpression(
32
4
  "&&",
@@ -45,8 +17,7 @@ function accessSafe(obj, member) {
45
17
  t.memberExpression(obj, t.identifier(member), !1)
46
18
  );
47
19
  }
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
20
+ export {
50
21
  accessSafe
51
- });
22
+ };
52
23
  //# sourceMappingURL=accessSafe.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/accessSafe.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AAIZ,SAAS,WAAW,KAAmB,QAAqC;AACjF,SAAO,EAAE;AAAA,IACP;AAAA,IACA,EAAE;AAAA,MACA;AAAA;AAAA,MAEA,EAAE;AAAA,QACA;AAAA,QACA,EAAE,gBAAgB,UAAU,GAAG;AAAA,QAC/B,EAAE,cAAc,QAAQ;AAAA,MAC1B;AAAA;AAAA,MAEA,EAAE,iBAAiB,OAAO,KAAK,EAAE,YAAY,CAAC;AAAA,IAChD;AAAA;AAAA,IAEA,EAAE,iBAAiB,KAAK,EAAE,WAAW,MAAM,GAAG,EAAK;AAAA,EACrD;AACF;",
4
+ "mappings": "AAAA,YAAY,OAAO;AAIZ,SAAS,WAAW,KAAmB,QAAqC;AACjF,SAAO,EAAE;AAAA,IACP;AAAA,IACA,EAAE;AAAA,MACA;AAAA;AAAA,MAEA,EAAE;AAAA,QACA;AAAA,QACA,EAAE,gBAAgB,UAAU,GAAG;AAAA,QAC/B,EAAE,cAAc,QAAQ;AAAA,MAC1B;AAAA;AAAA,MAEA,EAAE,iBAAiB,OAAO,KAAK,EAAE,YAAY,CAAC;AAAA,IAChD;AAAA;AAAA,IAEA,EAAE,iBAAiB,KAAK,EAAE,WAAW,MAAM,GAAG,EAAK;AAAA,EACrD;AACF;",
5
5
  "names": []
6
6
  }
@@ -1,33 +1,4 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var babelParse_exports = {};
25
- __export(babelParse_exports, {
26
- babelParse: () => babelParse,
27
- parserOptions: () => parserOptions
28
- });
29
- module.exports = __toCommonJS(babelParse_exports);
30
- var babelParser = __toESM(require("@babel/parser"));
1
+ import * as babelParser from "@babel/parser";
31
2
  const plugins = [
32
3
  "asyncGenerators",
33
4
  "classProperties",
@@ -57,9 +28,8 @@ ${codeString}
57
28
  );
58
29
  }
59
30
  }
60
- // Annotate the CommonJS export names for ESM import in node:
61
- 0 && (module.exports = {
31
+ export {
62
32
  babelParse,
63
33
  parserOptions
64
- });
34
+ };
65
35
  //# sourceMappingURL=babelParse.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/babelParse.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B;AAG7B,MAAM,UAAsC;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEa,gBAA2C,OAAO,OAAO;AAAA,EACpE;AAAA,EACA,YAAY;AACd,CAAC,GAEK,SAAS,YAAY,MAAM,KAAK,WAAW;AAE1C,SAAS,WAAW,MAAuB,UAA2B;AAC3E,QAAM,aAAa,KAAK,SAAS;AACjC,MAAI;AACF,WAAO,OAAO,YAAY,aAAa;AAAA,EACzC,SAAS,KAAK;AACZ,UAAM,IAAI;AAAA,MACR,wBAAwB,GAAG,OAAO,QAAQ;AAAA,EAAY,UAAU;AAAA,GAC7D,IAAY,KACf;AAAA,IACF;AAAA,EACF;AACF;",
4
+ "mappings": "AAAA,YAAY,iBAAiB;AAG7B,MAAM,UAAsC;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEa,gBAA2C,OAAO,OAAO;AAAA,EACpE;AAAA,EACA,YAAY;AACd,CAAC,GAEK,SAAS,YAAY,MAAM,KAAK,WAAW;AAE1C,SAAS,WAAW,MAAuB,UAA2B;AAC3E,QAAM,aAAa,KAAK,SAAS;AACjC,MAAI;AACF,WAAO,OAAO,YAAY,aAAa;AAAA,EACzC,SAAS,KAAK;AACZ,UAAM,IAAI;AAAA,MACR,wBAAwB,GAAG,OAAO,QAAQ;AAAA,EAAY,UAAU;AAAA,GAC7D,IAAY,KACf;AAAA,IACF;AAAA,EACF;AACF;",
5
5
  "names": []
6
6
  }
@@ -1,33 +1,4 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var buildClassName_exports = {};
25
- __export(buildClassName_exports, {
26
- buildClassName: () => buildClassName,
27
- buildClassNameLogic: () => buildClassNameLogic
28
- });
29
- module.exports = __toCommonJS(buildClassName_exports);
30
- var t = __toESM(require("@babel/types"));
1
+ import * as t from "@babel/types";
31
2
  const buildClassName = (objectsIn, extras = "") => {
32
3
  let objects = buildClassNameLogic(objectsIn);
33
4
  return objects ? (t.isStringLiteral(objects) ? objects.value = `${extras} ${objects.value}` : objects = t.binaryExpression("+", t.stringLiteral(extras), objects), objects) : null;
@@ -70,9 +41,8 @@ const buildClassName = (objectsIn, extras = "") => {
70
41
  }
71
42
  return t.binaryExpression("+", acc, inner);
72
43
  }, null);
73
- // Annotate the CommonJS export names for ESM import in node:
74
- 0 && (module.exports = {
44
+ export {
75
45
  buildClassName,
76
46
  buildClassNameLogic
77
- });
47
+ };
78
48
  //# sourceMappingURL=buildClassName.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/buildClassName.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AASZ,MAAM,iBAA0B,CAAC,WAAW,SAAS,OAAO;AACjE,MAAI,UAAU,oBAAoB,SAAS;AAC3C,SAAK,WACD,EAAE,gBAAgB,OAAO,IAE3B,QAAQ,QAAQ,GAAG,MAAM,IAAI,QAAQ,KAAK,KAE1C,UAAU,EAAE,iBAAiB,KAAK,EAAE,cAAc,MAAM,GAAG,OAAO,GAE7D,WAPc;AAQvB,GAEa,sBAA+B,CAAC,YACpC,QAAQ,OAA4B,CAAC,KAAK,QAAQ;AACvD,MAAI,OAAO;AACT;AAAA;AAAA,MAEE,EAAE,wBAAwB,GAAG;AAAA,MAE7B,EAAE,gBAAgB,GAAG,KACrB,EAAE,iBAAiB,GAAG,IAEf,MAEF,EAAE,kBAAkB,MAAM,KAAK,EAAE,cAAc,EAAE,CAAC;AAAA;AAG3D,MAAI;AACJ,MAAI,EAAE,gBAAgB,GAAG,GAAG;AAC1B,QAAI,EAAE,gBAAgB,GAAG;AAEvB,aAAO,EAAE,c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MAAM,KAAK,EAAE,cAAc,EAAE,CAAC;AAAA,MACpD;AAGF,YAAQ,EAAE;AAAA,MACR;AAAA,MACA,EAAE,cAAc,GAAG;AAAA,MACnB,EAAE,kBAAkB,MAAM,KAAK,EAAE,cAAc,EAAE,CAAC;AAAA,IACpD;AAAA,EACF;AAEA,SAAO,EAAE,iBAAiB,KAAK,KAAK,KAAK;AAC3C,GAAG,IAAI;",
5
5
  "names": []
6
6
  }
@@ -1,39 +1,15 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var bundle_exports = {};
25
- __export(bundle_exports, {
26
- bundle: () => bundle
27
- });
28
- module.exports = __toCommonJS(bundle_exports);
29
- var import_path = require("path"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_esbuildAliasPlugin = require("./esbuildAliasPlugin"), import_loadTamagui = require("./loadTamagui");
1
+ import { basename, dirname, join } from "path";
2
+ import esbuild from "esbuild";
3
+ import { pathExists, stat, writeFile } from "fs-extra";
4
+ import { esbuildAliasPlugin } from "./esbuildAliasPlugin";
5
+ import { resolveWebOrNativeSpecificEntry } from "./loadTamagui";
30
6
  function getESBuildConfig({ entryPoints, resolvePlatformSpecificEntries, ...options }, platform, aliases) {
31
7
  var _a;
32
8
  (_a = process.env.DEBUG) != null && _a.startsWith("tamagui") && console.info("Building", entryPoints);
33
- const tsconfig = (0, import_path.join)(__dirname, "..", "..", "..", "tamagui.tsconfig.json");
9
+ const tsconfig = join(__dirname, "..", "..", "..", "tamagui.tsconfig.json");
34
10
  return {
35
11
  bundle: !0,
36
- entryPoints: resolvePlatformSpecificEntries ? entryPoints.map(import_loadTamagui.resolveWebOrNativeSpecificEntry) : entryPoints,
12
+ entryPoints: resolvePlatformSpecificEntries ? entryPoints.map(resolveWebOrNativeSpecificEntry) : entryPoints,
37
13
  format: "cjs",
38
14
  target: "node16",
39
15
  jsx: "transform",
@@ -89,7 +65,7 @@ function getESBuildConfig({ entryPoints, resolvePlatformSpecificEntries, ...opti
89
65
  }));
90
66
  }
91
67
  },
92
- (0, import_esbuildAliasPlugin.esbuildAliasPlugin)({
68
+ esbuildAliasPlugin({
93
69
  ...aliases
94
70
  })
95
71
  ],
@@ -99,25 +75,24 @@ function getESBuildConfig({ entryPoints, resolvePlatformSpecificEntries, ...opti
99
75
  async function bundle(props, platform, aliases) {
100
76
  await asyncLock(props);
101
77
  const config = getESBuildConfig(props, platform, aliases);
102
- return import_esbuild.default.build(config);
78
+ return esbuild.build(config);
103
79
  }
104
80
  async function asyncLock(props) {
105
81
  var _a;
106
- const lockFile = (0, import_path.join)((0, import_path.dirname)(props.outfile), (0, import_path.basename)(props.outfile, ".lock")), lockStat = await (0, import_fs_extra.stat)(lockFile).catch(() => {
82
+ const lockFile = join(dirname(props.outfile), basename(props.outfile, ".lock")), lockStat = await stat(lockFile).catch(() => {
107
83
  });
108
84
  if ((lockStat ? (/* @__PURE__ */ new Date()).getTime() - new Date(lockStat.mtime).getTime() : 1 / 0) < 500) {
109
85
  (_a = process.env.DEBUG) != null && _a.startsWith("tamagui") && console.info("Waiting for existing build", props.entryPoints);
110
86
  let tries = 5;
111
87
  for (; tries--; ) {
112
- if (await (0, import_fs_extra.pathExists)(props.outfile))
88
+ if (await pathExists(props.outfile))
113
89
  return;
114
90
  await new Promise((res) => setTimeout(res, 50));
115
91
  }
116
92
  }
117
- (0, import_fs_extra.writeFile)(lockFile, "");
93
+ writeFile(lockFile, "");
118
94
  }
119
- // Annotate the CommonJS export names for ESM import in node:
120
- 0 && (module.exports = {
95
+ export {
121
96
  bundle
122
- });
97
+ };
123
98
  //# sourceMappingURL=bundle.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/bundle.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwC,iBAExC,iBAAoB,6BACpB,kBAA4C,qBAG5C,4BAAmC,iCACnC,qBAAgD;AAYhD,SAAS,iBACP,EAAE,aAAa,gCAAgC,GAAG,QAAQ,GAC1D,UACA,SACA;AAvBF;AAwBE,GAAI,aAAQ,IAAI,UAAZ,WAAmB,WAAW,cAChC,QAAQ,KAAK,YAAY,WAAW;AAEtC,QAAM,eAAW,kBAAK,WAAW,MAAM,MAAM,MAAM,uBAAuB;AAsF1E,SAhFkC;AAAA,IAChC,QAAQ;AAAA,IACR,aAN2B,iCAEzB,YAAY,IAAI,kDAA+B,IAD/C;AAAA,IAMF,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,mBAAmB;AAAA,MAGZ;AAAA,MAAe;AAAA,MAAc;AAAA,MAAe;AAAA,MACjD;AA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M;AAC7B;AAGA,eAAe,UAAU,OAAc;AA/HvC;AAgIE,QAAM,WAAW,KAAK,QAAQ,MAAM,OAAO,GAAG,SAAS,MAAM,SAAS,OAAO,CAAC,GACxE,WAAW,MAAM,KAAK,QAAQ,EAAE,MAAM,MAAM;AAAA,EAElD,CAAC;AAID,OAHqB,YAEjB,oBAAI,KAAK,GAAE,QAAQ,IAAI,IAAI,KAAK,SAAS,KAAK,EAAE,QAAQ,IADxD,SAEc,KAAK;AACrB,KAAI,aAAQ,IAAI,UAAZ,WAAmB,WAAW,cAChC,QAAQ,KAAK,8BAA8B,MAAM,WAAW;AAE9D,QAAI,QAAQ;AACZ,WAAO,WAAS;AACd,UAAI,MAAM,WAAW,MAAM,OAAO;AAChC;AAEF,YAAM,IAAI,QAAQ,CAAC,QAAQ,WAAW,KAAK,EAAE,CAAC;AAAA,IAChD;AAAA,EACF;AACA,EAAK,UAAU,UAAU,EAAE;AAC7B;",
5
+ "names": []
6
6
  }
@@ -1,37 +1,15 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var bundleConfig_exports = {};
25
- __export(bundleConfig_exports, {
26
- bundleConfig: () => bundleConfig,
27
- esbuildOptions: () => esbuildOptions,
28
- getBundledConfig: () => getBundledConfig,
29
- hasBundledConfigChanged: () => hasBundledConfigChanged,
30
- loadComponents: () => loadComponents,
31
- loadComponentsInner: () => loadComponentsInner
32
- });
33
- module.exports = __toCommonJS(bundleConfig_exports);
34
- var import_fs = require("fs"), import_path = require("path"), 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")), import_fs_extra = require("fs-extra"), import_registerRequire = require("../registerRequire"), import_babelParse = require("./babelParse"), import_bundle = require("./bundle"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
1
+ import { readFileSync } from "fs";
2
+ import { basename, dirname, extname, join, relative, sep } from "path";
3
+ import generate from "@babel/generator";
4
+ import traverse from "@babel/traverse";
5
+ import * as t from "@babel/types";
6
+ import { Color, colorLog } from "@tamagui/cli-color";
7
+ import esbuild from "esbuild";
8
+ import { ensureDir, removeSync, writeFileSync } from "fs-extra";
9
+ import { registerRequire, setRequireResult } from "../registerRequire";
10
+ import { babelParse } from "./babelParse";
11
+ import { bundle } from "./bundle";
12
+ import { getTamaguiConfigPathFromOptionsConfig } from "./getTamaguiConfigPathFromOptionsConfig";
35
13
  const external = [
36
14
  "@tamagui/core",
37
15
  "@tamagui/web",
@@ -67,20 +45,20 @@ async function bundleConfig(props) {
67
45
  var _a, _b, _c, _d;
68
46
  try {
69
47
  isBundling = !0;
70
- const configEntry = props.config ? (0, import_getTamaguiConfigPathFromOptionsConfig.getTamaguiConfigPathFromOptionsConfig)(props.config) : "", tmpDir = (0, import_path.join)(process.cwd(), ".tamagui"), configOutPath = (0, import_path.join)(tmpDir, "tamagui.config.cjs"), baseComponents = props.components.filter((x) => x !== "@tamagui/core"), componentOutPaths = baseComponents.map(
71
- (componentModule) => (0, import_path.join)(
48
+ const configEntry = props.config ? getTamaguiConfigPathFromOptionsConfig(props.config) : "", tmpDir = join(process.cwd(), ".tamagui"), configOutPath = join(tmpDir, "tamagui.config.cjs"), baseComponents = props.components.filter((x) => x !== "@tamagui/core"), componentOutPaths = baseComponents.map(
49
+ (componentModule) => join(
72
50
  tmpDir,
73
- `${componentModule.split(import_path.sep).join("-").replace(/[^a-z0-9]+/gi, "")}-components.config.cjs`
51
+ `${componentModule.split(sep).join("-").replace(/[^a-z0-9]+/gi, "")}-components.config.cjs`
74
52
  )
75
53
  );
76
54
  if (process.env.NODE_ENV === "development" && ((_a = process.env.DEBUG) != null && _a.startsWith("tamagui")) && console.info("Building config entry", configEntry), !props.disableInitialBuild) {
77
55
  try {
78
- await (0, import_fs_extra.ensureDir)(tmpDir);
56
+ await ensureDir(tmpDir);
79
57
  } catch {
80
58
  }
81
59
  const start = Date.now();
82
60
  await Promise.all([
83
- props.config ? (0, import_bundle.bundle)(
61
+ props.config ? bundle(
84
62
  {
85
63
  entryPoints: [configEntry],
86
64
  external,
@@ -90,7 +68,7 @@ async function bundleConfig(props) {
90
68
  },
91
69
  props.platform
92
70
  ) : null,
93
- ...baseComponents.map((componentModule, i) => (0, import_bundle.bundle)(
71
+ ...baseComponents.map((componentModule, i) => bundle(
94
72
  {
95
73
  entryPoints: [componentModule],
96
74
  resolvePlatformSpecificEntries: !0,
@@ -101,23 +79,23 @@ async function bundleConfig(props) {
101
79
  },
102
80
  props.platform
103
81
  ))
104
- ]), (0, import_cli_color.colorLog)(
105
- import_cli_color.Color.FgYellow,
82
+ ]), colorLog(
83
+ Color.FgYellow,
106
84
  `
107
85
  \u27A1 [tamagui] built config and components (${Date.now() - start}ms):`
108
- ), (0, import_cli_color.colorLog)(
109
- import_cli_color.Color.Dim,
86
+ ), colorLog(
87
+ Color.Dim,
110
88
  `
111
- Config .${import_path.sep}${(0, import_path.relative)(process.cwd(), configOutPath)}
89
+ Config .${sep}${relative(process.cwd(), configOutPath)}
112
90
  Components ${[
113
- ...componentOutPaths.map((p) => `.${import_path.sep}${(0, import_path.relative)(process.cwd(), p)}`)
91
+ ...componentOutPaths.map((p) => `.${sep}${relative(process.cwd(), p)}`)
114
92
  ].join(`
115
93
  `)}
116
94
  `
117
95
  );
118
96
  }
119
97
  let out;
120
- const { unregister } = (0, import_registerRequire.registerRequire)(props.platform);
98
+ const { unregister } = registerRequire(props.platform);
121
99
  try {
122
100
  out = require(configOutPath);
123
101
  } catch (err) {
@@ -177,16 +155,16 @@ function loadComponentsInner(props, forceExports = !1) {
177
155
  const componentsModules = props.components, key = componentsModules.join("");
178
156
  if (!forceExports && cacheComponents[key])
179
157
  return cacheComponents[key];
180
- const { unregister } = (0, import_registerRequire.registerRequire)(props.platform, {
158
+ const { unregister } = registerRequire(props.platform, {
181
159
  proxyWormImports: forceExports
182
160
  });
183
161
  try {
184
162
  const info = componentsModules.flatMap((name) => {
185
163
  var _a;
186
- const isDynamic = !!(0, import_path.extname)(name) && forceExports, fileContents = isDynamic ? (0, import_fs.readFileSync)(name, "utf-8") : "", loadModule = isDynamic ? (0, import_path.join)((0, import_path.dirname)(name), `.tamagui-dynamic-eval-${(0, import_path.basename)(name)}.tsx`) : name;
164
+ const isDynamic = !!extname(name) && forceExports, fileContents = isDynamic ? readFileSync(name, "utf-8") : "", loadModule = isDynamic ? join(dirname(name), `.tamagui-dynamic-eval-${basename(name)}.tsx`) : name;
187
165
  let writtenContents = fileContents, didBabel = !1;
188
166
  function attemptLoad({ forceExports: forceExports2 = !1 } = {}) {
189
- isDynamic && (writtenContents = forceExports2 ? transformAddExports((0, import_babelParse.babelParse)(esbuildit(fileContents, "modern"), name)) : fileContents, (0, import_fs_extra.writeFileSync)(loadModule, writtenContents), import_esbuild.default.buildSync({
167
+ isDynamic && (writtenContents = forceExports2 ? transformAddExports(babelParse(esbuildit(fileContents, "modern"), name)) : fileContents, writeFileSync(loadModule, writtenContents), esbuild.buildSync({
190
168
  ...esbuildOptions,
191
169
  entryPoints: [loadModule],
192
170
  outfile: loadModule,
@@ -206,7 +184,7 @@ function loadComponentsInner(props, forceExports = !1) {
206
184
  }
207
185
  })), process.env.DEBUG === "tamagui" && console.info("loadModule", loadModule, require.resolve(loadModule));
208
186
  const moduleResult = require(loadModule);
209
- forceExports2 || (0, import_registerRequire.setRequireResult)(name, moduleResult);
187
+ forceExports2 || setRequireResult(name, moduleResult);
210
188
  const nameToInfo = getComponentStaticConfigByName(
211
189
  name,
212
190
  interopDefaultExport(moduleResult)
@@ -217,7 +195,7 @@ function loadComponentsInner(props, forceExports = !1) {
217
195
  };
218
196
  }
219
197
  const dispose = () => {
220
- isDynamic && (0, import_fs_extra.removeSync)(loadModule);
198
+ isDynamic && removeSync(loadModule);
221
199
  };
222
200
  try {
223
201
  const res = attemptLoad({
@@ -260,7 +238,7 @@ isDynamic: `,
260
238
  unregister();
261
239
  }
262
240
  }
263
- const esbuildit = (src, target) => import_esbuild.default.transformSync(src, {
241
+ const esbuildit = (src, target) => esbuild.transformSync(src, {
264
242
  ...esbuildOptions,
265
243
  ...target === "modern" && {
266
244
  target: "es2022",
@@ -301,7 +279,7 @@ function interopDefaultExport(mod) {
301
279
  const cacheComponents = {};
302
280
  function transformAddExports(ast) {
303
281
  const usedNames = /* @__PURE__ */ new Set();
304
- return (0, import_traverse.default)(ast, {
282
+ return traverse(ast, {
305
283
  ExportNamedDeclaration(nodePath) {
306
284
  if (nodePath.node.specifiers)
307
285
  for (const spec of nodePath.node.specifiers)
@@ -309,7 +287,7 @@ function transformAddExports(ast) {
309
287
  t.isIdentifier(spec.exported) ? spec.exported.name : spec.exported.value
310
288
  );
311
289
  }
312
- }), (0, import_traverse.default)(ast, {
290
+ }), traverse(ast, {
313
291
  VariableDeclaration(nodePath) {
314
292
  if (!t.isProgram(nodePath.parent))
315
293
  return;
@@ -323,20 +301,19 @@ function transformAddExports(ast) {
323
301
  ])
324
302
  )));
325
303
  }
326
- }), (0, import_generator.default)(ast, {
304
+ }), generate(ast, {
327
305
  concise: !1,
328
306
  filename: "test.tsx",
329
307
  retainLines: !1,
330
308
  sourceMaps: !1
331
309
  }).code;
332
310
  }
333
- // Annotate the CommonJS export names for ESM import in node:
334
- 0 && (module.exports = {
311
+ export {
335
312
  bundleConfig,
336
313
  esbuildOptions,
337
314
  getBundledConfig,
338
315
  hasBundledConfigChanged,
339
316
  loadComponents,
340
317
  loadComponentsInner
341
- });
318
+ };
342
319
  //# sourceMappingURL=bundleConfig.js.map
@@ -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,gBAA6B,eAC7B,cAAgE,iBAEhE,mBAAqB,sCACrB,kBAAqB,qCACrB,IAAmB,kCACnB,mBAAgC,+BAEhC,iBAAoB,6BACpB,kBAAqD,qBAErD,yBAAkD,+BAElD,oBAA2B,yBAC3B,gBAAuB,qBACvB,+CAAsD;AAuBtD,MAAM,WAAW;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEM,sBAAsB;AAAA,EAC1B,QAAQ;AAAA,IACN,SAAS,GAAG,QAAQ,IAAI,aAAa,aAAa;AAAA,EACpD;AACF,GAEa,iBAAiB;AAAA,EAC5B,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,UAAU;AAAA,EACV,GAAG;AACL;AAKA,IAAI,gBAAsC,MACtC,aAAa,IACb,aAAmC;AACvC,MAAM,gBAAgB,oBAAI,IAAc;AAEjC,SAAS,0BAA0B;AAC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