Skip to content

Commit

Permalink
Allow dynamic import proposal in node_modules (#5047)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Sep 20, 2018
1 parent 9ac99ce commit e8b0ee8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-preset-react-app/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ module.exports = function(api, opts) {
async: false,
},
],
// Adds syntax support for import()
require('@babel/plugin-syntax-dynamic-import').default,
].filter(Boolean),
};
};

0 comments on commit e8b0ee8

Please sign in to comment.