File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = function ( api ) {
2
2
api . cache ( true ) ;
3
- const presets = [ 'razzle' ] ;
3
+ const presets = [
4
+ [
5
+ 'razzle' ,
6
+ {
7
+ '@babel/preset-react' : { runtime : 'automatic' } ,
8
+ } ,
9
+ ] ,
10
+ ] ;
4
11
const plugins = [
12
+ 'lodash' ,
13
+ '@babel/plugin-proposal-export-default-from' , // Stage 1
14
+ '@babel/plugin-syntax-export-namespace-from' , // Stage 4
15
+ '@babel/plugin-proposal-throw-expressions' , // Stage 2
16
+ '@babel/plugin-proposal-nullish-coalescing-operator' , // Stage 4
5
17
[
6
18
'react-intl' , // React Intl extractor, required for the whole i18n infrastructure to work
7
19
{
8
20
messagesDir : './build/messages/' ,
9
21
} ,
10
22
] ,
23
+ '@loadable/babel-plugin' , // Required by the @loadable plugin
11
24
] ;
12
25
13
26
return {
You can’t perform that action at this time.
0 commit comments