Created
December 23, 2020 23:29
-
-
Save donrestarone/52c6b6f271d7a4053a6aeaf70932ef96 to your computer and use it in GitHub Desktop.
babel configuration for React (used in a Phoenix application)
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
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