After #71 we stopped transpiling object spread properties, which are used here. Setting target to es2015 maintains support for less modern browsers (still dropping the EOL IE11 browser).
When not setting target esbuild would transpile to esnext which skips transpiling spread properties, among other things.
After #71 we stopped transpiling object spread properties, which are used here. Setting
target
toes2015
maintains support for less modern browsers (still dropping the EOL IE11 browser).When not setting
target
esbuild would transpile toesnext
which skips transpiling spread properties, among other things.Ref: https://esbuild.github.io/content-types/#javascript