Support file names that end in cjs/mjs/xjs

pull/4433/head
Pez Cuckow 2023-11-10 17:15:54 +01:00
parent c6a8eee73d
commit 341127399d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ async function loadNodeConfig(fileInfo) {
module: module,
name: name,
file: file,
template: file.replace(/\.js$/,".html"),
template: file.replace(/\.(\w)?js$/,".html"),
enabled: isEnabled,
loaded:false,
version: version,