@tamagui/static 1.88.12 → 1.88.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/extractor/createExtractor.js.map +1 -1
  3. package/dist/cjs/extractor/createExtractor.native.js.map +1 -1
  4. package/dist/cjs/extractor/extractMediaStyle.js.map +1 -1
  5. package/dist/cjs/extractor/extractMediaStyle.native.js.map +1 -1
  6. package/dist/cjs/extractor/generateTamaguiStudioConfig.js.map +1 -1
  7. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +1 -1
  8. package/dist/cjs/extractor/getStaticBindingsForScope.js.map +1 -1
  9. package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +1 -1
  10. package/dist/esm/constants.mjs +10 -0
  11. package/dist/esm/extractor/accessSafe.mjs +11 -0
  12. package/dist/esm/extractor/babelParse.mjs +18 -0
  13. package/dist/esm/extractor/buildClassName.mjs +26 -0
  14. package/dist/esm/extractor/bundle.mjs +94 -0
  15. package/dist/esm/extractor/bundleConfig.mjs +263 -0
  16. package/dist/esm/extractor/createEvaluator.mjs +34 -0
  17. package/dist/esm/extractor/createExtractor.js.map +1 -1
  18. package/dist/esm/extractor/createExtractor.mjs +952 -0
  19. package/dist/esm/extractor/createExtractor.native.js.map +1 -1
  20. package/dist/esm/extractor/ensureImportingConcat.mjs +13 -0
  21. package/dist/esm/extractor/esbuildAliasPlugin.mjs +20 -0
  22. package/dist/esm/extractor/evaluateAstNode.mjs +48 -0
  23. package/dist/esm/extractor/extractHelpers.mjs +72 -0
  24. package/dist/esm/extractor/extractMediaStyle.js.map +1 -1
  25. package/dist/esm/extractor/extractMediaStyle.mjs +93 -0
  26. package/dist/esm/extractor/extractMediaStyle.native.js.map +1 -1
  27. package/dist/esm/extractor/extractToClassNames.mjs +237 -0
  28. package/dist/esm/extractor/findTopmostFunction.mjs +10 -0
  29. package/dist/esm/extractor/generateTamaguiStudioConfig.js.map +1 -1
  30. package/dist/esm/extractor/generateTamaguiStudioConfig.mjs +108 -0
  31. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +1 -1
  32. package/dist/esm/extractor/generatedUid.mjs +12 -0
  33. package/dist/esm/extractor/getPrefixLogs.mjs +4 -0
  34. package/dist/esm/extractor/getPropValueFromAttributes.mjs +31 -0
  35. package/dist/esm/extractor/getSourceModule.mjs +33 -0
  36. package/dist/esm/extractor/getStaticBindingsForScope.js.map +1 -1
  37. package/dist/esm/extractor/getStaticBindingsForScope.mjs +112 -0
  38. package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +1 -1
  39. package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.mjs +5 -0
  40. package/dist/esm/extractor/hoistClassNames.mjs +24 -0
  41. package/dist/esm/extractor/literalToAst.mjs +48 -0
  42. package/dist/esm/extractor/loadFile.mjs +11 -0
  43. package/dist/esm/extractor/loadTamagui.mjs +233 -0
  44. package/dist/esm/extractor/logLines.mjs +11 -0
  45. package/dist/esm/extractor/normalizeTernaries.mjs +33 -0
  46. package/dist/esm/extractor/propsToFontFamilyCache.mjs +12 -0
  47. package/dist/esm/extractor/removeUnusedHooks.mjs +41 -0
  48. package/dist/esm/extractor/timer.mjs +19 -0
  49. package/dist/esm/extractor/validHTMLAttributes.mjs +49 -0
  50. package/dist/esm/getPragmaOptions.mjs +19 -0
  51. package/dist/esm/helpers/memoize.mjs +13 -0
  52. package/dist/esm/helpers/requireTamaguiCore.mjs +5 -0
  53. package/dist/esm/index.mjs +3 -0
  54. package/dist/esm/minifyCSS.mjs +12 -0
  55. package/dist/esm/registerRequire.mjs +74 -0
  56. package/dist/esm/server.mjs +40 -0
  57. package/dist/esm/setup.mjs +1 -0
  58. package/dist/esm/static.mjs +10 -0
  59. package/dist/esm/types.mjs +0 -0
  60. package/dist/esm/webpackPlugin.mjs +7 -0
  61. package/package.json +15 -15
  62. package/src/extractor/babelParse.ts +1 -1
  63. package/src/extractor/bundle.ts +1 -1
  64. package/src/extractor/bundleConfig.ts +1 -1
  65. package/src/extractor/createEvaluator.ts +2 -2
  66. package/src/extractor/createExtractor.ts +3 -2
  67. package/src/extractor/ensureImportingConcat.ts +1 -1
  68. package/src/extractor/extractMediaStyle.ts +3 -2
  69. package/src/extractor/extractToClassNames.ts +1 -1
  70. package/src/extractor/findTopmostFunction.ts +2 -2
  71. package/src/extractor/generateTamaguiStudioConfig.ts +4 -3
  72. package/src/extractor/getPrefixLogs.ts +1 -1
  73. package/src/extractor/getStaticBindingsForScope.ts +3 -2
  74. package/src/extractor/getTamaguiConfigPathFromOptionsConfig.ts +1 -1
  75. package/src/extractor/hoistClassNames.ts +1 -1
  76. package/src/extractor/loadTamagui.ts +1 -1
  77. package/src/extractor/normalizeTernaries.ts +1 -1
  78. package/src/extractor/removeUnusedHooks.ts +1 -1
  79. package/src/helpers/requireTamaguiCore.ts +1 -1
  80. package/src/registerRequire.ts +1 -1
  81. package/src/server.ts +1 -1
  82. package/src/types.ts +2 -2
  83. package/types/extractor/babelParse.d.ts +1 -1
  84. package/types/extractor/babelParse.d.ts.map +1 -1
  85. package/types/extractor/bundle.d.ts +1 -1
  86. package/types/extractor/bundle.d.ts.map +1 -1
  87. package/types/extractor/bundleConfig.d.ts +1 -1
  88. package/types/extractor/bundleConfig.d.ts.map +1 -1
  89. package/types/extractor/createEvaluator.d.ts +2 -2
  90. package/types/extractor/createEvaluator.d.ts.map +1 -1
  91. package/types/extractor/createExtractor.d.ts +2 -2
  92. package/types/extractor/createExtractor.d.ts.map +1 -1
  93. package/types/extractor/ensureImportingConcat.d.ts +1 -1
  94. package/types/extractor/ensureImportingConcat.d.ts.map +1 -1
  95. package/types/extractor/extractMediaStyle.d.ts +2 -2
  96. package/types/extractor/extractMediaStyle.d.ts.map +1 -1
  97. package/types/extractor/extractToClassNames.d.ts +1 -1
  98. package/types/extractor/extractToClassNames.d.ts.map +1 -1
  99. package/types/extractor/findTopmostFunction.d.ts +2 -2
  100. package/types/extractor/findTopmostFunction.d.ts.map +1 -1
  101. package/types/extractor/generateTamaguiStudioConfig.d.ts +2 -2
  102. package/types/extractor/generateTamaguiStudioConfig.d.ts.map +1 -1
  103. package/types/extractor/getPrefixLogs.d.ts +1 -1
  104. package/types/extractor/getPrefixLogs.d.ts.map +1 -1
  105. package/types/extractor/getStaticBindingsForScope.d.ts +1 -1
  106. package/types/extractor/getStaticBindingsForScope.d.ts.map +1 -1
  107. package/types/extractor/getTamaguiConfigPathFromOptionsConfig.d.ts +1 -1
  108. package/types/extractor/getTamaguiConfigPathFromOptionsConfig.d.ts.map +1 -1
  109. package/types/extractor/hoistClassNames.d.ts +1 -1
  110. package/types/extractor/hoistClassNames.d.ts.map +1 -1
  111. package/types/extractor/loadTamagui.d.ts +1 -1
  112. package/types/extractor/loadTamagui.d.ts.map +1 -1
  113. package/types/extractor/normalizeTernaries.d.ts +1 -1
  114. package/types/extractor/normalizeTernaries.d.ts.map +1 -1
  115. package/types/extractor/removeUnusedHooks.d.ts +1 -1
  116. package/types/extractor/removeUnusedHooks.d.ts.map +1 -1
  117. package/types/helpers/requireTamaguiCore.d.ts +1 -1
  118. package/types/helpers/requireTamaguiCore.d.ts.map +1 -1
  119. package/types/registerRequire.d.ts +1 -1
  120. package/types/registerRequire.d.ts.map +1 -1
  121. package/types/server.d.ts +1 -1
  122. package/types/server.d.ts.map +1 -1
  123. package/types/types.d.ts +2 -2
  124. package/types/types.d.ts.map +1 -1
@@ -0,0 +1,10 @@
1
+ import { TamaguiOptions } from "./types.mjs";
2
+ import { createExtractor } from "./extractor/createExtractor.mjs";
3
+ import { literalToAst } from "./extractor/literalToAst.mjs";
4
+ export * from "./constants.mjs";
5
+ export * from "./extractor/extractToClassNames.mjs";
6
+ export * from "./extractor/extractHelpers.mjs";
7
+ export * from "./extractor/loadTamagui.mjs";
8
+ export * from "./registerRequire.mjs";
9
+ export * from "./getPragmaOptions.mjs";
10
+ export { TamaguiOptions, createExtractor, literalToAst };
File without changes
@@ -0,0 +1,7 @@
1
+ const pluginName = "TamaguiWebpackPlugin";
2
+ class TamaguiWebpackPlugin {
3
+ apply(compiler) {
4
+ compiler.hooks.run.tap(pluginName, compilation => {});
5
+ }
6
+ }
7
+ export { TamaguiWebpackPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/static",
3
- "version": "1.88.12",
3
+ "version": "1.88.14",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs/index.js",
@@ -35,29 +35,29 @@
35
35
  "@babel/runtime": "^7.23.2",
36
36
  "@babel/traverse": "^7.23.3",
37
37
  "@babel/types": "^7.23.3",
38
- "@tamagui/build": "1.88.12",
39
- "@tamagui/cli-color": "1.88.12",
40
- "@tamagui/config-default": "1.88.12",
41
- "@tamagui/core": "1.88.12",
42
- "@tamagui/fake-react-native": "1.88.12",
43
- "@tamagui/generate-themes": "1.88.12",
44
- "@tamagui/helpers": "1.88.12",
45
- "@tamagui/helpers-node": "1.88.12",
46
- "@tamagui/proxy-worm": "1.88.12",
47
- "@tamagui/shorthands": "1.88.12",
48
- "@tamagui/types": "1.88.12",
38
+ "@tamagui/build": "1.88.14",
39
+ "@tamagui/cli-color": "1.88.14",
40
+ "@tamagui/config-default": "1.88.14",
41
+ "@tamagui/core": "1.88.14",
42
+ "@tamagui/fake-react-native": "1.88.14",
43
+ "@tamagui/generate-themes": "1.88.14",
44
+ "@tamagui/helpers": "1.88.14",
45
+ "@tamagui/helpers-node": "1.88.14",
46
+ "@tamagui/proxy-worm": "1.88.14",
47
+ "@tamagui/shorthands": "1.88.14",
48
+ "@tamagui/types": "1.88.14",
49
49
  "babel-literal-to-ast": "^2.1.0",
50
50
  "browserslist": "^4.22.2",
51
51
  "esbuild": "^0.19.11",
52
52
  "esbuild-register": "^3.4.2",
53
53
  "find-cache-dir": "^3.3.2",
54
54
  "find-root": "^1.1.0",
55
- "fs-extra": "^11.1.0",
55
+ "fs-extra": "^11.2.0",
56
56
  "invariant": "^2.2.4",
57
57
  "lodash": "^4.17.21",
58
58
  "react-native-web": "^0.19.10",
59
- "react-native-web-internals": "1.88.12",
60
- "react-native-web-lite": "1.88.12"
59
+ "react-native-web-internals": "1.88.14",
60
+ "react-native-web-lite": "1.88.14"
61
61
  },
62
62
  "optionalDependencies": {
63
63
  "lightningcss": "*"
@@ -1,5 +1,5 @@
1
1
  import * as babelParser from '@babel/parser'
2
- import * as t from '@babel/types'
2
+ import type * as t from '@babel/types'
3
3
 
4
4
  const plugins: babelParser.ParserPlugin[] = [
5
5
  'asyncGenerators',
@@ -3,7 +3,7 @@ import { basename, dirname, join } from 'path'
3
3
  import esbuild from 'esbuild'
4
4
  import { pathExists, stat, writeFile } from 'fs-extra'
5
5
 
6
- import { TamaguiPlatform } from '../types'
6
+ import type { TamaguiPlatform } from '../types'
7
7
  import { esbuildAliasPlugin } from './esbuildAliasPlugin'
8
8
  import { resolveWebOrNativeSpecificEntry } from './loadTamagui'
9
9
 
@@ -10,7 +10,7 @@ import esbuild from 'esbuild'
10
10
  import { ensureDir, removeSync, writeFileSync } from 'fs-extra'
11
11
 
12
12
  import { registerRequire, setRequireResult } from '../registerRequire'
13
- import { TamaguiOptions } from '../types'
13
+ import type { TamaguiOptions } from '../types'
14
14
  import { babelParse } from './babelParse'
15
15
  import { bundle } from './bundle'
16
16
  import { getTamaguiConfigPathFromOptionsConfig } from './getTamaguiConfigPathFromOptionsConfig'
@@ -1,12 +1,12 @@
1
1
  import vm from 'vm'
2
2
 
3
3
  import generate from '@babel/generator'
4
- import { NodePath } from '@babel/traverse'
4
+ import type { NodePath } from '@babel/traverse'
5
5
  import * as t from '@babel/types'
6
6
  import esbuild from 'esbuild'
7
7
 
8
8
  import { FAILED_EVAL } from '../constants'
9
- import { TamaguiOptionsWithFileInfo } from '../types'
9
+ import type { TamaguiOptionsWithFileInfo } from '../types'
10
10
  import { evaluateAstNode } from './evaluateAstNode'
11
11
 
12
12
  export function createEvaluator({
@@ -1,7 +1,8 @@
1
1
  /* eslint-disable no-console */
2
2
  import { basename, relative } from 'path'
3
3
 
4
- import traverse, { NodePath, TraverseOptions } from '@babel/traverse'
4
+ import type { NodePath, TraverseOptions } from '@babel/traverse'
5
+ import traverse from '@babel/traverse'
5
6
  import * as t from '@babel/types'
6
7
  import { Color, colorLog } from '@tamagui/cli-color'
7
8
  import type {
@@ -25,7 +26,7 @@ import type {
25
26
  TamaguiOptionsWithFileInfo,
26
27
  Ternary,
27
28
  } from '../types'
28
- import { TamaguiProjectInfo } from './bundleConfig'
29
+ import type { TamaguiProjectInfo } from './bundleConfig'
29
30
  import { createEvaluator, createSafeEvaluator } from './createEvaluator'
30
31
  import { evaluateAstNode } from './evaluateAstNode'
31
32
  import {
@@ -1,4 +1,4 @@
1
- import { NodePath } from '@babel/traverse'
1
+ import type { NodePath } from '@babel/traverse'
2
2
  import * as t from '@babel/types'
3
3
 
4
4
  const importConcatPkg = '@tamagui/helpers'
@@ -1,6 +1,7 @@
1
- import { NodePath } from '@babel/traverse'
1
+ import type { NodePath } from '@babel/traverse'
2
2
  import * as t from '@babel/types'
3
- import { TamaguiInternalConfig, createMediaStyle } from '@tamagui/core'
3
+ import type { TamaguiInternalConfig } from '@tamagui/core'
4
+ import { createMediaStyle } from '@tamagui/core'
4
5
  import type { ViewStyle } from 'react-native'
5
6
 
6
7
  import { requireTamaguiCore } from '../helpers/requireTamaguiCore'
@@ -11,7 +11,7 @@ import { requireTamaguiCore } from '../helpers/requireTamaguiCore'
11
11
  import type { ClassNameObject, StyleObject, TamaguiOptions, Ternary } from '../types'
12
12
  import { babelParse } from './babelParse'
13
13
  import { buildClassName } from './buildClassName'
14
- import { Extractor } from './createExtractor'
14
+ import type { Extractor } from './createExtractor'
15
15
  import { ensureImportingConcat } from './ensureImportingConcat'
16
16
  import { isSimpleSpread } from './extractHelpers'
17
17
  import { extractMediaStyle } from './extractMediaStyle'
@@ -1,5 +1,5 @@
1
- import { NodePath } from '@babel/traverse'
2
- import * as t from '@babel/types'
1
+ import type { NodePath } from '@babel/traverse'
2
+ import type * as t from '@babel/types'
3
3
 
4
4
  export function findTopmostFunction(jsxPath: NodePath<t.JSXElement>) {
5
5
  // get topmost fn
@@ -1,12 +1,13 @@
1
1
  import { dirname, join } from 'path'
2
2
 
3
3
  import { generateThemes, writeGeneratedThemes } from '@tamagui/generate-themes'
4
- import { TamaguiOptions } from '@tamagui/types'
4
+ import type { TamaguiOptions } from '@tamagui/types'
5
5
  import fs, { readFile } from 'fs-extra'
6
6
 
7
7
  import { requireTamaguiCore } from '../helpers/requireTamaguiCore'
8
- import { TamaguiPlatform } from '../types'
9
- import { BundledConfig, getBundledConfig } from './bundleConfig'
8
+ import type { TamaguiPlatform } from '../types'
9
+ import type { BundledConfig } from './bundleConfig'
10
+ import { getBundledConfig } from './bundleConfig'
10
11
 
11
12
  const tamaguiDir = join(process.cwd(), '.tamagui')
12
13
  const confFile = join(tamaguiDir, 'tamagui.config.json')
@@ -1,4 +1,4 @@
1
- import { TamaguiOptions } from '../types'
1
+ import type { TamaguiOptions } from '../types'
2
2
 
3
3
  export function getPrefixLogs(options?: TamaguiOptions) {
4
4
  return options?.prefixLogs ?? ` ${options?.platform || 'web'} | `
@@ -1,7 +1,8 @@
1
- import { ChildProcess, fork } from 'child_process'
1
+ import type { ChildProcess } from 'child_process'
2
+ import { fork } from 'child_process'
2
3
  import { dirname, extname, join, resolve } from 'path'
3
4
 
4
- import { Binding, NodePath } from '@babel/traverse'
5
+ import type { Binding, NodePath } from '@babel/traverse'
5
6
  import * as t from '@babel/types'
6
7
 
7
8
  import { evaluateAstNode } from './evaluateAstNode'
@@ -1,6 +1,6 @@
1
1
  import { isAbsolute, join } from 'path'
2
2
 
3
- import { TamaguiOptions } from '../types'
3
+ import type { TamaguiOptions } from '../types'
4
4
 
5
5
  export function getTamaguiConfigPathFromOptionsConfig(
6
6
  config: NonNullable<TamaguiOptions['config']>
@@ -1,4 +1,4 @@
1
- import { NodePath } from '@babel/traverse'
1
+ import type { NodePath } from '@babel/traverse'
2
2
  import * as t from '@babel/types'
3
3
 
4
4
  export function hoistClassNames(
@@ -3,7 +3,7 @@ import { basename, dirname, extname, join, relative, resolve } from 'path'
3
3
 
4
4
  import { Color, colorLog } from '@tamagui/cli-color'
5
5
  import { getDefaultTamaguiConfig } from '@tamagui/config-default'
6
- import { CLIResolvedOptions, CLIUserOptions, TamaguiOptions } from '@tamagui/types'
6
+ import type { CLIResolvedOptions, CLIUserOptions, TamaguiOptions } from '@tamagui/types'
7
7
  import type { TamaguiInternalConfig } from '@tamagui/web'
8
8
  import esbuild from 'esbuild'
9
9
  import { existsSync, pathExists, readJSON, writeFile } from 'fs-extra'
@@ -2,7 +2,7 @@ import generate from '@babel/generator'
2
2
  import * as t from '@babel/types'
3
3
  import invariant from 'invariant'
4
4
 
5
- import { Ternary } from '../types'
5
+ import type { Ternary } from '../types'
6
6
 
7
7
  export function normalizeTernaries(ternaries: Ternary[]) {
8
8
  invariant(
@@ -1,4 +1,4 @@
1
- import { NodePath } from '@babel/traverse'
1
+ import type { NodePath } from '@babel/traverse'
2
2
  import * as t from '@babel/types'
3
3
 
4
4
  const hooks = {
@@ -1,6 +1,6 @@
1
1
  // this allows us to swap between core native and web in the same process:
2
2
 
3
- import { TamaguiPlatform } from '../types'
3
+ import type { TamaguiPlatform } from '../types'
4
4
 
5
5
  export function requireTamaguiCore(
6
6
  platform: TamaguiPlatform,
@@ -1,7 +1,7 @@
1
1
  import { register } from 'esbuild-register/dist/node'
2
2
 
3
3
  import { requireTamaguiCore } from './helpers/requireTamaguiCore'
4
- import { TamaguiPlatform } from './types'
4
+ import type { TamaguiPlatform } from './types'
5
5
 
6
6
  const nameToPaths = {}
7
7
  const Module = require('module')
package/src/server.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TamaguiOptions } from './types'
1
+ import type { TamaguiOptions } from './types'
2
2
 
3
3
  import net from 'node:net'
4
4
 
package/src/types.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import type { NodePath } from '@babel/traverse'
2
- import * as t from '@babel/types'
2
+ import type * as t from '@babel/types'
3
3
  import type { PseudoStyles, StaticConfig, TamaguiConfig } from '@tamagui/core'
4
4
  import type { StyleObject } from '@tamagui/helpers'
5
5
  import type { TamaguiOptions } from '@tamagui/types'
6
6
  import type { ViewStyle } from 'react-native'
7
7
 
8
- import { LoadedComponents } from './extractor/bundleConfig'
8
+ import type { LoadedComponents } from './extractor/bundleConfig'
9
9
 
10
10
  export type TamaguiPlatform = 'native' | 'web'
11
11
 
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import * as babelParser from '@babel/parser';
3
- import * as t from '@babel/types';
3
+ import type * as t from '@babel/types';
4
4
  export declare const parserOptions: babelParser.ParserOptions;
5
5
  export declare function babelParse(code: string | Buffer, fileName?: string): t.File;
6
6
  //# sourceMappingURL=babelParse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babelParse.d.ts","sourceRoot":"","sources":["../../src/extractor/babelParse.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAiBjC,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,aAGtC,CAAA;AAIF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,CAW3E"}
1
+ {"version":3,"file":"babelParse.d.ts","sourceRoot":"","sources":["../../src/extractor/babelParse.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAA;AAiBtC,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,aAGtC,CAAA;AAIF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,CAW3E"}
@@ -1,5 +1,5 @@
1
1
  import esbuild from 'esbuild';
2
- import { TamaguiPlatform } from '../types';
2
+ import type { TamaguiPlatform } from '../types';
3
3
  /**
4
4
  * For internal loading of new files
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI1C;;GAEG;AAEH,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GAAG;IAChE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,8BAA8B,CAAC,EAAE,OAAO,CAAA;CACzC,CAAA;AAmGD,wBAAsB,MAAM,CAC1B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,sDAKjC"}
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C;;GAEG;AAEH,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GAAG;IAChE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,8BAA8B,CAAC,EAAE,OAAO,CAAA;CACzC,CAAA;AAmGD,wBAAsB,MAAM,CAC1B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,sDAKjC"}
@@ -1,5 +1,5 @@
1
1
  import type { StaticConfig, TamaguiInternalConfig } from '@tamagui/web';
2
- import { TamaguiOptions } from '../types';
2
+ import type { TamaguiOptions } from '../types';
3
3
  type NameToPaths = {
4
4
  [key: string]: Set<string>;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"bundleConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/bundleConfig.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAKvE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAKzC,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,wBAAgB,uBAAuB,YAMtC;AAED,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,UAAQ;;;;sBAS5E;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE,cAAc;;;;eA4JvD;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,CAoI3B"}
1
+ {"version":3,"file":"bundleConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/bundleConfig.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAKvE,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,wBAAgB,uBAAuB,YAMtC;AAED,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,UAAQ;;;;sBAS5E;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE,cAAc;;;;eA4JvD;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,CAoI3B"}
@@ -1,6 +1,6 @@
1
- import { NodePath } from '@babel/traverse';
1
+ import type { NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
- import { TamaguiOptionsWithFileInfo } from '../types';
3
+ import type { TamaguiOptionsWithFileInfo } from '../types';
4
4
  export declare function createEvaluator({ props, staticNamespace, sourcePath, traversePath, shouldPrintDebug, }: {
5
5
  props: TamaguiOptionsWithFileInfo;
6
6
  staticNamespace: Record<string, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"createEvaluator.d.ts","sourceRoot":"","sources":["../../src/extractor/createEvaluator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAIjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAGrD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,eAAe,EACf,UAAU,EACV,YAAY,EACZ,gBAAgB,GACjB,EAAE;IACD,KAAK,EAAE,0BAA0B,CAAA;IACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;IACrC,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC,OAoBY,MAAM,SAGlB;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,KAAK,GAAG,OACtD,MAAM,SAOlB"}
1
+ {"version":3,"file":"createEvaluator.d.ts","sourceRoot":"","sources":["../../src/extractor/createEvaluator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAIjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAG1D,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,eAAe,EACf,UAAU,EACV,YAAY,EACZ,gBAAgB,GACjB,EAAE;IACD,KAAK,EAAE,0BAA0B,CAAA;IACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;IACrC,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC,OAoBY,MAAM,SAGlB;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,KAAK,GAAG,OACtD,MAAM,SAOlB"}
@@ -1,7 +1,7 @@
1
- import { NodePath } from '@babel/traverse';
1
+ import type { NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
3
  import type { ExtractorOptions, ExtractorParseProps, TamaguiOptions } from '../types';
4
- import { TamaguiProjectInfo } from './bundleConfig';
4
+ import type { TamaguiProjectInfo } from './bundleConfig';
5
5
  import { cleanupBeforeExit } from './getStaticBindingsForScope';
6
6
  export type Extractor = ReturnType<typeof createExtractor>;
7
7
  type FileOrPath = NodePath<t.Program> | t.File;
@@ -1 +1 @@
1
- {"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"AAGA,OAAiB,EAAE,QAAQ,EAAmB,MAAM,iBAAiB,CAAA;AACrE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAcjC,OAAO,KAAK,EAGV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EAGf,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAcnD,OAAO,EAAE,iBAAiB,EAA6B,MAAM,6BAA6B,CAAA;AAuB1F,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,KAAK,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAQ9C,wBAAgB,eAAe,CAC7B,EAAE,MAAgB,EAAE,QAAgB,EAAE,GAAE,gBAAsC;;;;;yBAsDnD,cAAc;6BAPhB,cAAc;;mBAwBtB,UAAU,SAAS,mBAAmB;;;;;;;eAIpC,UAAU,SAAS,mBAAmB;;;;;;;EA4rE1D"}
1
+ {"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAcjC,OAAO,KAAK,EAGV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EAGf,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAcxD,OAAO,EAAE,iBAAiB,EAA6B,MAAM,6BAA6B,CAAA;AAuB1F,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,KAAK,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAQ9C,wBAAgB,eAAe,CAC7B,EAAE,MAAgB,EAAE,QAAgB,EAAE,GAAE,gBAAsC;;;;;yBAsDnD,cAAc;6BAPhB,cAAc;;mBAwBtB,UAAU,SAAS,mBAAmB;;;;;;;eAIpC,UAAU,SAAS,mBAAmB;;;;;;;EA4rE1D"}
@@ -1,4 +1,4 @@
1
- import { NodePath } from '@babel/traverse';
1
+ import type { NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
3
  export declare function ensureImportingConcat(path: NodePath<t.Program>): void;
4
4
  //# sourceMappingURL=ensureImportingConcat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ensureImportingConcat.d.ts","sourceRoot":"","sources":["../../src/extractor/ensureImportingConcat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAIjC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QA8B9D"}
1
+ {"version":3,"file":"ensureImportingConcat.d.ts","sourceRoot":"","sources":["../../src/extractor/ensureImportingConcat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAIjC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QA8B9D"}
@@ -1,6 +1,6 @@
1
- import { NodePath } from '@babel/traverse';
1
+ import type { NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
- import { TamaguiInternalConfig } from '@tamagui/core';
3
+ import type { TamaguiInternalConfig } from '@tamagui/core';
4
4
  import type { StyleObject, TamaguiOptionsWithFileInfo, Ternary } from '../types';
5
5
  export declare function extractMediaStyle(props: TamaguiOptionsWithFileInfo, ternary: Ternary, jsxPath: NodePath<t.JSXElement>, tamaguiConfig: TamaguiInternalConfig, sourcePath: string, importance?: number, shouldPrintDebug?: boolean | 'verbose'): {
6
6
  mediaStyles: StyleObject[];
@@ -1 +1 @@
1
- {"version":3,"file":"extractMediaStyle.d.ts","sourceRoot":"","sources":["../../src/extractor/extractMediaStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,EAAE,qBAAqB,EAAoB,MAAM,eAAe,CAAA;AAIvE,OAAO,KAAK,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAGhF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,0BAA0B,EACjC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC/B,aAAa,EAAE,qBAAqB,EACpC,UAAU,EAAE,MAAM,EAClB,UAAU,SAAI,EACd,gBAAgB,GAAE,OAAO,GAAG,SAAiB;;;SA6D9C;AA0FD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,0BAA0B,EACjC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC/B,IAAI,EAAE,CAAC,CAAC,UAAU,EAClB,UAAU,EAAE,MAAM,WAenB"}
1
+ {"version":3,"file":"extractMediaStyle.d.ts","sourceRoot":"","sources":["../../src/extractor/extractMediaStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAK1D,OAAO,KAAK,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAGhF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,0BAA0B,EACjC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC/B,aAAa,EAAE,qBAAqB,EACpC,UAAU,EAAE,MAAM,EAClB,UAAU,SAAI,EACd,gBAAgB,GAAE,OAAO,GAAG,SAAiB;;;SA6D9C;AA0FD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,0BAA0B,EACjC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC/B,IAAI,EAAE,CAAC,CAAC,UAAU,EAClB,UAAU,EAAE,MAAM,WAenB"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import * as t from '@babel/types';
3
3
  import type { TamaguiOptions } from '../types';
4
- import { Extractor } from './createExtractor';
4
+ import type { Extractor } from './createExtractor';
5
5
  export type ExtractedResponse = {
6
6
  js: string | Buffer;
7
7
  styles: string;
@@ -1 +1 @@
1
- {"version":3,"file":"extractToClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToClassNames.ts"],"names":[],"mappings":";AAKA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAKjC,OAAO,KAAK,EAAgC,cAAc,EAAW,MAAM,UAAU,CAAA;AAGrF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAiB7C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,CAAC,CAAC,IAAI,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;CACT,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,cAAc,CAAA;IACvB,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC,CAAA;AAED,wBAAsB,mBAAmB,CAAC,EACxC,SAAS,EACT,MAAM,EACN,UAAU,EACV,OAAO,EACP,gBAAgB,GACjB,EAAE,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CA8a9D"}
1
+ {"version":3,"file":"extractToClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToClassNames.ts"],"names":[],"mappings":";AAKA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAKjC,OAAO,KAAK,EAAgC,cAAc,EAAW,MAAM,UAAU,CAAA;AAGrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAiBlD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,CAAC,CAAC,IAAI,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;CACT,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,cAAc,CAAA;IACvB,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC,CAAA;AAED,wBAAsB,mBAAmB,CAAC,EACxC,SAAS,EACT,MAAM,EACN,UAAU,EACV,OAAO,EACP,gBAAgB,GACjB,EAAE,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CA8a9D"}
@@ -1,4 +1,4 @@
1
- import { NodePath } from '@babel/traverse';
2
- import * as t from '@babel/types';
1
+ import type { NodePath } from '@babel/traverse';
2
+ import type * as t from '@babel/types';
3
3
  export declare function findTopmostFunction(jsxPath: NodePath<t.JSXElement>): NodePath<any> | null;
4
4
  //# sourceMappingURL=findTopmostFunction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"findTopmostFunction.d.ts","sourceRoot":"","sources":["../../src/extractor/findTopmostFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,wBAoBlE"}
1
+ {"version":3,"file":"findTopmostFunction.d.ts","sourceRoot":"","sources":["../../src/extractor/findTopmostFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAA;AAEtC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,wBAoBlE"}
@@ -1,5 +1,5 @@
1
- import { TamaguiOptions } from '@tamagui/types';
2
- import { BundledConfig } from './bundleConfig';
1
+ import type { TamaguiOptions } from '@tamagui/types';
2
+ import type { BundledConfig } from './bundleConfig';
3
3
  /**
4
4
  * Sort of a super-set of bundleConfig(), this code needs some refactoring ideally
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"generateTamaguiStudioConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/generateTamaguiStudioConfig.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAK/C,OAAO,EAAE,aAAa,EAAoB,MAAM,gBAAgB,CAAA;AAKhE;;GAEG;AAEH,wBAAsB,2BAA2B,CAC/C,cAAc,EAAE,cAAc,EAC9B,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,EAC/B,OAAO,UAAQ,iBAiBhB;AAED,wBAAgB,+BAA+B,CAC7C,eAAe,EAAE,cAAc,EAC/B,MAAM,EAAE,aAAa,QAatB;AAED,wBAAsB,qBAAqB,CACzC,cAAc,EAAE,cAAc,EAC9B,KAAK,UAAQ,gCAmCd"}
1
+ {"version":3,"file":"generateTamaguiStudioConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/generateTamaguiStudioConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAKpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAMnD;;GAEG;AAEH,wBAAsB,2BAA2B,CAC/C,cAAc,EAAE,cAAc,EAC9B,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,EAC/B,OAAO,UAAQ,iBAiBhB;AAED,wBAAgB,+BAA+B,CAC7C,eAAe,EAAE,cAAc,EAC/B,MAAM,EAAE,aAAa,QAatB;AAED,wBAAsB,qBAAqB,CACzC,cAAc,EAAE,cAAc,EAC9B,KAAK,UAAQ,gCAmCd"}
@@ -1,3 +1,3 @@
1
- import { TamaguiOptions } from '../types';
1
+ import type { TamaguiOptions } from '../types';
2
2
  export declare function getPrefixLogs(options?: TamaguiOptions): string;
3
3
  //# sourceMappingURL=getPrefixLogs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPrefixLogs.d.ts","sourceRoot":"","sources":["../../src/extractor/getPrefixLogs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,UAErD"}
1
+ {"version":3,"file":"getPrefixLogs.d.ts","sourceRoot":"","sources":["../../src/extractor/getPrefixLogs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,UAErD"}
@@ -1,4 +1,4 @@
1
- import { NodePath } from '@babel/traverse';
1
+ import type { NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
3
  export declare function cleanupBeforeExit(): void;
4
4
  export declare function getStaticBindingsForScope(scope: NodePath<t.JSXElement>['scope'], whitelist: string[] | undefined, sourcePath: string, bindingCache: Record<string, string | null>, shouldPrintDebug: boolean | 'verbose'): Promise<Record<string, any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"getStaticBindingsForScope.d.ts","sourceRoot":"","sources":["../../src/extractor/getStaticBindingsForScope.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAmCjC,wBAAgB,iBAAiB,SAQhC;AAyCD,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EACtC,SAAS,sBAAe,EACxB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,EAC3C,gBAAgB,EAAE,OAAO,GAAG,SAAS,GACpC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAsI9B"}
1
+ {"version":3,"file":"getStaticBindingsForScope.d.ts","sourceRoot":"","sources":["../../src/extractor/getStaticBindingsForScope.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAmCjC,wBAAgB,iBAAiB,SAQhC;AAyCD,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EACtC,SAAS,sBAAe,EACxB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,EAC3C,gBAAgB,EAAE,OAAO,GAAG,SAAS,GACpC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAsI9B"}
@@ -1,3 +1,3 @@
1
- import { TamaguiOptions } from '../types';
1
+ import type { TamaguiOptions } from '../types';
2
2
  export declare function getTamaguiConfigPathFromOptionsConfig(config: NonNullable<TamaguiOptions['config']>): string;
3
3
  //# sourceMappingURL=getTamaguiConfigPathFromOptionsConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTamaguiConfigPathFromOptionsConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/getTamaguiConfigPathFromOptionsConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,UAO9C"}
1
+ {"version":3,"file":"getTamaguiConfigPathFromOptionsConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/getTamaguiConfigPathFromOptionsConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,UAO9C"}
@@ -1,4 +1,4 @@
1
- import { NodePath } from '@babel/traverse';
1
+ import type { NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
3
  export declare function hoistClassNames(path: NodePath<t.JSXElement>, existing: {
4
4
  [key: string]: t.Identifier;
@@ -1 +1 @@
1
- {"version":3,"file":"hoistClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/hoistClassNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC5B,QAAQ,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,UAAU,CAAA;CAAE,EACzC,IAAI,EAAE,CAAC,CAAC,UAAU,OA0CnB"}
1
+ {"version":3,"file":"hoistClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/hoistClassNames.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC5B,QAAQ,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,UAAU,CAAA;CAAE,EACzC,IAAI,EAAE,CAAC,CAAC,UAAU,OA0CnB"}
@@ -1,4 +1,4 @@
1
- import { CLIResolvedOptions, CLIUserOptions, TamaguiOptions } from '@tamagui/types';
1
+ import type { CLIResolvedOptions, CLIUserOptions, TamaguiOptions } from '@tamagui/types';
2
2
  import { TamaguiProjectInfo } from './bundleConfig';
3
3
  export declare function loadTamagui(propsIn: Partial<TamaguiOptions>): Promise<TamaguiProjectInfo | null>;
4
4
  export declare function loadTamaguiSync({ forceExports, cacheKey, ...propsIn }: Partial<TamaguiOptions> & {
@@ -1 +1 @@
1
- {"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadTamagui.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AASnF,OAAO,EACL,kBAAkB,EAInB,MAAM,gBAAgB,CAAA;AAgBvB,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAC/B,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAyCpC;AAkCD,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,kBAAkB,CAiHrB;AAED,wBAAsB,UAAU,CAAC,EAC/B,IAAoB,EACpB,YAA8B,EAC9B,cAAc,EACd,IAAI,EACJ,KAAK,GACN,GAAE,OAAO,CAAC,cAAc,CAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA6B5D;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,UAW5D;AA0BD,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAE7B,wBAAsB,kBAAkB,CAAC,cAAc,EAAE,cAAc;;GAyCtE"}
1
+ {"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadTamagui.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AASxF,OAAO,EACL,kBAAkB,EAInB,MAAM,gBAAgB,CAAA;AAgBvB,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAC/B,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAyCpC;AAkCD,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,kBAAkB,CAiHrB;AAED,wBAAsB,UAAU,CAAC,EAC/B,IAAoB,EACpB,YAA8B,EAC9B,cAAc,EACd,IAAI,EACJ,KAAK,GACN,GAAE,OAAO,CAAC,cAAc,CAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA6B5D;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,UAW5D;AA0BD,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAE7B,wBAAsB,kBAAkB,CAAC,cAAc,EAAE,cAAc;;GAyCtE"}
@@ -1,3 +1,3 @@
1
- import { Ternary } from '../types';
1
+ import type { Ternary } from '../types';
2
2
  export declare function normalizeTernaries(ternaries: Ternary[]): Ternary[];
3
3
  //# sourceMappingURL=normalizeTernaries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeTernaries.d.ts","sourceRoot":"","sources":["../../src/extractor/normalizeTernaries.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,OAAO,EAAE,aA6DtD"}
1
+ {"version":3,"file":"normalizeTernaries.d.ts","sourceRoot":"","sources":["../../src/extractor/normalizeTernaries.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,OAAO,EAAE,aA6DtD"}
@@ -1,3 +1,3 @@
1
- import { NodePath } from '@babel/traverse';
1
+ import type { NodePath } from '@babel/traverse';
2
2
  export declare function removeUnusedHooks(compFn: NodePath<any>, shouldPrintDebug: boolean | 'verbose'): void;
3
3
  //# sourceMappingURL=removeUnusedHooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeUnusedHooks.d.ts","sourceRoot":"","sources":["../../src/extractor/removeUnusedHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAQ1C,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,EACrB,gBAAgB,EAAE,OAAO,GAAG,SAAS,QAwEtC"}
1
+ {"version":3,"file":"removeUnusedHooks.d.ts","sourceRoot":"","sources":["../../src/extractor/removeUnusedHooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAQ/C,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,EACrB,gBAAgB,EAAE,OAAO,GAAG,SAAS,QAwEtC"}
@@ -1,3 +1,3 @@
1
- import { TamaguiPlatform } from '../types';
1
+ import type { TamaguiPlatform } from '../types';
2
2
  export declare function requireTamaguiCore(platform: TamaguiPlatform, ogRequire?: Function): typeof import('@tamagui/core');
3
3
  //# sourceMappingURL=requireTamaguiCore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requireTamaguiCore.d.ts","sourceRoot":"","sources":["../../src/helpers/requireTamaguiCore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EACzB,SAAS,GAAE,QAAkB,GAC5B,cAAc,eAAe,CAAC,CAKhC"}
1
+ {"version":3,"file":"requireTamaguiCore.d.ts","sourceRoot":"","sources":["../../src/helpers/requireTamaguiCore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EACzB,SAAS,GAAE,QAAkB,GAC5B,cAAc,eAAe,CAAC,CAKhC"}
@@ -1,4 +1,4 @@
1
- import { TamaguiPlatform } from './types';
1
+ import type { TamaguiPlatform } from './types';
2
2
  export declare const getNameToPaths: () => {};
3
3
  export declare function setRequireResult(name: string, result: any): void;
4
4
  export declare function registerRequire(platform: TamaguiPlatform, { proxyWormImports }?: {
@@ -1 +1 @@
1
- {"version":3,"file":"registerRequire.d.ts","sourceRoot":"","sources":["../src/registerRequire.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAKzC,eAAO,MAAM,cAAc,UAAoB,CAAA;AAc/C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAEzD;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,eAAe,EACzB,EAAE,gBAAgB,EAAE;;CAEnB;2BAsB6B,GAAG,QAAQ,MAAM;;EA2HhD"}
1
+ {"version":3,"file":"registerRequire.d.ts","sourceRoot":"","sources":["../src/registerRequire.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C,eAAO,MAAM,cAAc,UAAoB,CAAA;AAc/C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAEzD;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,eAAe,EACzB,EAAE,gBAAgB,EAAE;;CAEnB;2BAsB6B,GAAG,QAAQ,MAAM;;EA2HhD"}
package/types/server.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { TamaguiOptions } from './types';
1
+ import type { TamaguiOptions } from './types';
2
2
  export declare function startServer(options: TamaguiOptions): Promise<void>;
3
3
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIxC,wBAAsB,WAAW,CAAC,OAAO,EAAE,cAAc,iBAmBxD"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,wBAAsB,WAAW,CAAC,OAAO,EAAE,cAAc,iBAmBxD"}