forked from FormidableLabs/victory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.babelrc.js
34 lines (34 loc) · 926 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
module.exports = {
inputSourceMap: true,
presets: ["@babel/preset-react", "@babel/preset-typescript"],
plugins: [
"lodash",
["@babel/proposal-class-properties", { loose: true }],
"@babel/transform-arrow-functions",
"@babel/transform-block-scoping",
"@babel/transform-classes",
"@babel/transform-computed-properties",
"@babel/transform-destructuring",
"@babel/transform-parameters",
"@babel/transform-shorthand-properties",
"@babel/transform-spread",
"@babel/transform-template-literals",
"@babel/proposal-object-rest-spread",
"@babel/proposal-optional-chaining",
"@babel/plugin-proposal-export-namespace-from",
],
ignore: ["**/*.d.ts"],
env: {
commonjs: {
plugins: [
[
"@babel/transform-modules-commonjs",
{
strict: false,
allowTopLevelThis: true,
},
],
],
},
},
};