Are @babel/runtime
and @babel/plugin-transform-runtime
supposed to be on the same version (e.g. both 7.2.0
exactly)? Or can I (as a library author) specify @babel/runtime
dependency as ^7.0.0
, whilst having the latest @babel/plugin-transform-runtime
?
I'm aware that during the beta versions of Babel 7, there was a breaking change in beta.56
(see https://stackoverflow.com/a/51686837/2148762), but I'm guessing this should no longer be the case with the current stable version?
The reason I ask this is I'd ideally want the helpers from @babel/runtime
to be shared across different packages, and to me leaving the version range open seems like a good idea. But at the same time, I'm not sure how low I should go (^7.0.0
or ^7.2.0
), and whether there's an implicit contract between @babel/runtime
and @babel/plugin-transform-runtime
with regards to version numbers.