forked from vladislavtkachenko/skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
babel.config.js
41 lines (40 loc) · 920 Bytes
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// https://github.com/babel/babel/issues/8672
// https://babeljs.io/docs/en/config-files#6x-vs-7x-babelrc-loading
module.exports = function (api) {
api.cache(true);
return {
comments: false,
presets: [
[
'@babel/env',
{
targets: {
browsers: [
'last 15 versions',
'ie >= 9',
'safari >= 8',
'ios >= 8',
],
},
modules: false,
useBuiltIns: 'usage',
},
],
'@babel/preset-react',
],
plugins: [
[
'@babel/plugin-transform-runtime',
{
corejs: false,
helpers: true,
regenerator: true,
useESModules: false,
},
],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-object-rest-spread',
'@babel/plugin-syntax-dynamic-import',
],
};
};