update node version in optimize

This commit is contained in:
João Moreno 2021-05-26 13:32:50 +02:00
parent 0a7a69f190
commit 9cba86888c
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -254,7 +254,7 @@ export function minifyTask(src: string, sourceMapBaseUrl?: string): (cb: any) =>
sourcemap: 'external',
outdir: '.',
platform: 'node',
target: ['node12.18'],
target: ['node14.16'],
write: false
}).then(res => {
const jsFile = res.outputFiles.find(f => /\.js$/.test(f.path))!;