1 | module.exports = api => {
|
2 | api.cache(true);
|
3 | return {
|
4 | "presets": [
|
5 | [
|
6 | "@babel/preset-env",
|
7 | {
|
8 | "modules": false,
|
9 | "useBuiltIns": "usage",
|
10 | "targets": {
|
11 | "browsers": [
|
12 | "> 1%",
|
13 | "last 2 versions",
|
14 | "not ie <= 8"
|
15 | ],
|
16 | "node": "current"
|
17 | }
|
18 | }
|
19 | ]
|
20 | ],
|
21 | "plugins": [
|
22 | "@babel/plugin-proposal-object-rest-spread",
|
23 | "@babel/plugin-syntax-dynamic-import",
|
24 | "@babel/plugin-transform-async-to-generator",
|
25 | "@babel/plugin-transform-runtime",
|
26 | ]
|
27 | }
|
28 | }
|