diff --git a/src/input/dependency.js b/src/input/dependency.js index 95eac7ae6..00fdeffb5 100644 --- a/src/input/dependency.js +++ b/src/input/dependency.js @@ -32,7 +32,7 @@ function dependencyStream( extensions: [] .concat(config.requireExtension || []) .map(ext => '.' + ext.replace(/^\./, '')) - .concat(['.js', '.json', '.es6', '.jsx']), + .concat(['.mjs', '.js', '.json', '.es6', '.jsx']), transform: [ babelify.configure({ sourceMap: false, diff --git a/src/merge_config.js b/src/merge_config.js index a14a49877..65126cf4c 100644 --- a/src/merge_config.js +++ b/src/merge_config.js @@ -84,6 +84,7 @@ function mergeConfigFile(config): Promise { function mergeConfig(config: Object): Promise { config.parseExtension = (config.parseExtension || []).concat([ + 'mjs', 'js', 'jsx', 'es5',