v1
宇天 2020-09-26 22:36:26 +08:00
parent d802e1cd39
commit 6aca3e2695
1 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ function hideProperty(host, name, value) {
value: value,
writable: true,
enumerable: false,
configurable: true
configurable: true,
})
}
@ -116,7 +116,7 @@ export default class Five {
var list = fs.ls(dir)
if (list) {
list.forEach(item => {
list.forEach((item) => {
var { name } = path.parse(item)
if (name.startsWith('.')) {
return
@ -127,7 +127,7 @@ export default class Five {
item = path.join(item, './index.js')
}
this.__MODULES__[name] = import(item).catch(err => {
this.__MODULES__[name] = import(item).catch((err) => {
return { default: null }
})
})