UNPKG

369 BJavaScriptView Raw
1module.exports = function(api) {
2 api.cache(true)
3 return {
4 presets: [
5 [
6 '@babel/preset-env',
7 {
8 targets: {
9 node: 8
10 }
11 }
12 ]
13 ],
14 plugins: [
15 '@babel/plugin-transform-modules-commonjs',
16 '@babel/plugin-proposal-optional-chaining'
17 ],
18 babelrcRoots: ['.', 'node_modules']
19 }
20}