From 3f83921c71eb2f176885ef7ca774385d5e0ec1f4 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 16 Mar 2018 23:34:54 +0330 Subject: [PATCH] add mjs to supported extensions --- lib/common/options.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/common/options.mjs b/lib/common/options.mjs index ed5b0c8135..624f427ad0 100644 --- a/lib/common/options.mjs +++ b/lib/common/options.mjs @@ -77,6 +77,10 @@ Options.from = function (_options) { options.extensions.unshift('js') } + if (options.extensions.indexOf('mjs') === -1) { + options.extensions.unshift('mjs') + } + // If app.html is defined, set the template path to the user template options.appTemplatePath = path.resolve(options.buildDir, 'views/app.template.html') if (fs.existsSync(path.join(options.srcDir, 'app.html'))) {