babel-plugin-transform-vue-jsx icon indicating copy to clipboard operation
babel-plugin-transform-vue-jsx copied to clipboard

Migrate to Babel Scoped Packages

Open mattdesl opened this issue 7 years ago • 8 comments

Babel made a pretty massive (and rather unfortunate) change in that it's moved everything to scoped packages. This module should probably migrate over to v7 (and fix #112), but also should upgrade its peer dependence on babel-plugin-syntax-jsx to the new scoped @babel/plugin-syntax-jsx. This would be a breaking change for this module.

mattdesl avatar Feb 22 '18 17:02 mattdesl

@yyx990803, can I start working on this?

nickmessing avatar Feb 23 '18 07:02 nickmessing

@nickmessing actually, I've thought about collecting the following packages into a monorepo:

  • babel-plugin-transform-vue-jsx
  • babel-helper-vue-jsx-merge-props
  • babel-plugin-jsx-v-model
  • babel-plugin-jsx-event-modifiers

Also we can move them towards scoped packages as well, under @vue.

If you are interested to work on this I can create a new repo for you (vuejs/jsx)

yyx990803 avatar Feb 23 '18 14:02 yyx990803

@yyx990803, yes, I'd love to

nickmessing avatar Feb 23 '18 15:02 nickmessing

@yyx990803 I'll be helping @nickmessing with this as well. Will get a game plan setup tomorrow.

shadowcodex avatar Feb 23 '18 16:02 shadowcodex

Hi @yyx990803 – it seems like everything is almost ready, but the npm is still stuck on @3.x versions. Or is it still WIP?

mattdesl avatar Jun 11 '18 20:06 mattdesl

@mattdesl 4.x is published and available via the next dist-tag

yyx990803 avatar Jun 11 '18 20:06 yyx990803

Great, thanks ! 😊

On Jun 11, 2018, at 4:30 PM, Evan You [email protected] wrote:

@mattdesl 4.x is published and available via the next dist-tag

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

mattdesl avatar Jun 11 '18 21:06 mattdesl

I just moved to use JSX inside Vue and it is not clear what path to follow, why and which is best (now that Babel 7 is released and stable) and what are the differences between these two repos: vuejs/babel-plugin-transform-vue-jsx and vuejs/jsx.

I know vuejs/jsx is a mono-repo, but from the point of view of the user what is the difference between them: are them aligned to the same features?

@vue/babel-preset-jsx is broken at the moment.

I hope in a unification of the efforts in one unique, stable, clear and maintained direction, inline with overall Vue high quality standards.

Similar issue: #136

daniele-orlando avatar Nov 20 '18 18:11 daniele-orlando