Closed katydecorah closed 4 years ago
One more idea, we could replace uglifyjs with https://github.com/terser/terser, but this may risk limiting browser support to modern browsers https://caniuse.com/#feat=const
Hey @katydecorah thanks for catching this!
I originally upgraded fusspot to use v.objectOf which was only introduced in one of the later releases https://github.com/mapbox/fusspot/blob/master/CHANGELOG.md, however I found it wasn't working as I liked expected and in the end swapped back to v.strictShape in https://github.com/mapbox/mapbox-sdk-js/pull/368/commits/d890ee4bff43ac816fa9a67bef4a5af6c54dad95
So we're not actually needing to use an upgraded fusspot, so I'm happy to just revert it back to 0.4.0 for now. That's the simplest solution right now.
Then we can look into other options like babel or terser in future work, hows that sound @katydecorah?
So we're not actually needing to use an upgraded fusspot, so I'm happy to just revert it back to 0.4.0 for now. That's the simplest solution right now.
@andrewharvey sounds great to me! And #381 is a great idea, too!
@katydecorah I wasn't sure if you wanted to do this change or were looking for help, so I put together some PR's to address this. I think those can be merged if you're happy with them, and since they don't need to go in the CHANGELOG, after they are merged the 0.11.0
tag can be created and publish the release to npm.
I think those can be merged if you're happy with them, and since they don't need to go in the CHANGELOG, after they are merged the 0.11.0 tag can be created and publish the release to npm.
Thanks @andrewharvey. This is complete! v0.11.0 is published to npm.
While attempting to release 0.11.0 #371, I receive the following error when attempting to build the bundle (
npm run bundle
):I believe this
const
statement was introduced when @mapbox/fusspot was updated to the latest version.@andrewharvey A couple options I'm thinking about so far, curious what you think: