vnma0 / wafter

Mirai's Back-end & API Server
MIT License
4 stars 3 forks source link

Switch build procedure #83

Closed dungwinux closed 5 years ago

dungwinux commented 5 years ago

Description

Before

babel-minify -> pkg

After

@zeit/ncc -> loose-envify -> terser -> nexe

dungwinux commented 5 years ago

The only problem with this new procedure is an issue related to Webpack:

(node:4500) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    at showFlaggedDeprecation (buffer.js:156:11)
    at new Buffer (buffer.js:171:3)
    at Object.<anonymous> (...\Wafter\dist\index.js:31900:15)
    at __webpack_require__ (...\Wafter\dist\index.js:22:30)
    at Object.<anonymous> (...\Wafter\dist\index.js:34077:20)
    at __webpack_require__ (...\Wafter\dist\index.js:22:30)
    at Object.<anonymous> (...\Wafter\dist\index.js:176:13)
    at __webpack_require__ (...\Wafter\dist\index.js:22:30)
    at Object.<anonymous> (...\Wafter\dist\index.js:57575:3)
    at __webpack_require__ (...\Wafter\dist\index.js:22:30)