@tamagui/static 1.0.1-beta.104 → 1.0.1-beta.105

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 (52) hide show
  1. package/dist/cjs/constants.js +4 -0
  2. package/dist/cjs/constants.js.map +2 -2
  3. package/dist/cjs/extractor/createEvaluator.js.map +1 -1
  4. package/dist/cjs/extractor/defaultTamaguiConfig.js +177 -0
  5. package/dist/cjs/extractor/defaultTamaguiConfig.js.map +7 -0
  6. package/dist/cjs/extractor/loadTamagui.js +46 -66
  7. package/dist/cjs/extractor/loadTamagui.js.map +2 -2
  8. package/dist/cjs/index.js +1 -0
  9. package/dist/cjs/index.js.map +2 -2
  10. package/dist/cjs/require.js +99 -0
  11. package/dist/cjs/require.js.map +7 -0
  12. package/dist/esm/constants.js +3 -0
  13. package/dist/esm/constants.js.map +2 -2
  14. package/dist/esm/extractor/createEvaluator.js.map +1 -1
  15. package/dist/esm/extractor/defaultTamaguiConfig.js +155 -0
  16. package/dist/esm/extractor/defaultTamaguiConfig.js.map +7 -0
  17. package/dist/esm/extractor/loadTamagui.js +46 -66
  18. package/dist/esm/extractor/loadTamagui.js.map +2 -2
  19. package/dist/esm/index.js +1 -0
  20. package/dist/esm/index.js.map +2 -2
  21. package/dist/esm/require.js +74 -0
  22. package/dist/esm/require.js.map +7 -0
  23. package/dist/jsx/constants.js +3 -0
  24. package/dist/jsx/constants.js.map +2 -2
  25. package/dist/jsx/extractor/createEvaluator.js.map +1 -1
  26. package/dist/jsx/extractor/defaultTamaguiConfig.js +142 -0
  27. package/dist/jsx/extractor/defaultTamaguiConfig.js.map +7 -0
  28. package/dist/jsx/extractor/loadTamagui.js +46 -66
  29. package/dist/jsx/extractor/loadTamagui.js.map +2 -2
  30. package/dist/jsx/index.js +1 -0
  31. package/dist/jsx/index.js.map +2 -2
  32. package/dist/jsx/require.js +74 -0
  33. package/dist/jsx/require.js.map +7 -0
  34. package/package.json +9 -8
  35. package/src/constants.ts +2 -0
  36. package/src/extractor/createEvaluator.ts +1 -1
  37. package/src/extractor/defaultTamaguiConfig.ts +149 -0
  38. package/src/extractor/loadTamagui.ts +52 -85
  39. package/src/index.ts +1 -0
  40. package/src/require.ts +93 -0
  41. package/types/constants.d.ts +1 -0
  42. package/types/constants.d.ts.map +1 -1
  43. package/types/extractor/createEvaluator.d.ts +1 -1
  44. package/types/extractor/createEvaluator.d.ts.map +1 -1
  45. package/types/extractor/defaultTamaguiConfig.d.ts +83 -0
  46. package/types/extractor/defaultTamaguiConfig.d.ts.map +1 -0
  47. package/types/extractor/loadTamagui.d.ts +1 -1
  48. package/types/extractor/loadTamagui.d.ts.map +1 -1
  49. package/types/index.d.ts +1 -0
  50. package/types/index.d.ts.map +1 -1
  51. package/types/require.d.ts +4 -0
  52. package/types/require.d.ts.map +1 -0
@@ -1,8 +1,12 @@
1
1
  import { join } from 'path'
2
2
 
3
- import type { StaticConfig, TamaguiComponent, TamaguiInternalConfig } from '@tamagui/core'
3
+ import type { StaticConfig, TamaguiComponent, TamaguiInternalConfig } from '@tamagui/core-node'
4
4
  import { createTamagui } from '@tamagui/core-node'
5
5
 
6
+ import { SHOULD_DEBUG } from '../constants'
7
+ import { getNameToPaths, registerRequire, unregisterRequire } from '../require'
8
+ import { config as defaultTamaguiConfig } from './defaultTamaguiConfig'
9
+
6
10
  let loadedTamagui: any = null
7
11
 
8
12
  type NameToPaths = {
@@ -16,6 +20,8 @@ export type TamaguiProjectInfo = {
16
20
  }
17
21
 
18
22
  export function loadTamagui(props: { components: string[]; config: string }): TamaguiProjectInfo {
23
+ console.trace('load', !!loadedTamagui)
24
+
19
25
  if (loadedTamagui) {
20
26
  return loadedTamagui
21
27
  }
@@ -37,102 +43,62 @@ export function loadTamagui(props: { components: string[]; config: string }): Ta
37
43
  globalThis['__DEV__'] = process.env.NODE_ENV === 'development'
38
44
  }
39
45
 
40
- const proxyWorm = require('@tamagui/proxy-worm')
41
- const rnw = require('react-native-web')
42
- const Mod = require('module')
43
- const og = Mod.prototype.require
44
- const nameToPaths: NameToPaths = {}
46
+ registerRequire()
45
47
 
46
- Mod.prototype.require = function (path: string) {
47
- if (path.endsWith('.css')) {
48
- return {}
49
- }
50
- if (
51
- path === '@gorhom/bottom-sheet' ||
52
- path.startsWith('react-native-reanimated') ||
53
- path === 'expo-linear-gradient'
54
- ) {
55
- return proxyWorm
56
- }
57
- if (
58
- path.startsWith('react-native') &&
59
- // allow our rnw.tsx imports through
60
- !path.startsWith('react-native-web/dist/cjs/exports')
61
- ) {
62
- return rnw
63
- }
64
- try {
65
- const out = og.apply(this, arguments)
66
- if (!nameToPaths[path]) {
67
- if (out && typeof out === 'object') {
68
- for (const key in out) {
69
- try {
70
- const conf = out[key]?.staticConfig as StaticConfig
71
- if (conf) {
72
- if (conf.componentName) {
73
- nameToPaths[conf.componentName] ??= new Set()
74
- const fullName = path.startsWith('.')
75
- ? join(`${this.path.replace(/dist(\/cjs)?/, 'src')}`, path)
76
- : path
77
- nameToPaths[conf.componentName].add(fullName)
78
- } else {
79
- // console.log('no name component', path)
80
- }
81
- }
82
- } catch {
83
- // ok
84
- }
85
- }
86
- }
87
- }
88
- return out
89
- } catch (err: any) {
90
- console.error('Tamagui error loading file:\n', path, err.message, '\n', err.stack)
91
- // avoid infinite loops
92
- process.exit(1)
93
- }
94
- }
48
+ try {
49
+ // import config
50
+ const exp = require(configPath)
51
+ const tamaguiConfig = (exp['default'] || exp) as TamaguiInternalConfig
95
52
 
96
- // import config
97
- const exp = require(configPath)
98
- const tamaguiConfig = (exp['default'] || exp) as TamaguiInternalConfig
99
-
100
- if (!tamaguiConfig || !tamaguiConfig.parsed) {
101
- try {
53
+ if (!tamaguiConfig || !tamaguiConfig.parsed) {
102
54
  const confPath = require.resolve(configPath)
103
55
  console.log(`Received:`, tamaguiConfig)
104
56
  throw new Error(`Can't find valid config in ${confPath}`)
105
- } catch (err) {
106
- throw err
107
57
  }
108
- }
109
58
 
110
- // import components
111
- const components = {}
112
- for (const moduleName of props.components) {
113
- const exported = require(moduleName)
114
- for (const Name in exported) {
115
- const val = exported[Name]
116
- const staticConfig = val?.staticConfig as StaticConfig | undefined
117
- if (staticConfig) {
118
- // remove non-stringifyable
119
- const { Component, reactNativeWebComponent, ...sc } = staticConfig
120
- Object.assign(components, { [Name]: { staticConfig: sc } })
59
+ // import components
60
+ const components = {}
61
+ for (const moduleName of props.components) {
62
+ const exported = require(moduleName)
63
+ for (const Name in exported) {
64
+ const val = exported[Name]
65
+ const staticConfig = val?.staticConfig as StaticConfig | undefined
66
+ if (staticConfig) {
67
+ // remove non-stringifyable
68
+ const { Component, reactNativeWebComponent, ...sc } = staticConfig
69
+ Object.assign(components, { [Name]: { staticConfig: sc } })
70
+ }
121
71
  }
122
72
  }
123
- }
124
73
 
125
- // undo shims
126
- process.env.IS_STATIC = undefined
127
- Mod.prototype.require = og
74
+ // undo shims
75
+ process.env.IS_STATIC = undefined
128
76
 
129
- // set up core-node
130
- createTamagui(tamaguiConfig as any)
77
+ // set up core-node
78
+ createTamagui(tamaguiConfig as any)
131
79
 
132
- loadedTamagui = {
133
- components,
134
- tamaguiConfig,
135
- nameToPaths,
80
+ loadedTamagui = {
81
+ components,
82
+ tamaguiConfig,
83
+ nameToPaths: getNameToPaths(),
84
+ }
85
+ } catch (err) {
86
+ if (err instanceof Error) {
87
+ console.warn(
88
+ `Error loading tamagui.config.ts (set DEBUG=tamagui to see full stack), running tamagui without custom config`
89
+ )
90
+ console.log(`\n\n ${err.message}\n\n`)
91
+ if (SHOULD_DEBUG) {
92
+ console.log(err.stack)
93
+ }
94
+ } else {
95
+ console.error(`Error loading tamagui.config.ts`, err)
96
+ }
97
+ return {
98
+ components: {},
99
+ tamaguiConfig: defaultTamaguiConfig,
100
+ nameToPaths: {},
101
+ }
136
102
  }
137
103
 
138
104
  return loadedTamagui
@@ -141,5 +107,6 @@ export function loadTamagui(props: { components: string[]; config: string }): Ta
141
107
  throw err
142
108
  } finally {
143
109
  unregister()
110
+ unregisterRequire()
144
111
  }
145
112
  }
package/src/index.ts CHANGED
@@ -8,3 +8,4 @@ export * from './extractor/extractToClassNames'
8
8
  export * from './extractor/extractHelpers'
9
9
  export * from '@tamagui/patch-rnw'
10
10
  export * from './extractor/loadTamagui'
11
+ export * from './require'
package/src/require.ts ADDED
@@ -0,0 +1,93 @@
1
+ import { join } from 'path'
2
+
3
+ import type { StaticConfig } from '@tamagui/core-node'
4
+
5
+ import { SHOULD_DEBUG } from './constants'
6
+
7
+ const nameToPaths = {}
8
+ const Mod = require('module')
9
+ const og = Mod.prototype.require
10
+ globalThis['ogRequire'] = og
11
+
12
+ export const getNameToPaths = () => nameToPaths
13
+
14
+ let tries = 0
15
+ setInterval(() => {
16
+ tries = 0
17
+ }, 500)
18
+
19
+ export function registerRequire() {
20
+ if (Mod.prototype.require !== globalThis['ogRequire']) {
21
+ console.warn('didnt unregister before re-registering')
22
+ process.exit(1)
23
+ }
24
+
25
+ const proxyWorm = require('@tamagui/proxy-worm')
26
+ const rnw = require('react-native-web')
27
+
28
+ Mod.prototype.require = function (path: string) {
29
+ if (SHOULD_DEBUG) {
30
+ console.log('tamagui require', path)
31
+ }
32
+ if (path.endsWith('.css')) {
33
+ return {}
34
+ }
35
+ if (
36
+ path === '@gorhom/bottom-sheet' ||
37
+ path.startsWith('react-native-reanimated') ||
38
+ path === 'expo-linear-gradient'
39
+ ) {
40
+ return proxyWorm
41
+ }
42
+ if (
43
+ path.startsWith('react-native') &&
44
+ // allow our rnw.tsx imports through
45
+ !path.startsWith('react-native-web/dist/cjs/exports')
46
+ ) {
47
+ return rnw
48
+ // return og('react-native-web')
49
+ }
50
+ try {
51
+ const out = og.apply(this, arguments)
52
+ if (!nameToPaths[path]) {
53
+ if (out && typeof out === 'object') {
54
+ for (const key in out) {
55
+ try {
56
+ const conf = out[key]?.staticConfig as StaticConfig
57
+ if (conf) {
58
+ if (conf.componentName) {
59
+ nameToPaths[conf.componentName] ??= new Set()
60
+ const fullName = path.startsWith('.')
61
+ ? join(`${this.path.replace(/dist(\/cjs)?/, 'src')}`, path)
62
+ : path
63
+ nameToPaths[conf.componentName].add(fullName)
64
+ } else {
65
+ // console.log('no name component', path)
66
+ }
67
+ }
68
+ } catch {
69
+ // ok
70
+ }
71
+ }
72
+ }
73
+ }
74
+ return out
75
+ } catch (err: any) {
76
+ console.error(
77
+ `Tamagui failed requiring ${path} from your tamagui.config.ts file, ignoring (set DEBUG=tamagui to see stack)\n`,
78
+ err.message
79
+ )
80
+ if (SHOULD_DEBUG) {
81
+ console.log(err.stack)
82
+ }
83
+ if (++tries > 10) {
84
+ // avoid infinite loops
85
+ process.exit(1)
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
+ export function unregisterRequire() {
92
+ Mod.prototype.require = og
93
+ }
@@ -3,4 +3,5 @@ export declare const MEDIA_SEP = "_";
3
3
  export declare const cacheDir: any;
4
4
  export declare const FAILED_EVAL: unique symbol;
5
5
  export declare const CONCAT_CLASSNAME_IMPORT = "concatClassName";
6
+ export declare const SHOULD_DEBUG: boolean | undefined;
6
7
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gBAAgB,CAAA;AAI1C,eAAO,MAAM,SAAS,MAAM,CAAA;AAG5B,eAAO,MAAM,QAAQ,KAAkD,CAAA;AAEvE,eAAO,MAAM,WAAW,eAA8B,CAAA;AACtD,eAAO,MAAM,uBAAuB,oBAAoB,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gBAAgB,CAAA;AAI1C,eAAO,MAAM,SAAS,MAAM,CAAA;AAG5B,eAAO,MAAM,QAAQ,KAAkD,CAAA;AAEvE,eAAO,MAAM,WAAW,eAA8B,CAAA;AACtD,eAAO,MAAM,uBAAuB,oBAAoB,CAAA;AAExD,eAAO,MAAM,YAAY,qBAAwE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
- import type { TamaguiConfig } from '@tamagui/core';
3
+ import type { TamaguiConfig } from '@tamagui/core-node';
4
4
  export declare function createEvaluator({ tamaguiConfig, staticNamespace, sourcePath, traversePath, shouldPrintDebug, }: {
5
5
  tamaguiConfig: TamaguiConfig;
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;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAQlD,wBAAgB,eAAe,CAAC,EAC9B,aAAa,EACb,eAAe,EACf,UAAU,EACV,YAAY,EACZ,gBAAgB,GACjB,EAAE;IACD,aAAa,EAAE,aAAa,CAAA;IAC5B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;IACrC,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC,OAoCY,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,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAQvD,wBAAgB,eAAe,CAAC,EAC9B,aAAa,EACb,eAAe,EACf,UAAU,EACV,YAAY,EACZ,gBAAgB,GACjB,EAAE;IACD,aAAa,EAAE,aAAa,CAAA;IAC5B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;IACrC,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC,OAoCY,MAAM,SAGlB;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,KAAK,GAAG,OACtD,MAAM,SAOlB"}
@@ -0,0 +1,83 @@
1
+ import { TamaguiInternalConfig } from '@tamagui/core-node';
2
+ export declare const tokens: {
3
+ color: {
4
+ white: import("@tamagui/core-node").Variable<any>;
5
+ black: import("@tamagui/core-node").Variable<any>;
6
+ };
7
+ space: {
8
+ [x: string]: import("@tamagui/core-node").Variable<any>;
9
+ };
10
+ size: {
11
+ 0: import("@tamagui/core-node").Variable<any>;
12
+ 0.25: import("@tamagui/core-node").Variable<any>;
13
+ 0.5: import("@tamagui/core-node").Variable<any>;
14
+ 0.75: import("@tamagui/core-node").Variable<any>;
15
+ 1: import("@tamagui/core-node").Variable<any>;
16
+ 1.5: import("@tamagui/core-node").Variable<any>;
17
+ 2: import("@tamagui/core-node").Variable<any>;
18
+ 2.5: import("@tamagui/core-node").Variable<any>;
19
+ 3: import("@tamagui/core-node").Variable<any>;
20
+ 3.5: import("@tamagui/core-node").Variable<any>;
21
+ 4: import("@tamagui/core-node").Variable<any>;
22
+ true: import("@tamagui/core-node").Variable<any>;
23
+ 4.5: import("@tamagui/core-node").Variable<any>;
24
+ 5: import("@tamagui/core-node").Variable<any>;
25
+ 5.5: import("@tamagui/core-node").Variable<any>;
26
+ 6: import("@tamagui/core-node").Variable<any>;
27
+ 6.5: import("@tamagui/core-node").Variable<any>;
28
+ 7: import("@tamagui/core-node").Variable<any>;
29
+ 7.6: import("@tamagui/core-node").Variable<any>;
30
+ 8: import("@tamagui/core-node").Variable<any>;
31
+ 8.5: import("@tamagui/core-node").Variable<any>;
32
+ 9: import("@tamagui/core-node").Variable<any>;
33
+ 9.5: import("@tamagui/core-node").Variable<any>;
34
+ 10: import("@tamagui/core-node").Variable<any>;
35
+ 11: import("@tamagui/core-node").Variable<any>;
36
+ 12: import("@tamagui/core-node").Variable<any>;
37
+ 13: import("@tamagui/core-node").Variable<any>;
38
+ 14: import("@tamagui/core-node").Variable<any>;
39
+ 15: import("@tamagui/core-node").Variable<any>;
40
+ 16: import("@tamagui/core-node").Variable<any>;
41
+ 17: import("@tamagui/core-node").Variable<any>;
42
+ 18: import("@tamagui/core-node").Variable<any>;
43
+ 19: import("@tamagui/core-node").Variable<any>;
44
+ 20: import("@tamagui/core-node").Variable<any>;
45
+ };
46
+ radius: {
47
+ 0: import("@tamagui/core-node").Variable<any>;
48
+ 1: import("@tamagui/core-node").Variable<any>;
49
+ 2: import("@tamagui/core-node").Variable<any>;
50
+ 3: import("@tamagui/core-node").Variable<any>;
51
+ 4: import("@tamagui/core-node").Variable<any>;
52
+ 5: import("@tamagui/core-node").Variable<any>;
53
+ 6: import("@tamagui/core-node").Variable<any>;
54
+ 7: import("@tamagui/core-node").Variable<any>;
55
+ 8: import("@tamagui/core-node").Variable<any>;
56
+ 9: import("@tamagui/core-node").Variable<any>;
57
+ 10: import("@tamagui/core-node").Variable<any>;
58
+ 11: import("@tamagui/core-node").Variable<any>;
59
+ 12: import("@tamagui/core-node").Variable<any>;
60
+ };
61
+ zIndex: {
62
+ 0: import("@tamagui/core-node").Variable<any>;
63
+ 1: import("@tamagui/core-node").Variable<any>;
64
+ 2: import("@tamagui/core-node").Variable<any>;
65
+ 3: import("@tamagui/core-node").Variable<any>;
66
+ 4: import("@tamagui/core-node").Variable<any>;
67
+ 5: import("@tamagui/core-node").Variable<any>;
68
+ };
69
+ };
70
+ export declare const config: TamaguiInternalConfig<import("@tamagui/core-node").CreateTokens<import("@tamagui/core-node").VariableVal>, {
71
+ [key: string]: Partial<import("@tamagui/core-node").TamaguiBaseTheme> & {
72
+ [key: string]: import("@tamagui/core-node").VariableVal;
73
+ };
74
+ }, {}, {
75
+ [x: string]: {
76
+ [key: string]: string | number;
77
+ };
78
+ }, {
79
+ [key: string]: string | {
80
+ [key: string]: any;
81
+ };
82
+ }, import("@tamagui/core-node").GenericFonts>;
83
+ //# sourceMappingURL=defaultTamaguiConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultTamaguiConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/defaultTamaguiConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAA2C,MAAM,oBAAoB,CAAA;AAmGnG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASjB,CAAA;AAaF,eAAO,MAAM,MAAM;;;;;;;;;;;;6CA2BQ,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { TamaguiComponent, TamaguiInternalConfig } from '@tamagui/core';
1
+ import type { TamaguiComponent, TamaguiInternalConfig } from '@tamagui/core-node';
2
2
  declare type NameToPaths = {
3
3
  [key: string]: Set<string>;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadTamagui.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAK1F,aAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAA;AAED,oBAAY,kBAAkB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAC5C,aAAa,EAAE,qBAAqB,CAAA;IACpC,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CA+H/F"}
1
+ {"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadTamagui.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAS/F,aAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAA;AAED,oBAAY,kBAAkB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAC5C,aAAa,EAAE,qBAAqB,CAAA;IACpC,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CA0F/F"}
package/types/index.d.ts CHANGED
@@ -6,4 +6,5 @@ export * from './extractor/extractToClassNames';
6
6
  export * from './extractor/extractHelpers';
7
7
  export * from '@tamagui/patch-rnw';
8
8
  export * from './extractor/loadTamagui';
9
+ export * from './require';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,cAAc,aAAa,CAAA;AAC3B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,cAAc,aAAa,CAAA;AAC3B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,WAAW,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const getNameToPaths: () => {};
2
+ export declare function registerRequire(): void;
3
+ export declare function unregisterRequire(): void;
4
+ //# sourceMappingURL=require.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"require.d.ts","sourceRoot":"","sources":["../src/require.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,cAAc,UAAoB,CAAA;AAO/C,wBAAgB,eAAe,SAsE9B;AAED,wBAAgB,iBAAiB,SAEhC"}