-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
babel.config.cjs
42 lines (42 loc) · 1.6 KB
/
babel.config.cjs
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
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react', '@emotion/babel-preset-css-prop'],
plugins: [
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-optional-chaining',
[
'module-resolver',
{
alias: {
'@table-library/react-table-library/types': './src/types',
'@table-library/react-table-library/common': './src/common',
'@table-library/react-table-library/table': './src/table',
'@table-library/react-table-library/compact': './src/compact',
'@table-library/react-table-library/virtualized': './src/virtualized',
// features
'@table-library/react-table-library/theme': './src/theme',
'@table-library/react-table-library/resize': './src/resize',
'@table-library/react-table-library/sort': './src/sort',
'@table-library/react-table-library/select': './src/select',
'@table-library/react-table-library/tree': './src/tree',
'@table-library/react-table-library/pagination': './src/pagination',
// themes
'@table-library/react-table-library/baseline': './src/baseline',
'@table-library/react-table-library/mantine': './src/mantine',
'@table-library/react-table-library/chakra-ui': './src/chakra-ui',
'@table-library/react-table-library/material-ui': './src/material-ui',
},
},
],
[
'@babel/plugin-transform-runtime',
{
regenerator: true,
},
],
],
env: {
test: {
presets: ['@babel/preset-env', '@babel/preset-react'],
},
},
};