Created
July 16, 2022 17:54
-
-
Save codigoinerte/7e50030edad18accb499ef915063e1f5 to your computer and use it in GitHub Desktop.
Create babel config to React + Vite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| In source project create a file babel.config.cjs no babel.config.js how 'https://jestjs.io/docs/getting-started' | |
| */ | |
| module.exports = { | |
| presets: [ | |
| [ '@babel/preset-env', { targets: { esmodules: true } } ], | |
| [ '@babel/preset-react', { runtime: 'automatic' } ], | |
| ], | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment