Skip to content

Commit c9e0fad

Browse files
committed
Duplicate docs babel config as per eslint request.
1 parent 072f215 commit c9e0fad

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const muiTransformPlugin = [
2+
'transform-imports',
3+
{
4+
'@material-ui/core': {
5+
transform: (importName) => `@material-ui/core/${importName}`,
6+
preventFullImport: false,
7+
skipDefaultConversion: false
8+
}
9+
},
10+
'MUI-CJS'
11+
];
12+
13+
module.exports = {
14+
presets: [['next/babel']],
15+
plugins: [muiTransformPlugin]
16+
};

0 commit comments

Comments
 (0)