forked from DryKISS/industryui.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
53 lines (53 loc) · 912 Bytes
/
babel.config.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
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
presets: ['@babel/react'],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-class-properties',
[
'styled-components',
{
displayName: true,
ssr: true
}
],
[
'module-resolver',
{
root: ['./'],
alias: {
api: './api',
config: './config',
decorators: './.storybook/decorators',
root: './',
storybook: './.storybook',
themes: './.storybook/themes'
}
}
]
],
env: {
build: {
presets: [
'next/babel',
[
'@babel/env',
{
modules: false
}
]
]
},
test: {
presets: [
[
'@babel/env',
{
targets: {
node: 'current'
}
}
]
]
}
}
}