Skip to content

Commit

Permalink
Transpile to es2015
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nikolaik committed Feb 14, 2021
1 parent 7b26fee commit a68b5e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const options = {
bundle: true,
minify: true,
sourcemap: true,
external: ['path']
external: ['path'],
target: 'es2015'
};
(async () => {
await esbuild
Expand Down

0 comments on commit a68b5e8

Please sign in to comment.