-
-
Notifications
You must be signed in to change notification settings - Fork 530
Expand file tree
/
Copy path.babelrc.js
More file actions
25 lines (24 loc) · 647 Bytes
/
.babelrc.js
File metadata and controls
25 lines (24 loc) · 647 Bytes
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
const presetEnvOptions = {};
if (process.env.ESM === "1") {
presetEnvOptions.modules = false;
}
const config = {
"presets": [
["@babel/preset-env", presetEnvOptions],
"@babel/preset-typescript"
],
"plugins": [
["@babel/plugin-transform-class-properties", { "loose": true }],
["@babel/plugin-transform-private-methods", { "loose": true }],
["@babel/plugin-transform-runtime", { "loose": true }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
],
"env": {
"production": {
"compact": true,
"comments": false,
"minified": true
}
}
};
module.exports = config;