Skip to content

Commit

Permalink
Merge pull request #2697 from shuhei/enable-plugins-built-with-babel-6
Browse files Browse the repository at this point in the history
Enable plugins built with Babel 6.0
  • Loading branch information
sebmck committed Oct 31, 2015
2 parents 22fb054 + 81b7af2 commit b5b7e34
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export default class OptionManager {
let pluginLoc = resolve(`babel-plugin-${plugin}`, dirname) || resolve(plugin, dirname);
if (pluginLoc) {
plugin = require(pluginLoc);
plugin = plugin.__esModule ? plugin.default : plugin;
} else {
throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i));
}
Expand Down

0 comments on commit b5b7e34

Please sign in to comment.