diff options
author | 2021-07-19 18:23:39 -0700 | |
---|---|---|
committer | 2021-07-19 18:23:39 -0700 | |
commit | a7e66666e49e3286639439cc993869b3a87ff251 (patch) | |
tree | e7d33647bdc5099a5b23268aab11fcae3d78628b /scripts/cmd/build.js | |
parent | 11100d62ef02a90ea9d0615b942e8839adc0ea45 (diff) | |
download | astro-a7e66666e49e3286639439cc993869b3a87ff251.tar.gz astro-a7e66666e49e3286639439cc993869b3a87ff251.tar.zst astro-a7e66666e49e3286639439cc993869b3a87ff251.zip |
tsconfig fix (#752)
Diffstat (limited to 'scripts/cmd/build.js')
-rw-r--r-- | scripts/cmd/build.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js index 27941b514..92cb724bf 100644 --- a/scripts/cmd/build.js +++ b/scripts/cmd/build.js @@ -10,7 +10,9 @@ const defaultConfig = { minify: false, format: 'esm', platform: 'node', - target: 'node14.16.1', + // There's an issue with 'node12.20' compiling ESM to CJS + // so use 'node13.2' instead. V8 support should be similar. + target: 'node13.2', sourcemap: 'inline', sourcesContent: false, }; @@ -63,7 +65,7 @@ export default async function build(...args) { }); process.on('beforeExit', () => { - builder.stop?.(); + builder.stop && builder.stop(); }); } |