This commit is contained in:
kuangthree 2024-02-03 20:06:52 +08:00
parent 175a39dbc0
commit afcefeb995
1 changed files with 2 additions and 2 deletions

View File

@ -73,9 +73,9 @@ function generateImportFunction(type, pathParser) {
} }
async function createEmptyExtension(name){ async function createEmptyExtension(name){
const extensionInfo = await import(`../../extension/${name}/info.json`,{assert:{type:'json'}}) const extensionInfo = await lib.init.promises.json(`${lib.assetURL}extension/${name}/info.json`)//await import(`../../extension/${name}/info.json`,{assert:{type:'json'}})
.then(info=>{ .then(info=>{
return info.default; return info;
},()=>{ },()=>{
return { return {
name:name, name:name,