7

what is the difference between these 2 babel plugins?

  • @babel/plugin-proposal-class-properties

  • babel-plugin-transform-class-properties.

Which one should I use?

After looking here and here it's still not clear to me.

Tenbrink
  • 386
  • 5
  • 11

1 Answers1

7

I think you should use @babel/plugin-proposal-class-properties because it is following current naming convention.

Renames: -proposal-
Any proposals will be named with -proposal- now to signify that they aren't officially in JavaScript yet.
So @babel/plugin-transform-class-properties becomes @babel/plugin-proposal-class-properties, and we would name it back once it gets into Stage 4.

from We’re nearing the 7.0 Babel release. Here’s all the cool stuff we’ve been doing.

Aurelijus Rozenas
  • 2,176
  • 2
  • 28
  • 40