-
-
Save serhii-havrylenko/170c09c06aa76fa67a0cafbe6dd02ed8 to your computer and use it in GitHub Desktop.
This file contains 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 = (api) => { | |
api.cache(true); | |
return { | |
presets: [ | |
[ | |
'@babel/env', | |
{ | |
targets: { | |
browsers: 'Last 2 Chrome versions, Firefox ESR', | |
node: '8.9', | |
}, | |
}, | |
], | |
[ | |
'@babel/preset-react', | |
{ | |
development: process.env.BABEL_ENV !== 'build', | |
}, | |
], | |
'@babel/preset-typescript', | |
], | |
env: { | |
build: { | |
ignore: [ | |
'**/*.test.tsx', | |
'**/*.test.ts', | |
'**/*.story.tsx', | |
'__snapshots__', | |
'__tests__', | |
'__stories__', | |
], | |
}, | |
}, | |
ignore: ['node_modules'], | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment