-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
29 lines (28 loc) · 987 Bytes
/
index.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
const preset = () => ({
presets: [
require('@babel/preset-env'),
require('@babel/preset-react'),
require('@babel/preset-typescript'),
],
plugins: [
[require('@babel/plugin-proposal-decorators'), { legacy: true }],
[require('@babel/plugin-proposal-class-properties'), { loose: true }],
[require('@babel/plugin-proposal-private-methods'), { loose: true }],
[require('@babel/plugin-proposal-private-property-in-object'), { loose: true }],
require('@babel/plugin-syntax-dynamic-import'),
require('@babel/plugin-proposal-function-bind'),
require('@babel/plugin-proposal-export-namespace-from'),
require('@babel/plugin-transform-modules-commonjs'),
require('@babel/plugin-transform-runtime'),
[
require("@emotion/babel-plugin"),
{
"sourceMap": true,
"autoLabel": 'dev-only',
"labelFormat": "[filename]--[local]",
"cssPropOptimization": true
},
],
],
});
module.exports = preset;