Unverified Commit 6da04448 authored by Daiki Nishikawa's avatar Daiki Nishikawa Committed by GitHub

remove unnecessary babel.config.js in react native web example (#43939)

<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Documentation / Examples

Based on https://github.com/necolas/react-native-web/discussions/2217,
the `babel-plugin-react-native-web` is not necessary. Therefore, I
remove babel.config.js and npm package from package.json. This
modification will improve build performance and bundle size.

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
parent d40daaa1
module.exports = {
presets: ['next/babel'],
plugins: [['react-native-web', { commonjs: true }]],
}
......@@ -10,8 +10,5 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native-web": "^0.18.9"
},
"devDependencies": {
"babel-plugin-react-native-web": "^0.18.9"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment