Do not build from esm while watching

This commit is contained in:
Jerko Steiner 2019-09-25 13:51:28 +07:00
parent 173b7cf66e
commit d9decd385a

View File

@ -204,9 +204,9 @@ export async function frontend(...argv: string[]) {
if (args['full-paths']) {
watchArgs.push('--full-paths')
}
await build(...['-p', path, '--esm'])
await build(...['-p', path])
const promises = [
build(...['-p', path, '--watch', '--esm']),
build(...['-p', path, '--watch']),
watchJs(path, ...watchArgs),
watchCss(path),
]