kadikraman / draftjs-md-converter

Converts content from Draft.js blocks to Markdown and vice versa.
https://kadikraman.github.io/draftjs-md-converter/
MIT License
145 stars 37 forks source link

Transpile to ES2015 syntax #72

Closed nikolaik closed 3 years ago

nikolaik commented 3 years ago

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.

Ref: https://esbuild.github.io/content-types/#javascript

kadikraman commented 3 years ago

Published as a patch 😊 🚀