-
Notifications
You must be signed in to change notification settings - Fork 3
Compatibility with core-js 3 #6
Comments
Hi @mpeyper, The only place where Cosmos knows about Babel is when constructing the default webpack config. It adds a loader rule for But you're saying you use a custom webpack config, so it must be something else. I don't have experience with core-js 3, but please provide a reproducing case when you have the time and I'm sure we'll get to the bottom of this. Cheers! |
Hi @skidding, If you I still haven't had time to set up a repro case, but I might later today. |
Did you try |
Not yet (wasn't aware of it). I'll give it a shot ant report back. |
Hi @skidding, I've checked I think you can close this issue as there is not much for you to do here, and I'm not sure the appetite for wanting to update the classic package for things like this. Out of interest, how close to stable the the |
Cosmos Next is very stable. It's been under development for over a year and a lot of people use it. The only things left before it becomes I wanted to make migration tools but I haven't been able to get enough feedback from Cosmos Classic users to justify the cost. Would you be willing to spend some time to explain/show me your config/proxies/setup? It would be very useful for me and hopefully I can help you make the switch without spending too much time on your part. If you're interested please send me a message on Slack, Twitter, email (see my profile), wherever you're more comfortable. |
@mpeyper Transferred this issue to the Classic repo. |
What's up?
Currently I'm unable to set babel's preset-env to use the
corejs: 3
option, which involves installingcore-js@^3
, without react-cosmos failing on an error about@babel/runtime-corejs2
:Mkay, tell me more...
I'm using a custom webpack config, with a custom babel config setting the value with a custom babel preset... so I'm definately not discounting that this could be an issue with my setup and not an issue with cosmos. I'll try to get some time in the next day to setup a simplified example to replicate, but I wanted to get the issue up in case someone just knows how to fix this.
I'd love to contirbute towards fixing this, but I'm really struggling to work out how
@babel/runtime-corejs2
even becomes a dependency ofreact-cosmos
's published package.The text was updated successfully, but these errors were encountered: