Skip to content

Conversation

@nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo added the enhancement New feature or request label Aug 10, 2018
@nicolo-ribaudo nicolo-ribaudo requested a review from hzoo August 10, 2018 07:25
Copy link
Member

@hzoo hzoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove the original runtime? Don't need both. But it depends on if they want corejs or not. Technically if they used helpers true or false, or polyfill true/false it would be different as well but it gets complicated haha

And what happens if you use transform-runtime with options already?

@nicolo-ribaudo
Copy link
Member Author

I updatet the PR:

  • Don't duplicate the runtime in the dependencies
  • Replace runime -> runtime-corejs only when the old version did already inclue the runtime:
    @babel/runtime: 7.0.0-beta.35 -> @babel/runtime-corejs
    @babel/runtime: 7.0.0-rc.1 -> @babel/runtime
    
  • Only add the corejs option when upgrading from Babel 6. Display a warning for Babel 7 since it could be an old beta with corejs included in babel/runtime.

) {
// 7.0.0-alpha.5 <= x <= 7.0.0-beta.55
console.warn(
"Babel was not able to infer dedice wether or not to add a "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Babel was not able to decide whether or not to add a

@nicolo-ribaudo nicolo-ribaudo force-pushed the runtime-corejs2 branch 2 times, most recently from 47c8291 to 6762617 Compare August 28, 2018 14:00
@danez danez merged commit fee7a47 into babel:master Mar 23, 2019
@nicolo-ribaudo nicolo-ribaudo deleted the runtime-corejs2 branch March 23, 2019 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants