Skip to content

Instantly share code, notes, and snippets.

@donrestarone
Created December 23, 2020 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donrestarone/52c6b6f271d7a4053a6aeaf70932ef96 to your computer and use it in GitHub Desktop.
Save donrestarone/52c6b6f271d7a4053a6aeaf70932ef96 to your computer and use it in GitHub Desktop.
babel configuration for React (used in a Phoenix application)
module.exports = function (api) {
api.cache(true);
const presets = [
'@babel/preset-env',
'@babel/preset-react',
]
const plugins = [
]
return {
presets,
plugins
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment