feat: support mjs.json js compile & add API
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@ -241,7 +241,7 @@
|
||||
}
|
||||
cacheModules[id] = module
|
||||
var cfile = _canonical(file)
|
||||
if (cfile.endsWith('.js')) {
|
||||
if (cfile.endsWith('.js') || cfile.endsWith('.mjs.json')) {
|
||||
compileJs(module, file, __assign(optional, { id: id }))
|
||||
} else if (cfile.endsWith('.json')) {
|
||||
compileJson(module, file)
|
||||
|
Reference in New Issue
Block a user