react-native-builder-bob 0.41.0 → 0.42.0

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 (190) hide show
  1. package/bin/bob +1 -1
  2. package/lib/package.json +93 -0
  3. package/lib/src/__tests__/babel.test.d.ts +1 -0
  4. package/lib/src/__tests__/babel.test.js +26 -0
  5. package/lib/src/__tests__/babel.test.js.map +1 -0
  6. package/lib/src/__tests__/init.test.d.ts +1 -0
  7. package/lib/src/__tests__/init.test.js +93 -0
  8. package/lib/src/__tests__/init.test.js.map +1 -0
  9. package/lib/src/__tests__/resolveModuleSpecifier.test.d.ts +1 -0
  10. package/lib/src/__tests__/resolveModuleSpecifier.test.js +95 -0
  11. package/lib/src/__tests__/resolveModuleSpecifier.test.js.map +1 -0
  12. package/lib/src/__tests__/typescript-declarations.test.d.ts +1 -0
  13. package/lib/src/__tests__/typescript-declarations.test.js +193 -0
  14. package/lib/src/__tests__/typescript-declarations.test.js.map +1 -0
  15. package/lib/src/__tests__/typescript.test.d.ts +1 -0
  16. package/lib/src/__tests__/typescript.test.js +243 -0
  17. package/lib/src/__tests__/typescript.test.js.map +1 -0
  18. package/lib/src/__tests__/updateSourceMap.test.d.ts +1 -0
  19. package/lib/src/__tests__/updateSourceMap.test.js +84 -0
  20. package/lib/src/__tests__/updateSourceMap.test.js.map +1 -0
  21. package/lib/src/babel.d.ts +19 -0
  22. package/lib/src/babel.js +58 -0
  23. package/lib/src/babel.js.map +1 -0
  24. package/lib/src/build.d.ts +14 -0
  25. package/lib/src/build.js +122 -0
  26. package/lib/src/build.js.map +1 -0
  27. package/lib/src/configs/babel-config.cjs +46 -0
  28. package/lib/src/configs/babel-config.cjs.map +1 -0
  29. package/lib/src/configs/babel-config.d.cts +15 -0
  30. package/lib/src/configs/babel-preset.cjs +66 -0
  31. package/lib/src/configs/babel-preset.cjs.map +1 -0
  32. package/lib/src/configs/babel-preset.d.cts +19 -0
  33. package/lib/src/configs/metro-config.d.mts +4 -0
  34. package/{configs/metro-config.js → lib/src/configs/metro-config.mjs} +3 -6
  35. package/lib/src/configs/metro-config.mjs.map +1 -0
  36. package/lib/src/configs/vite-config.d.mts +2 -0
  37. package/lib/src/configs/vite-config.mjs +59 -0
  38. package/lib/src/configs/vite-config.mjs.map +1 -0
  39. package/lib/src/index.d.ts +1 -0
  40. package/lib/src/index.js +18 -0
  41. package/lib/src/index.js.map +1 -0
  42. package/lib/src/init.d.ts +1 -0
  43. package/lib/src/init.js +370 -0
  44. package/lib/src/init.js.map +1 -0
  45. package/lib/src/schema.d.ts +70 -0
  46. package/lib/src/schema.js +45 -0
  47. package/lib/src/schema.js.map +1 -0
  48. package/lib/src/targets/codegen/index.d.ts +4 -0
  49. package/lib/src/targets/codegen/index.js +54 -0
  50. package/lib/src/targets/codegen/index.js.map +1 -0
  51. package/lib/src/targets/codegen/patches/patchCodegenAndroidPackage.d.ts +11 -0
  52. package/lib/src/targets/codegen/patches/patchCodegenAndroidPackage.js +63 -0
  53. package/lib/src/targets/codegen/patches/patchCodegenAndroidPackage.js.map +1 -0
  54. package/lib/src/targets/codegen/patches/patchCodegenAndroidPackage.test.d.ts +1 -0
  55. package/lib/src/targets/codegen/patches/patchCodegenAndroidPackage.test.js +103 -0
  56. package/lib/src/targets/codegen/patches/patchCodegenAndroidPackage.test.js.map +1 -0
  57. package/lib/src/targets/codegen/patches/removeCodegenAppLevelCode.d.ts +16 -0
  58. package/lib/src/targets/codegen/patches/removeCodegenAppLevelCode.js +59 -0
  59. package/lib/src/targets/codegen/patches/removeCodegenAppLevelCode.js.map +1 -0
  60. package/lib/src/targets/codegen/patches/removeCodegenAppLevelCode.test.d.ts +1 -0
  61. package/lib/src/targets/codegen/patches/removeCodegenAppLevelCode.test.js +75 -0
  62. package/lib/src/targets/codegen/patches/removeCodegenAppLevelCode.test.js.map +1 -0
  63. package/lib/src/targets/commonjs.d.ts +9 -0
  64. package/lib/src/targets/commonjs.js +19 -0
  65. package/lib/src/targets/commonjs.js.map +1 -0
  66. package/lib/src/targets/custom.d.ts +9 -0
  67. package/lib/src/targets/custom.js +30 -0
  68. package/lib/src/targets/custom.js.map +1 -0
  69. package/lib/src/targets/module.d.ts +9 -0
  70. package/lib/src/targets/module.js +19 -0
  71. package/lib/src/targets/module.js.map +1 -0
  72. package/lib/src/targets/typescript.d.ts +12 -0
  73. package/lib/src/targets/typescript.js +387 -0
  74. package/lib/src/targets/typescript.js.map +1 -0
  75. package/lib/src/types.d.ts +24 -0
  76. package/lib/src/types.js +2 -0
  77. package/lib/src/types.js.map +1 -0
  78. package/lib/src/utils/androidAssemble.d.ts +8 -0
  79. package/lib/src/utils/androidAssemble.js +17 -0
  80. package/lib/src/utils/androidAssemble.js.map +1 -0
  81. package/lib/src/utils/compile.d.ts +16 -0
  82. package/lib/src/utils/compile.js +211 -0
  83. package/lib/src/utils/compile.js.map +1 -0
  84. package/lib/src/utils/isCodegenSpec.d.ts +1 -0
  85. package/lib/src/utils/isCodegenSpec.js +14 -0
  86. package/lib/src/utils/isCodegenSpec.js.map +1 -0
  87. package/lib/src/utils/isGitDirty.d.ts +1 -0
  88. package/lib/src/utils/isGitDirty.js +14 -0
  89. package/lib/src/utils/isGitDirty.js.map +1 -0
  90. package/lib/src/utils/loadConfig.d.ts +4 -0
  91. package/lib/src/utils/loadConfig.js +59 -0
  92. package/lib/src/utils/loadConfig.js.map +1 -0
  93. package/lib/src/utils/logger.d.ts +10 -0
  94. package/lib/src/utils/logger.js +30 -0
  95. package/lib/src/utils/logger.js.map +1 -0
  96. package/lib/src/utils/prompts.d.ts +3 -0
  97. package/lib/src/utils/prompts.js +10 -0
  98. package/lib/src/utils/prompts.js.map +1 -0
  99. package/lib/src/utils/resolveModuleSpecifier.d.ts +21 -0
  100. package/lib/src/utils/resolveModuleSpecifier.js +57 -0
  101. package/lib/src/utils/resolveModuleSpecifier.js.map +1 -0
  102. package/lib/src/utils/spawn.d.ts +2 -0
  103. package/lib/src/utils/spawn.js +41 -0
  104. package/lib/src/utils/spawn.js.map +1 -0
  105. package/lib/src/utils/updateSourceMap.d.ts +11 -0
  106. package/lib/src/utils/updateSourceMap.js +56 -0
  107. package/lib/src/utils/updateSourceMap.js.map +1 -0
  108. package/lib/src/utils/workerize.d.ts +15 -0
  109. package/lib/src/utils/workerize.js +75 -0
  110. package/lib/src/utils/workerize.js.map +1 -0
  111. package/package.json +15 -13
  112. package/configs/babel-config.js +0 -54
  113. package/configs/babel-preset.js +0 -69
  114. package/configs/vite-config.mjs +0 -62
  115. package/lib/__fixtures__/project/MyNativeComponent.js +0 -8
  116. package/lib/__fixtures__/project/MyNativeComponent.js.map +0 -1
  117. package/lib/__fixtures__/project/NativeMyLib.js +0 -2
  118. package/lib/__fixtures__/project/NativeMyLib.js.map +0 -1
  119. package/lib/__fixtures__/project/code/$exports-input.js +0 -121
  120. package/lib/__fixtures__/project/code/$exports-input.js.map +0 -1
  121. package/lib/__fixtures__/project/code/$exports-output.js +0 -121
  122. package/lib/__fixtures__/project/code/$exports-output.js.map +0 -1
  123. package/lib/__fixtures__/project/code/$imports-input.js +0 -24
  124. package/lib/__fixtures__/project/code/$imports-input.js.map +0 -1
  125. package/lib/__fixtures__/project/code/$imports-output.js +0 -20
  126. package/lib/__fixtures__/project/code/$imports-output.js.map +0 -1
  127. package/lib/__fixtures__/project/code/MyNativeComponent.js +0 -8
  128. package/lib/__fixtures__/project/code/MyNativeComponent.js.map +0 -1
  129. package/lib/__fixtures__/project/code/NativeMyLib.js +0 -2
  130. package/lib/__fixtures__/project/code/NativeMyLib.js.map +0 -1
  131. package/lib/__fixtures__/project/code/a.js +0 -2
  132. package/lib/__fixtures__/project/code/a.js.map +0 -1
  133. package/lib/__fixtures__/project/code/b.js +0 -2
  134. package/lib/__fixtures__/project/code/b.js.map +0 -1
  135. package/lib/__fixtures__/project/code/e.story.js +0 -2
  136. package/lib/__fixtures__/project/code/e.story.js.map +0 -1
  137. package/lib/__fixtures__/project/f.js +0 -2
  138. package/lib/__fixtures__/project/f.js.map +0 -1
  139. package/lib/__fixtures__/project/index.js +0 -2
  140. package/lib/__fixtures__/project/index.js.map +0 -1
  141. package/lib/__tests__/babel.test.js +0 -28
  142. package/lib/__tests__/babel.test.js.map +0 -1
  143. package/lib/__tests__/init.test.js +0 -93
  144. package/lib/__tests__/init.test.js.map +0 -1
  145. package/lib/babel.js +0 -92
  146. package/lib/babel.js.map +0 -1
  147. package/lib/build.js +0 -141
  148. package/lib/build.js.map +0 -1
  149. package/lib/index.js +0 -16
  150. package/lib/index.js.map +0 -1
  151. package/lib/init.js +0 -371
  152. package/lib/init.js.map +0 -1
  153. package/lib/schema.js +0 -49
  154. package/lib/schema.js.map +0 -1
  155. package/lib/targets/codegen/index.js +0 -60
  156. package/lib/targets/codegen/index.js.map +0 -1
  157. package/lib/targets/codegen/patches/patchCodegenAndroidPackage.js +0 -74
  158. package/lib/targets/codegen/patches/patchCodegenAndroidPackage.js.map +0 -1
  159. package/lib/targets/codegen/patches/patchCodegenAndroidPackage.test.js +0 -106
  160. package/lib/targets/codegen/patches/patchCodegenAndroidPackage.test.js.map +0 -1
  161. package/lib/targets/codegen/patches/removeCodegenAppLevelCode.js +0 -57
  162. package/lib/targets/codegen/patches/removeCodegenAppLevelCode.js.map +0 -1
  163. package/lib/targets/codegen/patches/removeCodegenAppLevelCode.test.js +0 -78
  164. package/lib/targets/codegen/patches/removeCodegenAppLevelCode.test.js.map +0 -1
  165. package/lib/targets/commonjs.js +0 -34
  166. package/lib/targets/commonjs.js.map +0 -1
  167. package/lib/targets/custom.js +0 -40
  168. package/lib/targets/custom.js.map +0 -1
  169. package/lib/targets/module.js +0 -34
  170. package/lib/targets/module.js.map +0 -1
  171. package/lib/targets/typescript.js +0 -219
  172. package/lib/targets/typescript.js.map +0 -1
  173. package/lib/types.js +0 -6
  174. package/lib/types.js.map +0 -1
  175. package/lib/utils/androidAssemble.js +0 -29
  176. package/lib/utils/androidAssemble.js.map +0 -1
  177. package/lib/utils/compile.js +0 -217
  178. package/lib/utils/compile.js.map +0 -1
  179. package/lib/utils/isCodegenSpec.js +0 -22
  180. package/lib/utils/isCodegenSpec.js.map +0 -1
  181. package/lib/utils/loadConfig.js +0 -56
  182. package/lib/utils/loadConfig.js.map +0 -1
  183. package/lib/utils/logger.js +0 -35
  184. package/lib/utils/logger.js.map +0 -1
  185. package/lib/utils/prompts.js +0 -17
  186. package/lib/utils/prompts.js.map +0 -1
  187. package/lib/utils/spawn.js +0 -48
  188. package/lib/utils/spawn.js.map +0 -1
  189. package/lib/utils/workerize.js +0 -102
  190. package/lib/utils/workerize.js.map +0 -1
@@ -0,0 +1,15 @@
1
+ import type { Target } from '../schema.ts';
2
+ import codegen from '../targets/codegen/index.ts';
3
+ import commonjs from '../targets/commonjs.ts';
4
+ import custom from '../targets/custom.ts';
5
+ import module from '../targets/module.ts';
6
+ import typescript from '../targets/typescript.ts';
7
+ declare const targets: {
8
+ readonly commonjs: typeof commonjs;
9
+ readonly module: typeof module;
10
+ readonly typescript: typeof typescript;
11
+ readonly codegen: typeof codegen;
12
+ readonly custom: typeof custom;
13
+ };
14
+ export declare const run: <T extends Target>(target: T, { report, ...data }: Parameters<(typeof targets)[T]>[0]) => Promise<void>;
15
+ export {};
@@ -0,0 +1,75 @@
1
+ import { Worker, isMainThread, parentPort, workerData, } from 'node:worker_threads';
2
+ import codegen from "../targets/codegen/index.js";
3
+ import commonjs from "../targets/commonjs.js";
4
+ import custom from "../targets/custom.js";
5
+ import module from "../targets/module.js";
6
+ import typescript from "../targets/typescript.js";
7
+ const targets = {
8
+ commonjs,
9
+ module,
10
+ typescript,
11
+ codegen,
12
+ custom,
13
+ };
14
+ export const run = async (target, { report, ...data }) => {
15
+ if (!isMainThread) {
16
+ throw new Error('Worker can only be run from the main thread');
17
+ }
18
+ return new Promise((resolve, reject) => {
19
+ const worker = new Worker(import.meta.filename, {
20
+ workerData: {
21
+ target,
22
+ data,
23
+ },
24
+ env: {
25
+ ...process.env,
26
+ FORCE_COLOR: process.stdout.isTTY ? '1' : '0',
27
+ },
28
+ });
29
+ worker.on('message', (message) => {
30
+ switch (message.type) {
31
+ case 'info':
32
+ report.info(message.message);
33
+ break;
34
+ case 'warn':
35
+ report.warn(message.message);
36
+ break;
37
+ case 'error':
38
+ report.error(message.message);
39
+ break;
40
+ case 'success':
41
+ report.success(message.message);
42
+ break;
43
+ }
44
+ });
45
+ worker.on('error', (error) => {
46
+ reject(error);
47
+ });
48
+ worker.on('exit', (code) => {
49
+ if (code !== 0) {
50
+ reject(new Error(`Worker exited with code ${String(code)}`));
51
+ }
52
+ else {
53
+ resolve();
54
+ }
55
+ });
56
+ });
57
+ };
58
+ if (!isMainThread) {
59
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
60
+ const { target, data } = workerData;
61
+ const report = {
62
+ info: (message) => parentPort?.postMessage({ type: 'info', message }),
63
+ warn: (message) => parentPort?.postMessage({ type: 'warn', message }),
64
+ error: (message) => parentPort?.postMessage({ type: 'error', message }),
65
+ success: (message) => parentPort?.postMessage({ type: 'success', message }),
66
+ };
67
+ if (target in targets) {
68
+ // @ts-expect-error - typescript doesn't support correlated union types https://github.com/microsoft/TypeScript/issues/30581
69
+ void targets[target]({ ...data, report });
70
+ }
71
+ else {
72
+ throw new Error(`Unknown target: ${target}`);
73
+ }
74
+ }
75
+ //# sourceMappingURL=workerize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workerize.js","sourceRoot":"","sources":["../../../src/utils/workerize.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,UAAU,EACV,UAAU,GACX,MAAM,qBAAqB,CAAC;AAE7B,OAAO,OAAO,MAAM,6BAA6B,CAAC;AAClD,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAQlD,MAAM,OAAO,G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CAAC,CAAC;IAC/C,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-builder-bob",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "CLI to build JavaScript files for React Native libraries",
5
5
  "keywords": [
6
6
  "react-native",
@@ -17,21 +17,21 @@
17
17
  "url": "https://github.com/callstack/react-native-builder-bob/issues"
18
18
  },
19
19
  "homepage": "https://oss.callstack.com/react-native-builder-bob/build",
20
- "main": "lib/index.js",
20
+ "type": "module",
21
21
  "exports": {
22
- "./package.json": "./package.json",
23
- "./babel-config": "./configs/babel-config.js",
24
- "./babel-preset": "./configs/babel-preset.js",
25
- "./metro-config": "./configs/metro-config.js",
26
- "./vite-config": "./configs/vite-config.mjs"
22
+ ".": "./lib/src/index.js",
23
+ "./babel-config": "./lib/src/configs/babel-config.cjs",
24
+ "./babel-preset": "./lib/src/configs/babel-preset.cjs",
25
+ "./metro-config": "./lib/src/configs/metro-config.mjs",
26
+ "./vite-config": "./lib/src/configs/vite-config.mjs",
27
+ "./package.json": "./package.json"
27
28
  },
28
29
  "bin": {
29
30
  "bob": "bin/bob"
30
31
  },
31
32
  "files": [
32
33
  "bin",
33
- "lib",
34
- "configs"
34
+ "lib"
35
35
  ],
36
36
  "engines": {
37
37
  "node": "^20.19.0 || ^22.12.0 || >= 23.4.0"
@@ -41,7 +41,7 @@
41
41
  "registry": "https://registry.npmjs.org/"
42
42
  },
43
43
  "scripts": {
44
- "prepare": "babel --extensions .ts,.tsx src --out-dir lib --source-maps --delete-dir-on-start",
44
+ "prepare": "del-cli lib .tsbuildinfo && tsc",
45
45
  "test": "vitest"
46
46
  },
47
47
  "dependencies": {
@@ -51,6 +51,7 @@
51
51
  "@babel/preset-env": "^7.29.2",
52
52
  "@babel/preset-react": "^7.28.5",
53
53
  "@babel/preset-typescript": "^7.28.5",
54
+ "@jridgewell/sourcemap-codec": "^1.5.5",
54
55
  "arktype": "^2.2.0",
55
56
  "babel-plugin-syntax-hermes-parser": "^0.34.0",
56
57
  "browserslist": "^4.28.2",
@@ -60,16 +61,15 @@
60
61
  "escape-string-regexp": "^5.0.0",
61
62
  "fs-extra": "^11.3.4",
62
63
  "glob": "^13.0.6",
63
- "is-git-dirty": "^2.0.2",
64
64
  "json5": "^2.2.3",
65
65
  "kleur": "^4.1.5",
66
66
  "prompts": "^2.4.2",
67
67
  "react-native-monorepo-config": "^0.3.3",
68
+ "typescript": "^6.0.3",
68
69
  "which": "^6.0.1",
69
70
  "yargs": "^18.0.0"
70
71
  },
71
72
  "devDependencies": {
72
- "@babel/cli": "^7.28.6",
73
73
  "@types/babel__core": "^7.20.5",
74
74
  "@types/browserslist": "^4.15.4",
75
75
  "@types/cross-spawn": "^6.0.6",
@@ -78,14 +78,16 @@
78
78
  "@types/fs-extra": "^11.0.4",
79
79
  "@types/json5": "^2.2.0",
80
80
  "@types/mock-fs": "^4.13.4",
81
+ "@types/node": "^20.19.39",
81
82
  "@types/prompts": "^2.4.9",
82
83
  "@types/which": "^3.0.4",
83
84
  "@types/yargs": "^17.0.35",
84
85
  "concurrently": "^9.2.1",
86
+ "del-cli": "^7.0.0",
85
87
  "metro-config": "^0.84.2",
86
88
  "mock-fs": "^5.5.0",
87
89
  "mock-stdin": "^1.0.0",
88
90
  "vitest": "^4.1.2"
89
91
  },
90
- "gitHead": "f0da652b454d58268ca7ac50468a6c2f106fb5b7"
92
+ "gitHead": "d4370e22e9e2976b464096fbd2b5738c740266e0"
91
93
  }
@@ -1,54 +0,0 @@
1
- /* eslint-disable import-x/no-commonjs, no-undef */
2
-
3
- const path = require('path');
4
- // @ts-ignore -- Ignore missing types for this module
5
- const { loadConfig } = require('../lib/utils/loadConfig');
6
-
7
- /**
8
- * Get Babel configuration for the example project.
9
- * This sets up appropriate presets and plugins for the library.
10
- * It also aliases the library to the source directory.
11
- *
12
- * @param {import('@babel/core').TransformOptions} defaultConfig Default Babel configuration
13
- * @param {object} options Options to customize the configuration
14
- * @param {string} options.root Root directory of the monorepo
15
- * @param {object} options.pkg Content of package.json of the library
16
- * @returns {import('@babel/core').TransformOptions} Babel configuration
17
- */
18
- const getConfig = (defaultConfig, { root }) => {
19
- const result = loadConfig(root);
20
-
21
- if (result == null) {
22
- throw new Error(`Couldn't find a valid configuration at ${root}.`);
23
- }
24
-
25
- const { source } = result.config;
26
-
27
- if (source == null) {
28
- throw new Error(
29
- "Couldn't determine the source directory. Does your config specify a 'source' field?"
30
- );
31
- }
32
-
33
- return {
34
- ...defaultConfig,
35
- overrides: [
36
- ...(defaultConfig.overrides == null ? [] : defaultConfig.overrides),
37
- {
38
- include: path.join(root, source),
39
- presets: [
40
- [
41
- require.resolve('./babel-preset'),
42
- {
43
- // Let the app's preset handle the commonjs transform
44
- // Otherwise this causes `export` statements in wrong places causing syntax error
45
- supportsStaticESM: true,
46
- },
47
- ],
48
- ],
49
- },
50
- ],
51
- };
52
- };
53
-
54
- exports.getConfig = getConfig;
@@ -1,69 +0,0 @@
1
- /* eslint-disable import-x/no-commonjs, no-undef */
2
-
3
- const browserslist = require('browserslist');
4
-
5
- /**
6
- * Babel preset for React Native Builder Bob
7
- *
8
- * @param {Boolean} options.supportsStaticESM - Whether to preserve ESM imports/exports, defaults to `false`
9
- * @param {Boolean} options.rewriteImportExtensions - Whether to rewrite import extensions to '.js', defaults to `false`
10
- * @param {'automatic' | 'classic'} options.jsxRuntime - Which JSX runtime to use, defaults to 'automatic'
11
- */
12
- module.exports = function (api, options, cwd) {
13
- const opt = (name) =>
14
- options[name] !== undefined
15
- ? options[name]
16
- : api.caller((caller) => (caller != null ? caller[name] : undefined));
17
-
18
- const supportsStaticESM = opt('supportsStaticESM');
19
- const rewriteImportExtensions = opt('rewriteImportExtensions');
20
- const jsxRuntime = opt('jsxRuntime');
21
-
22
- return {
23
- presets: [
24
- [
25
- require.resolve('@babel/preset-env'),
26
- {
27
- targets: browserslist.findConfig(cwd) || {
28
- browsers: [
29
- '> 1%',
30
- 'chrome 109',
31
- 'edge 124',
32
- 'firefox 127',
33
- 'safari 17.4',
34
- 'not dead',
35
- 'not ie <= 11',
36
- 'not op_mini all',
37
- 'not android <= 4.4',
38
- 'not samsung <= 4',
39
- ],
40
- node: '18',
41
- },
42
- useBuiltIns: false,
43
- modules: supportsStaticESM ? false : 'commonjs',
44
- },
45
- ],
46
- [
47
- require.resolve('@babel/preset-react'),
48
- {
49
- runtime: jsxRuntime !== undefined ? jsxRuntime : 'automatic',
50
- },
51
- ],
52
- require.resolve('@babel/preset-typescript'),
53
- ],
54
- plugins: [
55
- require.resolve('@babel/plugin-transform-strict-mode'),
56
- [
57
- require.resolve('babel-plugin-syntax-hermes-parser'),
58
- { parseLangTypes: 'flow' },
59
- ],
60
- require.resolve('@babel/plugin-transform-flow-strip-types'),
61
- [
62
- require.resolve('../lib/babel'),
63
- {
64
- extension: rewriteImportExtensions ? 'js' : undefined,
65
- },
66
- ],
67
- ],
68
- };
69
- };
@@ -1,62 +0,0 @@
1
- import react from '@vitejs/plugin-react';
2
- import { defineConfig, transformWithEsbuild } from 'vite';
3
- import commonjs from 'vite-plugin-commonjs';
4
-
5
- const extensions = [
6
- '.web.tsx',
7
- '.tsx',
8
- '.web.ts',
9
- '.ts',
10
- '.web.jsx',
11
- '.jsx',
12
- '.web.js',
13
- '.js',
14
- '.web.mjs',
15
- '.mjs',
16
- '.json',
17
- ];
18
-
19
- /**
20
- * @param {RegExp} regex
21
- * @returns {import('vite').Plugin}
22
- */
23
- const jsx = (regex) => ({
24
- name: 'js-as-jsx',
25
- enforce: 'pre',
26
- transform(code, id) {
27
- if (id.endsWith('.js') && regex.test(id)) {
28
- return transformWithEsbuild(code, id, {
29
- loader: 'jsx',
30
- jsx: 'automatic',
31
- });
32
- }
33
-
34
- return null;
35
- },
36
- });
37
-
38
- export default defineConfig(({ mode }) => ({
39
- plugins: [jsx(/\/(@expo|expo-.+)\//), commonjs(), react()],
40
- define: {
41
- __DEV__: JSON.stringify(mode !== 'production'),
42
- 'process.env.EXPO_OS': JSON.stringify('web'),
43
- global: 'globalThis',
44
- },
45
- resolve: {
46
- extensions,
47
- conditions: ['source', 'module', 'browser', mode],
48
- alias: {
49
- 'react-native': 'react-native-web',
50
- },
51
- dedupe: ['react', 'react-dom', 'react-native-web'],
52
- },
53
- optimizeDeps: {
54
- esbuildOptions: {
55
- resolveExtensions: extensions,
56
- jsx: 'automatic',
57
- loader: {
58
- '.js': 'jsx',
59
- },
60
- },
61
- },
62
- }));
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = exports.default = codegenNativeComponent('Test');
8
- //# sourceMappingURL=MyNativeComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyNativeComponent.js","names":["codegenNativeComponent"],"sources":["../../../src/__fixtures__/project/MyNativeComponent.tsx"],"sourcesContent":["export default codegenNativeComponent<NativeProps>('Test');\n"],"mappings":";;;;;;iCAAeA,sBAAsB,CAAc,MAAM,CAAC","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=NativeMyLib.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeMyLib.js","names":[],"sources":["../../../src/__fixtures__/project/NativeMyLib.tsx"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
@@ -1,121 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- foo: true,
8
- bar: true,
9
- a: true,
10
- b: true,
11
- c: true,
12
- d: true,
13
- e: true,
14
- f: true,
15
- pac: true,
16
- pak: true,
17
- pax: true,
18
- a1: true,
19
- NativeLibA: true,
20
- NativeLibB: true,
21
- NativeLibC: true,
22
- NativeLibD: true,
23
- NativeLibE: true,
24
- NativeLibF: true,
25
- NativeLibG: true,
26
- NativeLibH: true,
27
- NativeLibI: true,
28
- NativeLibJ: true,
29
- NativeViewA: true,
30
- NativeViewB: true,
31
- NativeViewC: true,
32
- NativeViewD: true,
33
- NativeViewE: true,
34
- NativeViewF: true,
35
- NativeViewG: true,
36
- NativeViewH: true,
37
- NativeViewI: true,
38
- NativeViewJ: true
39
- };
40
- exports.a = exports.NativeViewJ = exports.NativeViewI = exports.NativeViewH = exports.NativeViewG = exports.NativeViewF = exports.NativeViewE = exports.NativeViewD = exports.NativeViewC = exports.NativeViewB = exports.NativeViewA = exports.NativeLibJ = exports.NativeLibI = exports.NativeLibH = exports.NativeLibG = exports.NativeLibF = exports.NativeLibE = exports.NativeLibD = exports.NativeLibC = exports.NativeLibB = exports.NativeLibA = void 0;
41
- Object.defineProperty(exports, "a1", {
42
- enumerable: true,
43
- get: function () {
44
- return _a3.a;
45
- }
46
- });
47
- exports.pax = exports.pak = exports.pac = exports.foo = exports.f = exports.e = exports.d = exports.c = exports.bar = exports.b = void 0;
48
- var _a = _interopRequireWildcard(require("a"));
49
- exports.a = _a;
50
- var _b = _interopRequireWildcard(require("./b"));
51
- exports.b = _b;
52
- Object.keys(_b).forEach(function (key) {
53
- if (key === "default" || key === "__esModule") return;
54
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
55
- if (key in exports && exports[key] === _b[key]) return;
56
- Object.defineProperty(exports, key, {
57
- enumerable: true,
58
- get: function () {
59
- return _b[key];
60
- }
61
- });
62
- });
63
- var _c = _interopRequireWildcard(require("./c"));
64
- exports.c = _c;
65
- var _d = _interopRequireWildcard(require("./d"));
66
- exports.d = _d;
67
- var _e = _interopRequireWildcard(require("./e.story"));
68
- exports.e = _e;
69
- var _f = _interopRequireWildcard(require("../f"));
70
- exports.f = _f;
71
- var _pac = _interopRequireWildcard(require(".."));
72
- exports.pac = _pac;
73
- var _pak = _interopRequireWildcard(require("../"));
74
- exports.pak = _pak;
75
- var _pax = _interopRequireWildcard(require("../index"));
76
- exports.pax = _pax;
77
- var _a3 = require("./a");
78
- var _NativeLibA = _interopRequireWildcard(require("./NativeMyLib"));
79
- exports.NativeLibA = _NativeLibA;
80
- var _NativeLibB = _interopRequireWildcard(require("../NativeMyLib"));
81
- exports.NativeLibB = _NativeLibB;
82
- var _NativeLibC = _interopRequireWildcard(require("./NativeMyLib.ts"));
83
- exports.NativeLibC = _NativeLibC;
84
- var _NativeLibD = _interopRequireWildcard(require("../NativeMyLib.ts"));
85
- exports.NativeLibD = _NativeLibD;
86
- var _NativeLibE = _interopRequireWildcard(require("./NativeMyLib.tsx"));
87
- exports.NativeLibE = _NativeLibE;
88
- var _NativeLibF = _interopRequireWildcard(require("../NativeMyLib.tsx"));
89
- exports.NativeLibF = _NativeLibF;
90
- var _NativeLibG = _interopRequireWildcard(require("./NativeMyLib.js"));
91
- exports.NativeLibG = _NativeLibG;
92
- var _NativeLibH = _interopRequireWildcard(require("../NativeMyLib.js"));
93
- exports.NativeLibH = _NativeLibH;
94
- var _NativeLibI = _interopRequireWildcard(require("./NativeMyLib.jsx"));
95
- exports.NativeLibI = _NativeLibI;
96
- var _NativeLibJ = _interopRequireWildcard(require("../NativeMyLib.jsx"));
97
- exports.NativeLibJ = _NativeLibJ;
98
- var _NativeViewA = _interopRequireWildcard(require("./MyNativeComponent"));
99
- exports.NativeViewA = _NativeViewA;
100
- var _NativeViewB = _interopRequireWildcard(require("../MyNativeComponent"));
101
- exports.NativeViewB = _NativeViewB;
102
- var _NativeViewC = _interopRequireWildcard(require("./MyNativeComponent.ts"));
103
- exports.NativeViewC = _NativeViewC;
104
- var _NativeViewD = _interopRequireWildcard(require("../MyNativeComponent.ts"));
105
- exports.NativeViewD = _NativeViewD;
106
- var _NativeViewE = _interopRequireWildcard(require("./MyNativeComponent.tsx"));
107
- exports.NativeViewE = _NativeViewE;
108
- var _NativeViewF = _interopRequireWildcard(require("../MyNativeComponent.tsx"));
109
- exports.NativeViewF = _NativeViewF;
110
- var _NativeViewG = _interopRequireWildcard(require("./MyNativeComponent.js"));
111
- exports.NativeViewG = _NativeViewG;
112
- var _NativeViewH = _interopRequireWildcard(require("../MyNativeComponent.js"));
113
- exports.NativeViewH = _NativeViewH;
114
- var _NativeViewI = _interopRequireWildcard(require("./MyNativeComponent.jsx"));
115
- exports.NativeViewI = _NativeViewI;
116
- var _NativeViewJ = _interopRequireWildcard(require("../MyNativeComponent.jsx"));
117
- exports.NativeViewJ = _NativeViewJ;
118
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
119
- const foo = exports.foo = "foo";
120
- const bar = exports.bar = "bar";
121
- //# sourceMappingURL=$exports-input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"$exports-input.js","names":["_b","_interopRequireWildcard","require","exports","b","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","defineProperty","enumerable","get","_c","c","_d","d","_e","e","_f","f","_pac","pac","_pak","pak","_pax","pax","_a3","_NativeLibA","NativeLibA","_NativeLibB","NativeLibB","_NativeLibC","NativeLibC","_NativeLibD","NativeLibD","_NativeLibE","NativeLibE","_NativeLibF","NativeLibF","_NativeLibG","NativeLibG","_NativeLibH","NativeLibH","_NativeLibI","NativeLibI","_NativeLibJ","NativeLibJ","_NativeViewA","NativeViewA","_NativeViewB","NativeViewB","_NativeViewC","NativeViewC","_NativeViewD","NativeViewD","_NativeViewE","NativeViewE","_NativeViewF","NativeViewF","_NativeViewG","NativeViewG","_NativeViewH","NativeViewH","_NativeViewI","NativeViewI","_NativeViewJ","NativeViewJ","t","WeakMap","r","n","__esModule","o","i","__proto__","default","has","set","getOwnPropertyDescriptor","foo","bar"],"sources":["../../../../src/__fixtures__/project/code/$exports-input.ts"],"sourcesContent":["export * as a from \"a\";\nexport * as b from \"./b\";\nexport * as c from \"./c\";\nexport * as d from \"./d\";\nexport * as e from \"./e.story\";\nexport * as f from \"../f\";\nexport * as pac from \"..\";\nexport * as pak from \"../\";\nexport * as pax from \"../index\";\n\nexport { a as a1 } from \"./a\";\nexport * from \"./b\";\n\nexport type { A } from \"./a\";\n\nexport const foo = \"foo\";\n\nconst bar = \"bar\";\n\nexport { bar };\n\nexport * as NativeLibA from \"./NativeMyLib\";\nexport * as NativeLibB from \"../NativeMyLib\";\nexport * as NativeLibC from \"./NativeMyLib.ts\";\nexport * as NativeLibD from \"../NativeMyLib.ts\";\nexport * as NativeLibE from \"./NativeMyLib.tsx\";\nexport * as NativeLibF from \"../NativeMyLib.tsx\";\nexport * as NativeLibG from \"./NativeMyLib.js\";\nexport * as NativeLibH from \"../NativeMyLib.js\";\nexport * as NativeLibI from \"./NativeMyLib.jsx\";\nexport * as NativeLibJ from \"../NativeMyLib.jsx\";\n\nexport * as NativeViewA from \"./MyNativeComponent\";\nexport * as NativeViewB from \"../MyNativeComponent\";\nexport * as NativeViewC from \"./MyNativeComponent.ts\";\nexport * as NativeViewD from \"../MyNativeComponent.ts\";\nexport * as NativeViewE from \"./MyNativeComponent.tsx\";\nexport * as NativeViewF from \"../MyNativeComponent.tsx\";\nexport * as NativeViewG from \"./MyNativeComponent.js\";\nexport * as NativeViewH from \"../MyNativeComponent.js\";\nexport * as NativeViewI from \"./MyNativeComponent.jsx\";\nexport * as NativeViewJ from \"../MyNativeComponent.jsx\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAAA,EAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAoBC,OAAA,CAAAC,CAAA,GAAAJ,EAAA;AAApBK,MAAA,CAAAC,IAAA,CAAAN,EAAA,EAAAO,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBA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,CAAAkD,CAAA,WAAAhD,CAAA,KAAAF,CAAA,EAAAkD,CAAA;AAKvB,MAAMY,GAAG,GAAAhF,OAAA,CAAAgF,GAAA,GAAG,KAAK;AAExB,MAAMC,GAAG,GAAAjF,OAAA,CAAAiF,GAAA,GAAG,KAAK","ignoreList":[]}
@@ -1,121 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- foo: true,
8
- bar: true,
9
- a: true,
10
- b: true,
11
- c: true,
12
- d: true,
13
- e: true,
14
- f: true,
15
- pac: true,
16
- pak: true,
17
- pax: true,
18
- a1: true,
19
- NativeLibA: true,
20
- NativeLibC: true,
21
- NativeLibE: true,
22
- NativeLibB: true,
23
- NativeLibD: true,
24
- NativeLibF: true,
25
- NativeLibG: true,
26
- NativeLibH: true,
27
- NativeLibI: true,
28
- NativeLibJ: true,
29
- NativeViewA: true,
30
- NativeViewB: true,
31
- NativeViewC: true,
32
- NativeViewD: true,
33
- NativeViewE: true,
34
- NativeViewF: true,
35
- NativeViewG: true,
36
- NativeViewH: true,
37
- NativeViewI: true,
38
- NativeViewJ: true
39
- };
40
- exports.a = exports.NativeViewJ = exports.NativeViewI = exports.NativeViewH = exports.NativeViewG = exports.NativeViewF = exports.NativeViewE = exports.NativeViewD = exports.NativeViewC = exports.NativeViewB = exports.NativeViewA = exports.NativeLibJ = exports.NativeLibI = exports.NativeLibH = exports.NativeLibG = exports.NativeLibF = exports.NativeLibE = exports.NativeLibD = exports.NativeLibC = exports.NativeLibB = exports.NativeLibA = void 0;
41
- Object.defineProperty(exports, "a1", {
42
- enumerable: true,
43
- get: function () {
44
- return _a3.a;
45
- }
46
- });
47
- exports.pax = exports.pak = exports.pac = exports.foo = exports.f = exports.e = exports.d = exports.c = exports.bar = exports.b = void 0;
48
- var _a = _interopRequireWildcard(require("a"));
49
- exports.a = _a;
50
- var _b = _interopRequireWildcard(require("./b.mjs"));
51
- exports.b = _b;
52
- Object.keys(_b).forEach(function (key) {
53
- if (key === "default" || key === "__esModule") return;
54
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
55
- if (key in exports && exports[key] === _b[key]) return;
56
- Object.defineProperty(exports, key, {
57
- enumerable: true,
58
- get: function () {
59
- return _b[key];
60
- }
61
- });
62
- });
63
- var _c = _interopRequireWildcard(require("./c.mjs"));
64
- exports.c = _c;
65
- var _d = _interopRequireWildcard(require("./d"));
66
- exports.d = _d;
67
- var _e = _interopRequireWildcard(require("./e.story.mjs"));
68
- exports.e = _e;
69
- var _f = _interopRequireWildcard(require("../f.mjs"));
70
- exports.f = _f;
71
- var _pac = _interopRequireWildcard(require("../index.mjs"));
72
- var _pak = _pac;
73
- var _pax = _pac;
74
- exports.pac = _pac;
75
- exports.pak = _pac;
76
- exports.pax = _pac;
77
- var _a3 = require("./a.mjs");
78
- var _NativeLibA = _interopRequireWildcard(require("./NativeMyLib.mjs"));
79
- var _NativeLibC = _NativeLibA;
80
- var _NativeLibE = _NativeLibA;
81
- exports.NativeLibA = _NativeLibA;
82
- exports.NativeLibC = _NativeLibA;
83
- exports.NativeLibE = _NativeLibA;
84
- var _NativeLibB = _interopRequireWildcard(require("../NativeMyLib.mjs"));
85
- var _NativeLibD = _NativeLibB;
86
- var _NativeLibF = _NativeLibB;
87
- exports.NativeLibB = _NativeLibB;
88
- exports.NativeLibD = _NativeLibB;
89
- exports.NativeLibF = _NativeLibB;
90
- var _NativeLibG = _interopRequireWildcard(require("./NativeMyLib.js"));
91
- exports.NativeLibG = _NativeLibG;
92
- var _NativeLibH = _interopRequireWildcard(require("../NativeMyLib.js"));
93
- exports.NativeLibH = _NativeLibH;
94
- var _NativeLibI = _interopRequireWildcard(require("./NativeMyLib.jsx"));
95
- exports.NativeLibI = _NativeLibI;
96
- var _NativeLibJ = _interopRequireWildcard(require("../NativeMyLib.jsx"));
97
- exports.NativeLibJ = _NativeLibJ;
98
- var _NativeViewA = _interopRequireWildcard(require("./MyNativeComponent"));
99
- exports.NativeViewA = _NativeViewA;
100
- var _NativeViewB = _interopRequireWildcard(require("../MyNativeComponent"));
101
- exports.NativeViewB = _NativeViewB;
102
- var _NativeViewC = _interopRequireWildcard(require("./MyNativeComponent.ts"));
103
- exports.NativeViewC = _NativeViewC;
104
- var _NativeViewD = _interopRequireWildcard(require("../MyNativeComponent.ts"));
105
- exports.NativeViewD = _NativeViewD;
106
- var _NativeViewE = _interopRequireWildcard(require("./MyNativeComponent.tsx"));
107
- exports.NativeViewE = _NativeViewE;
108
- var _NativeViewF = _interopRequireWildcard(require("../MyNativeComponent.tsx"));
109
- exports.NativeViewF = _NativeViewF;
110
- var _NativeViewG = _interopRequireWildcard(require("./MyNativeComponent.js"));
111
- exports.NativeViewG = _NativeViewG;
112
- var _NativeViewH = _interopRequireWildcard(require("../MyNativeComponent.js"));
113
- exports.NativeViewH = _NativeViewH;
114
- var _NativeViewI = _interopRequireWildcard(require("./MyNativeComponent.jsx"));
115
- exports.NativeViewI = _NativeViewI;
116
- var _NativeViewJ = _interopRequireWildcard(require("../MyNativeComponent.jsx"));
117
- exports.NativeViewJ = _NativeViewJ;
118
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
119
- const foo = exports.foo = "foo";
120
- const bar = exports.bar = "bar";
121
- //# sourceMappingURL=$exports-output.js.map