@vxrn/vite-flow 1.1.370 → 1.1.372

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.
@@ -40,12 +40,18 @@ async function transformFlowBabel(input, {
40
40
  } = {}) {
41
41
  return await new Promise((res, rej) => {
42
42
  import_core.default.transform(input, {
43
+ filename: "file.js",
44
+ // this is required for @react-native/babel-plugin-codegen to work.
43
45
  presets: [["module:metro-react-native-babel-preset", {
44
46
  // To use the `@babel/plugin-transform-react-jsx` plugin for JSX.
45
47
  useTransformReactJSXExperimental: !0,
46
48
  unstable_transformProfile: "hermes-stable"
47
49
  }]],
48
- plugins: [["@babel/plugin-transform-react-jsx", {
50
+ plugins: [["babel-plugin-syntax-hermes-parser"],
51
+ // This parser is required for the `@babel/plugin-transform-react-jsx` plugin to work.
52
+ ["@react-native/babel-plugin-codegen"],
53
+ // Transforms thing like `export default (codegenNativeComponent<NativeProps>('DebuggingOverlay'));` into `export default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);`, we need to do this here since Flow types are required to generate that `__INTERNAL_VIEW_CONFIG`. Without this we'll get warnings/errors like "Codegen didn't run for DebuggingOverlay".
54
+ ["@babel/plugin-transform-react-jsx", {
49
55
  development
50
56
  }], ["@babel/plugin-transform-private-methods", {
51
57
  loose: !0
@@ -31,6 +31,8 @@ async function transformFlowBabel(input, { development = !1 } = {}) {
31
31
  import_core.default.transform(
32
32
  input,
33
33
  {
34
+ filename: "file.js",
35
+ // this is required for @react-native/babel-plugin-codegen to work.
34
36
  presets: [
35
37
  [
36
38
  "module:metro-react-native-babel-preset",
@@ -42,6 +44,10 @@ async function transformFlowBabel(input, { development = !1 } = {}) {
42
44
  ]
43
45
  ],
44
46
  plugins: [
47
+ ["babel-plugin-syntax-hermes-parser"],
48
+ // This parser is required for the `@babel/plugin-transform-react-jsx` plugin to work.
49
+ ["@react-native/babel-plugin-codegen"],
50
+ // Transforms thing like `export default (codegenNativeComponent<NativeProps>('DebuggingOverlay'));` into `export default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);`, we need to do this here since Flow types are required to generate that `__INTERNAL_VIEW_CONFIG`. Without this we'll get warnings/errors like "Codegen didn't run for DebuggingOverlay".
45
51
  ["@babel/plugin-transform-react-jsx", { development }],
46
52
  ["@babel/plugin-transform-private-methods", { loose: !0 }]
47
53
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/transformFlowBabel.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAkB;AAElB,eAAsB,mBACpB,OACA,EAAE,cAAc,GAAM,IAA+B,CAAC,GACtD;AACA,SAAO,MAAM,IAAI,QAAgB,CAAC,KAAK,QAAQ;AAC7C,gBAAAA,QAAM;AAAA,MACJ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,UACP;AAAA,YACE;AAAA,YACA;AAAA;AAAA,cAEE,kCAAkC;AAAA,cAClC,2BAA2B;AAAA,YAC7B;AAAA,UACF;AAAA,QACF;AAAA,QACA,SAAS;AAAA,UACP,CAAC,qCAAqC,EAAE,YAAY,CAAC;AAAA,UACrD,CAAC,2CAA2C,EAAE,OAAO,GAAK,CAAC;AAAA,QAC7D;AAAA,MACF;AAAA,MACA,CAAC,KAAU,WAAW;AACpB,SAAI,CAAC,UAAU,QAAK,IAAI,OAAO,QAAQ,GACvC,IAAI,OAAQ,IAAK;AAAA,MACnB;AAAA,IACF;AAAA,EACF,CAAC;AACH;",
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAkB;AAElB,eAAsB,mBACpB,OACA,EAAE,cAAc,GAAM,IAA+B,CAAC,GACtD;AACA,SAAO,MAAM,IAAI,QAAgB,CAAC,KAAK,QAAQ;AAC7C,gBAAAA,QAAM;AAAA,MACJ;AAAA,MACA;AAAA,QACE,UAAU;AAAA;AAAA,QACV,SAAS;AAAA,UACP;AAAA,YACE;AAAA,YACA;AAAA;AAAA,cAEE,kCAAkC;AAAA,cAClC,2BAA2B;AAAA,YAC7B;AAAA,UACF;AAAA,QACF;AAAA,QACA,SAAS;AAAA,UACP,CAAC,mCAAmC;AAAA;AAAA,UACpC,CAAC,oCAAoC;AAAA;AAAA,UACrC,CAAC,qCAAqC,EAAE,YAAY,CAAC;AAAA,UACrD,CAAC,2CAA2C,EAAE,OAAO,GAAK,CAAC;AAAA,QAC7D;AAAA,MACF;AAAA,MACA,CAAC,KAAU,WAAW;AACpB,SAAI,CAAC,UAAU,QAAK,IAAI,OAAO,QAAQ,GACvC,IAAI,OAAQ,IAAK;AAAA,MACnB;AAAA,IACF;AAAA,EACF,CAAC;AACH;",
5
5
  "names": ["babel"]
6
6
  }
@@ -31,6 +31,8 @@ async function transformFlowBabel(input) {
31
31
  var { development = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
32
32
  return await new Promise(function(res, rej) {
33
33
  import_core.default.transform(input, {
34
+ filename: "file.js",
35
+ // this is required for @react-native/babel-plugin-codegen to work.
34
36
  presets: [
35
37
  [
36
38
  "module:metro-react-native-babel-preset",
@@ -42,6 +44,14 @@ async function transformFlowBabel(input) {
42
44
  ]
43
45
  ],
44
46
  plugins: [
47
+ [
48
+ "babel-plugin-syntax-hermes-parser"
49
+ ],
50
+ // This parser is required for the `@babel/plugin-transform-react-jsx` plugin to work.
51
+ [
52
+ "@react-native/babel-plugin-codegen"
53
+ ],
54
+ // Transforms thing like `export default (codegenNativeComponent<NativeProps>('DebuggingOverlay'));` into `export default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);`, we need to do this here since Flow types are required to generate that `__INTERNAL_VIEW_CONFIG`. Without this we'll get warnings/errors like "Codegen didn't run for DebuggingOverlay".
45
55
  [
46
56
  "@babel/plugin-transform-react-jsx",
47
57
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/vite-flow/src/transformFlowBabel.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;kBAAkB;AAElB,eAAsBA,mBACpBC,OAAa;MACb,EAAEC,cAAc,GAAK,IAArB,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAqD,CAAC;AAEtD,SAAO,MAAM,IAAIC,QAAgB,SAACC,KAAKC,KAAAA;AACrCC,gBAAAA,QAAMC,UACJN,OACA;MACEO,SAAS;QACP;UACE;UACA;;YAEEC,kCAAkC;YAClCC,2BAA2B;UAC7B;;;MAGJC,SAAS;QACP;UAAC;UAAqC;YAAET;UAAY;;QACpD;UAAC;UAA2C;YAAEU,OAAO;UAAK;;;IAE9D,GACA,SAACC,KAAUC,QAAAA;AACT,OAAI,CAACA,UAAUD,QAAKR,IAAIQ,OAAO,QAAA,GAC/BT,IAAIU,OAAQC,IAAI;IAClB,CAAA;EAEJ,CAAA;AACF;",
5
- "names": ["transformFlowBabel", "input", "development", "Promise", "res", "rej", "babel", "transform", "presets", "useTransformReactJSXExperimental", "unstable_transformProfile", "plugins", "loose", "err", "result", "code"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;kBAAkB;AAElB,eAAsBA,mBACpBC,OAAa;MACb,EAAEC,cAAc,GAAK,IAArB,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAqD,CAAC;AAEtD,SAAO,MAAM,IAAIC,QAAgB,SAACC,KAAKC,KAAAA;AACrCC,gBAAAA,QAAMC,UACJN,OACA;MACEO,UAAU;;MACVC,SAAS;QACP;UACE;UACA;;YAEEC,kCAAkC;YAClCC,2BAA2B;UAC7B;;;MAGJC,SAAS;QACP;UAAC;;;QACD;UAAC;;;QACD;UAAC;UAAqC;YAAEV;UAAY;;QACpD;UAAC;UAA2C;YAAEW,OAAO;UAAK;;;IAE9D,GACA,SAACC,KAAUC,QAAAA;AACT,OAAI,CAACA,UAAUD,QAAKT,IAAIS,OAAO,QAAA,GAC/BV,IAAIW,OAAQC,IAAI;IAClB,CAAA;EAEJ,CAAA;AACF;",
5
+ "names": ["transformFlowBabel", "input", "development", "Promise", "res", "rej", "babel", "transform", "filename", "presets", "useTransformReactJSXExperimental", "unstable_transformProfile", "plugins", "loose", "err", "result", "code"]
6
6
  }
@@ -4,6 +4,8 @@ async function transformFlowBabel(input, { development = !1 } = {}) {
4
4
  babel.transform(
5
5
  input,
6
6
  {
7
+ filename: "file.js",
8
+ // this is required for @react-native/babel-plugin-codegen to work.
7
9
  presets: [
8
10
  [
9
11
  "module:metro-react-native-babel-preset",
@@ -15,6 +17,10 @@ async function transformFlowBabel(input, { development = !1 } = {}) {
15
17
  ]
16
18
  ],
17
19
  plugins: [
20
+ ["babel-plugin-syntax-hermes-parser"],
21
+ // This parser is required for the `@babel/plugin-transform-react-jsx` plugin to work.
22
+ ["@react-native/babel-plugin-codegen"],
23
+ // Transforms thing like `export default (codegenNativeComponent<NativeProps>('DebuggingOverlay'));` into `export default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);`, we need to do this here since Flow types are required to generate that `__INTERNAL_VIEW_CONFIG`. Without this we'll get warnings/errors like "Codegen didn't run for DebuggingOverlay".
18
24
  ["@babel/plugin-transform-react-jsx", { development }],
19
25
  ["@babel/plugin-transform-private-methods", { loose: !0 }]
20
26
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/transformFlowBabel.ts"],
4
- "mappings": "AAAA,OAAO,WAAW;AAElB,eAAsB,mBACpB,OACA,EAAE,cAAc,GAAM,IAA+B,CAAC,GACtD;AACA,SAAO,MAAM,IAAI,QAAgB,CAAC,KAAK,QAAQ;AAC7C,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,UACP;AAAA,YACE;AAAA,YACA;AAAA;AAAA,cAEE,kCAAkC;AAAA,cAClC,2BAA2B;AAAA,YAC7B;AAAA,UACF;AAAA,QACF;AAAA,QACA,SAAS;AAAA,UACP,CAAC,qCAAqC,EAAE,YAAY,CAAC;AAAA,UACrD,CAAC,2CAA2C,EAAE,OAAO,GAAK,CAAC;AAAA,QAC7D;AAAA,MACF;AAAA,MACA,CAAC,KAAU,WAAW;AACpB,SAAI,CAAC,UAAU,QAAK,IAAI,OAAO,QAAQ,GACvC,IAAI,OAAQ,IAAK;AAAA,MACnB;AAAA,IACF;AAAA,EACF,CAAC;AACH;",
4
+ "mappings": "AAAA,OAAO,WAAW;AAElB,eAAsB,mBACpB,OACA,EAAE,cAAc,GAAM,IAA+B,CAAC,GACtD;AACA,SAAO,MAAM,IAAI,QAAgB,CAAC,KAAK,QAAQ;AAC7C,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,QACE,UAAU;AAAA;AAAA,QACV,SAAS;AAAA,UACP;AAAA,YACE;AAAA,YACA;AAAA;AAAA,cAEE,kCAAkC;AAAA,cAClC,2BAA2B;AAAA,YAC7B;AAAA,UACF;AAAA,QACF;AAAA,QACA,SAAS;AAAA,UACP,CAAC,mCAAmC;AAAA;AAAA,UACpC,CAAC,oCAAoC;AAAA;AAAA,UACrC,CAAC,qCAAqC,EAAE,YAAY,CAAC;AAAA,UACrD,CAAC,2CAA2C,EAAE,OAAO,GAAK,CAAC;AAAA,QAC7D;AAAA,MACF;AAAA,MACA,CAAC,KAAU,WAAW;AACpB,SAAI,CAAC,UAAU,QAAK,IAAI,OAAO,QAAQ,GACvC,IAAI,OAAQ,IAAK;AAAA,MACnB;AAAA,IACF;AAAA,EACF,CAAC;AACH;",
5
5
  "names": []
6
6
  }
@@ -4,12 +4,18 @@ async function transformFlowBabel(input, {
4
4
  } = {}) {
5
5
  return await new Promise((res, rej) => {
6
6
  babel.transform(input, {
7
+ filename: "file.js",
8
+ // this is required for @react-native/babel-plugin-codegen to work.
7
9
  presets: [["module:metro-react-native-babel-preset", {
8
10
  // To use the `@babel/plugin-transform-react-jsx` plugin for JSX.
9
11
  useTransformReactJSXExperimental: !0,
10
12
  unstable_transformProfile: "hermes-stable"
11
13
  }]],
12
- plugins: [["@babel/plugin-transform-react-jsx", {
14
+ plugins: [["babel-plugin-syntax-hermes-parser"],
15
+ // This parser is required for the `@babel/plugin-transform-react-jsx` plugin to work.
16
+ ["@react-native/babel-plugin-codegen"],
17
+ // Transforms thing like `export default (codegenNativeComponent<NativeProps>('DebuggingOverlay'));` into `export default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);`, we need to do this here since Flow types are required to generate that `__INTERNAL_VIEW_CONFIG`. Without this we'll get warnings/errors like "Codegen didn't run for DebuggingOverlay".
18
+ ["@babel/plugin-transform-react-jsx", {
13
19
  development
14
20
  }], ["@babel/plugin-transform-private-methods", {
15
21
  loose: !0
@@ -1 +1 @@
1
- {"version":3,"names":["babel","transformFlowBabel","input","development","Promise","res","rej","transform","presets","useTransformReactJSXExperimental","unstable_transformProfile","plugins","loose","err","result","code"],"sources":["../../src/transformFlowBabel.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAElB,eAAsBC,mBACpBC,KAAA,EACA;EAAEC,WAAA,GAAc;AAAM,IAA+B,CAAC,GACtD;EACA,OAAO,MAAM,IAAIC,OAAA,CAAgB,CAACC,GAAA,EAAKC,GAAA,KAAQ;IAC7CN,KAAA,CAAMO,SAAA,CACJL,KAAA,EACA;MACEM,OAAA,EAAS,CACP,CACE,0CACA;QAAA;QAEEC,gCAAA,EAAkC;QAClCC,yBAAA,EAA2B;MAC7B,EACF,CACF;MACAC,OAAA,EAAS,CACP,CAAC,qCAAqC;QAAER;MAAY,CAAC,GACrD,CAAC,2CAA2C;QAAES,KAAA,EAAO;MAAK,CAAC;IAE/D,GACA,CAACC,GAAA,EAAUC,MAAA,KAAW;MACpB,CAAI,CAACA,MAAA,IAAUD,GAAA,KAAKP,GAAA,CAAIO,GAAA,IAAO,QAAQ,GACvCR,GAAA,CAAIS,MAAA,CAAQC,IAAK;IACnB,CACF;EACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["babel","transformFlowBabel","input","development","Promise","res","rej","transform","filename","presets","useTransformReactJSXExperimental","unstable_transformProfile","plugins","loose","err","result","code"],"sources":["../../src/transformFlowBabel.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAElB,eAAsBC,mBACpBC,KAAA,EACA;EAAEC,WAAA,GAAc;AAAM,IAA+B,CAAC,GACtD;EACA,OAAO,MAAM,IAAIC,OAAA,CAAgB,CAACC,GAAA,EAAKC,GAAA,KAAQ;IAC7CN,KAAA,CAAMO,SAAA,CACJL,KAAA,EACA;MACEM,QAAA,EAAU;MAAA;MACVC,OAAA,EAAS,CACP,CACE,0CACA;QAAA;QAEEC,gCAAA,EAAkC;QAClCC,yBAAA,EAA2B;MAC7B,EACF,CACF;MACAC,OAAA,EAAS,CACP,CAAC,mCAAmC;MAAA;MACpC,CAAC,oCAAoC;MAAA;MACrC,CAAC,qCAAqC;QAAET;MAAY,CAAC,GACrD,CAAC,2CAA2C;QAAEU,KAAA,EAAO;MAAK,CAAC;IAE/D,GACA,CAACC,GAAA,EAAUC,MAAA,KAAW;MACpB,CAAI,CAACA,MAAA,IAAUD,GAAA,KAAKR,GAAA,CAAIQ,GAAA,IAAO,QAAQ,GACvCT,GAAA,CAAIU,MAAA,CAAQC,IAAK;IACnB,CACF;EACF,CAAC;AACH","ignoreList":[]}
@@ -3,6 +3,8 @@ async function transformFlowBabel(input) {
3
3
  var { development = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4
4
  return await new Promise(function(res, rej) {
5
5
  babel.transform(input, {
6
+ filename: "file.js",
7
+ // this is required for @react-native/babel-plugin-codegen to work.
6
8
  presets: [
7
9
  [
8
10
  "module:metro-react-native-babel-preset",
@@ -14,6 +16,14 @@ async function transformFlowBabel(input) {
14
16
  ]
15
17
  ],
16
18
  plugins: [
19
+ [
20
+ "babel-plugin-syntax-hermes-parser"
21
+ ],
22
+ // This parser is required for the `@babel/plugin-transform-react-jsx` plugin to work.
23
+ [
24
+ "@react-native/babel-plugin-codegen"
25
+ ],
26
+ // Transforms thing like `export default (codegenNativeComponent<NativeProps>('DebuggingOverlay'));` into `export default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);`, we need to do this here since Flow types are required to generate that `__INTERNAL_VIEW_CONFIG`. Without this we'll get warnings/errors like "Codegen didn't run for DebuggingOverlay".
17
27
  [
18
28
  "@babel/plugin-transform-react-jsx",
19
29
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/vite-flow/src/transformFlowBabel.ts"],
4
- "mappings": "AAAA,OAAOA,WAAW;AAElB,eAAsBC,mBACpBC,OAAa;MACb,EAAEC,cAAc,GAAK,IAArB,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAqD,CAAC;AAEtD,SAAO,MAAM,IAAIC,QAAgB,SAACC,KAAKC,KAAAA;AACrCN,UAAMO,UACJL,OACA;MACEM,SAAS;QACP;UACE;UACA;;YAEEC,kCAAkC;YAClCC,2BAA2B;UAC7B;;;MAGJC,SAAS;QACP;UAAC;UAAqC;YAAER;UAAY;;QACpD;UAAC;UAA2C;YAAES,OAAO;UAAK;;;IAE9D,GACA,SAACC,KAAUC,QAAAA;AACT,OAAI,CAACA,UAAUD,QAAKP,IAAIO,OAAO,QAAA,GAC/BR,IAAIS,OAAQC,IAAI;IAClB,CAAA;EAEJ,CAAA;AACF;",
5
- "names": ["babel", "transformFlowBabel", "input", "development", "Promise", "res", "rej", "transform", "presets", "useTransformReactJSXExperimental", "unstable_transformProfile", "plugins", "loose", "err", "result", "code"]
4
+ "mappings": "AAAA,OAAOA,WAAW;AAElB,eAAsBC,mBACpBC,OAAa;MACb,EAAEC,cAAc,GAAK,IAArB,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAqD,CAAC;AAEtD,SAAO,MAAM,IAAIC,QAAgB,SAACC,KAAKC,KAAAA;AACrCN,UAAMO,UACJL,OACA;MACEM,UAAU;;MACVC,SAAS;QACP;UACE;UACA;;YAEEC,kCAAkC;YAClCC,2BAA2B;UAC7B;;;MAGJC,SAAS;QACP;UAAC;;;QACD;UAAC;;;QACD;UAAC;UAAqC;YAAET;UAAY;;QACpD;UAAC;UAA2C;YAAEU,OAAO;UAAK;;;IAE9D,GACA,SAACC,KAAUC,QAAAA;AACT,OAAI,CAACA,UAAUD,QAAKR,IAAIQ,OAAO,QAAA,GAC/BT,IAAIU,OAAQC,IAAI;IAClB,CAAA;EAEJ,CAAA;AACF;",
5
+ "names": ["babel", "transformFlowBabel", "input", "development", "Promise", "res", "rej", "transform", "filename", "presets", "useTransformReactJSXExperimental", "unstable_transformProfile", "plugins", "loose", "err", "result", "code"]
6
6
  }
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "@vxrn/vite-flow",
3
- "version": "1.1.370",
4
- "types": "./types/index.d.ts",
3
+ "version": "1.1.372",
5
4
  "type": "module",
5
+ "exports": {
6
+ "./package.json": "./package.json",
7
+ ".": {
8
+ "types": "./types/index.d.ts",
9
+ "import": "./dist/esm/index.mjs",
10
+ "require": "./dist/cjs/index.cjs"
11
+ }
12
+ },
6
13
  "main": "dist/cjs",
7
14
  "module": "dist/esm",
15
+ "types": "./types/index.d.ts",
8
16
  "files": [
9
17
  "src",
10
18
  "types",
@@ -12,30 +20,24 @@
12
20
  ],
13
21
  "scripts": {
14
22
  "build": "tamagui-build",
15
- "watch": "tamagui-build --watch",
23
+ "clean": "tamagui-build clean",
24
+ "clean:build": "tamagui-build clean:build",
16
25
  "lint": "../../node_modules/.bin/biome check src",
17
26
  "lint:fix": "../../node_modules/.bin/biome check --apply-unsafe src",
18
- "clean": "tamagui-build clean",
19
- "clean:build": "tamagui-build clean:build"
20
- },
21
- "exports": {
22
- "./package.json": "./package.json",
23
- ".": {
24
- "types": "./types/index.d.ts",
25
- "import": "./dist/esm/index.mjs",
26
- "require": "./dist/cjs/index.cjs"
27
- }
27
+ "watch": "tamagui-build --watch"
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/core": "^7.26.0",
31
31
  "@babel/plugin-transform-private-methods": "^7.25.9",
32
+ "@react-native/babel-plugin-codegen": "^0.76.5",
33
+ "babel-plugin-syntax-hermes-parser": "^0.25.1",
32
34
  "flow-remove-types": "^2.247.1",
33
35
  "metro-react-native-babel-preset": "^0.77.0",
34
- "vite": "^6.0.5"
36
+ "vite": "^6.0.6"
35
37
  },
36
38
  "devDependencies": {
37
39
  "@biomejs/biome": "^1.8.3",
38
- "@tamagui/build": "^1.120.2"
40
+ "@tamagui/build": "^1.121.2"
39
41
  },
40
42
  "publishConfig": {
41
43
  "access": "public"
@@ -8,6 +8,7 @@ export async function transformFlowBabel(
8
8
  babel.transform(
9
9
  input,
10
10
  {
11
+ filename: 'file.js', // this is required for @react-native/babel-plugin-codegen to work.
11
12
  presets: [
12
13
  [
13
14
  'module:metro-react-native-babel-preset',
@@ -19,6 +20,8 @@ export async function transformFlowBabel(
19
20
  ],
20
21
  ],
21
22
  plugins: [
23
+ ['babel-plugin-syntax-hermes-parser'], // This parser is required for the `@babel/plugin-transform-react-jsx` plugin to work.
24
+ ['@react-native/babel-plugin-codegen'], // Transforms thing like `export default (codegenNativeComponent<NativeProps>('DebuggingOverlay'));` into `export default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);`, we need to do this here since Flow types are required to generate that `__INTERNAL_VIEW_CONFIG`. Without this we'll get warnings/errors like "Codegen didn't run for DebuggingOverlay".
22
25
  ['@babel/plugin-transform-react-jsx', { development }],
23
26
  ['@babel/plugin-transform-private-methods', { loose: true }],
24
27
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"transformFlowBabel.d.ts","sourceRoot":"","sources":["../src/transformFlowBabel.ts"],"names":[],"mappings":"AAEA,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,MAAM,EACb,EAAE,WAAmB,EAAE,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,mBA2BxD"}
1
+ {"version":3,"file":"transformFlowBabel.d.ts","sourceRoot":"","sources":["../src/transformFlowBabel.ts"],"names":[],"mappings":"AAEA,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,MAAM,EACb,EAAE,WAAmB,EAAE,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,mBA8BxD"}