Open ItamarGronich opened 2 years ago
I'm glad you find this repository helpful. I'll try to address your issue ASAP. You can watch the repo for new changes or star it.
Last time I tried rollup, it was giving multiple issues. Hence, I selected webpack 5. But let me check what is the issue.
I've tried all the configuration along with babel. But somehow it is sill including const
. Not sure why.
Description
library contains non es5 output. Seems like this library doesn't go through the build process actually before being published. Otherwise babel (which doesn't have a target or a browserslist by the way) will compile to es5 by default.
My suggested solution is to run the library through a build process using babel and add a
.browserslistrc
file to specify the target explicitly rather than relying on convention and preset-env's default configuration. preferably rollup which is more tailored towards libraries and has es modules export capabilities (webpack 5 has them too but it's new).Input
None
Code
None
Output
Non es5 keywords like
const
exist in library output.expected output
output should be es5 without any const, let etc...
Or, if you decide not to support older browsers, please specify so in the documentation.
Would you like to work on this issue?
Bookmark this repository for further updates.