Skip to content

Instantly share code, notes, and snippets.

@codigoinerte
Created July 16, 2022 17:54
Show Gist options
  • Save codigoinerte/7e50030edad18accb499ef915063e1f5 to your computer and use it in GitHub Desktop.
Save codigoinerte/7e50030edad18accb499ef915063e1f5 to your computer and use it in GitHub Desktop.
Create babel config to React + Vite
/*
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