feat: support mjs
This commit is contained in:
parent
aa78144628
commit
7935597783
|
@ -1,3 +1,3 @@
|
|||
module.exports = {
|
||||
exts: ['.js'],
|
||||
exts: ['.mjs', '.js'],
|
||||
};
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user