From a68b5e80763cd0c5ef7a4bfb62912cc6a2dcf296 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Sun, 14 Feb 2021 13:49:38 +0100 Subject: [PATCH] Transpile to es2015 When not setting target esbuild transpiles to `esnext` which would skip transpiling spread properties, among other things. Ref: https://esbuild.github.io/content-types/#javascript --- build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.js b/build.js index 9455f4a..f3fe602 100644 --- a/build.js +++ b/build.js @@ -6,7 +6,8 @@ const options = { bundle: true, minify: true, sourcemap: true, - external: ['path'] + external: ['path'], + target: 'es2015' }; (async () => { await esbuild