feat: support mjs

This commit is contained in:
cha0s 2022-08-11 06:38:02 -05:00
parent aa78144628
commit 7935597783
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,3 @@
module.exports = {
exts: ['.js'],
exts: ['.mjs', '.js'],
};

View File

@ -15,4 +15,12 @@ export const hooks = {
*/
id: 'flecks',
}),
'@flecks/core.build': (target, config) => {
config.use.push(({config}) => {
config.module
.rule('mjs$')
.test(/.mjs$/)
.type('javascript/auto');
});
},
};