forked from standard-things/create-esm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc.js
41 lines (40 loc) · 803 Bytes
/
.babelrc.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
"use strict"
module.exports = {
env: {
production: {
plugins: [
["transform-remove-console", {
exclude: ["error"]
}],
"transform-remove-debugger"
]
}
},
plugins: [
["@babel/proposal-class-properties", {
loose: true
}],
"@babel/proposal-optional-catch-binding",
["@babel/transform-arrow-functions", {
spec: false
}],
["@babel/transform-block-scoping", {
throwIfClosureRequired: false
}],
["transform-for-of-as-array", {
loose: true
}]
],
presets: [
["@babel/env", {
exclude: [
"transform-async-to-generator",
"transform-for-of",
"transform-function-name"
],
loose: true,
modules: false,
targets: { node: 6 }
}]
]
}