Skip to content

Commit

Permalink
fix: fix resolving extra babel plugins we add
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Feb 21, 2019
1 parent 45493aa commit 4387998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/babel/evaluate.js
Expand Up @@ -164,8 +164,8 @@ module.exports = function evaluate(
presets: [[require.resolve('./index'), options]],
plugins: [
// Include this plugin to avoid extra config when using { module: false } for webpack
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-proposal-export-namespace-from',
require.resolve('@babel/plugin-transform-modules-commonjs'),
require.resolve('@babel/plugin-proposal-export-namespace-from'),
// We don't support dynamic imports when evaluating, but don't wanna syntax error
// This will replace dynamic imports with an object that does nothing
require.resolve('./dynamic-import-noop'),
Expand Down

0 comments on commit 4387998

Please sign in to comment.