Files
freeCodeCamp/client/.babelrc
Oliver Eyton-Williams e1f673e685 fix: prevent excessive locale bundling (#41979)
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-05-08 13:18:37 +05:30

73 lines
1.3 KiB
Plaintext

{
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": false,
"useBuiltIns": "usage",
"corejs": 2,
"shippedProposals": true,
"targets": {
"browsers": [">0.25%", "not dead"]
}
}
],
[
"@babel/preset-react",
{
"useBuiltIns": true,
"pragma": "React.createElement"
}
]
],
"plugins": [
"preval",
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
"@babel/plugin-syntax-dynamic-import",
"babel-plugin-macros",
[
"@babel/plugin-transform-runtime",
{
"helpers": true,
"regenerator": true
}
],
[
"babel-plugin-transform-imports",
{
"react-bootstrap": {
"transform": "react-bootstrap/lib/${member}",
"preventFullImport": true
}
}
],
[
"prismjs",
{
"languages": [
"clike",
"css",
"html",
"javascript",
"markup",
"mathml",
"python",
"svg",
"xml",
"sql",
"typescript"
],
"theme": "default",
"css": true,
"plugins": ["line-numbers"]
}
]
]
}