feat(server): allow passing modules manually

自行維護 require 名單以相容 Webpack。
This commit is contained in:
pan93412
2022-01-26 14:14:24 +08:00
parent fc9630aa39
commit 5bf53028ef
2 changed files with 54 additions and 24 deletions

2
app.js
View File

@ -1,4 +1,4 @@
#!/usr/bin/env node
require('./server')({
require('./server').serveNcmApi({
checkVersion: true,
})