(opts: { targets?: string } = {})
| 113 | }; |
| 114 | |
| 115 | export const babelConfig = (opts: { targets?: string } = {}) => ({ |
| 116 | presets: [ |
| 117 | [ resolve('@babel/preset-env'), { |
| 118 | targets: opts.targets, |
| 119 | // useBuiltIns: 'usage', // this makes the build much bigger |
| 120 | // corejs: 3, |
| 121 | } ] |
| 122 | ], |
| 123 | plugins: [ resolve('@babel/plugin-transform-runtime') ], |
| 124 | }) |
no test coverage detected