Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(babel): rewrite babel preset for web #24725

Closed
wants to merge 14 commits into from
1 change: 1 addition & 0 deletions packages/@expo/metro-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

### 💡 Others

- Stop passing `withDevTools` to `babel-preset-expo`. ([#24725](https://github.com/expo/expo/pull/24725) by [@EvanBacon](https://github.com/EvanBacon))
- Unrevert `URL` support. ([#25005](https://github.com/expo/expo/pull/25005) by [@EvanBacon](https://github.com/EvanBacon))
- Revert `URL` support. ([#25006](https://github.com/expo/expo/pull/25006) by [@EvanBacon](https://github.com/EvanBacon))
- "Exotic mode", `EXPO_USE_EXOTIC`, and `EXPO_USE_FB_SOURCES` have been deprecated and no longer enable any experimental functionality. ([#24927](https://github.com/expo/expo/pull/24927) by [@EvanBacon](https://github.com/EvanBacon))
Expand Down
2 changes: 0 additions & 2 deletions packages/@expo/metro-config/src/babel-transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ const getBabelRC = (function () {
const platformOptions = {
// @ts-expect-error: This is how Metro works by default
unstable_transformProfile: presetOptions.unstable_transformProfile,
// @ts-expect-error: This is how Metro works by default
withDevTools: presetOptions.withDevTools,
disableImportExportTransform: experimentalImportSupport,
dev: presetOptions.dev,
enableBabelRuntime: presetOptions.enableBabelRuntime,
Expand Down
1 change: 1 addition & 0 deletions packages/babel-preset-expo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

### 💡 Others

- Rewrite plugin for web and server environments. ([#24725](https://github.com/expo/expo/pull/24725) by [@EvanBacon](https://github.com/EvanBacon))
- Drop unused `native.withDevTools` and `web.withDevTools` options. ([#25125](https://github.com/expo/expo/pull/25125) by [@EvanBacon](https://github.com/EvanBacon))
- Migrate from `@babel/plugin-proposal-export-namespace-from` to `@babel/plugin-transform-export-namespace-from`. ([#25127](https://github.com/expo/expo/pull/25127) by [@EvanBacon](https://github.com/EvanBacon))
- Update reanimated tests. ([#25126](https://github.com/expo/expo/pull/25126) by [@EvanBacon](https://github.com/EvanBacon))
Expand Down
20 changes: 18 additions & 2 deletions packages/babel-preset-expo/build/common.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions packages/babel-preset-expo/build/common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 1 addition & 16 deletions packages/babel-preset-expo/build/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

144 changes: 41 additions & 103 deletions packages/babel-preset-expo/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/babel-preset-expo/build/native.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions packages/babel-preset-expo/build/native.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions packages/babel-preset-expo/build/web.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.