generated from effector/razzle-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.babelrc.js
35 lines (34 loc) · 864 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
35
module.exports = (api) => {
api.cache(true);
const debug = process.env.EFFECTOR_DEBUG === 'true';
return {
plugins: [
[
'effector/babel-plugin',
{
addLoc: debug,
addNames: process.env.NODE_ENV !== 'production',
debugSids: debug,
factories: ['src/entities/opengraph', '@box/entities/opengraph'],
},
],
// debug && [
// 'module-resolver',
// {
// alias: {
// effector: 'effector-logger',
// },
// },
// ],
[
'styled-components',
{
displayName: process.env.STYLED_DEBUG === 'true',
ssr: true,
},
],
['@babel/plugin-proposal-export-namespace-from'],
].filter(Boolean),
presets: ['patronum/babel-preset', 'atomic-router/babel-preset'],
};
};