-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc.js
40 lines (39 loc) · 1.08 KB
/
.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
/* ***************************************************************************
*
* Copyright (c) 2021, the tributary.js authors.
*
* This file is part of the tributary.js library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: {
chrome: "70",
node: "12",
ios: "13"
},
modules: process.env.BABEL_MODULE || false,
useBuiltIns: "usage",
corejs: 3
}
]
],
env: {
test: {
presets: [
[ "@babel/preset-env", { targets: { node: "current" }}],
],
},
},
sourceType: "unambiguous",
plugins: [
["@babel/plugin-proposal-decorators", {legacy: true}],
"transform-custom-element-classes",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-optional-chaining"
]
};