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