Replace deprecated terser plugin (#1423)

* Replace deprecated terser plugin

* Update Node version

* Fix build on windows

* Use path resolve instead of posix

---------

Co-authored-by: robo-mop <realaryanpingle@gmail.com>
This commit is contained in:
Surma
2024-08-19 08:50:41 +01:00
committed by GitHub
parent 5f72c2ed74
commit e8d35e0fb6
6 changed files with 239 additions and 32 deletions

View File

@@ -64,6 +64,7 @@ export default function simpleTS(mainPath, { noBuild, watch } = {}) {
await new Promise((resolve) => {
const proc = spawn(tscPath, args, {
stdio: 'inherit',
shell: true,
});
proc.on('exit', (code) => {