nuxt-community / nuxt-class-component

ES / TypeScript decorator for class-style Nuxt/Vue components
MIT License
113 stars 15 forks source link

Babel installation instructions and config doesn't match #6

Closed ndarilek closed 6 years ago

ndarilek commented 6 years ago
$ yarn add babel-plugin-syntax-flow babel-plugin-transform-flow-strip-types

Then:

module.exports = {
  build: {
    babel: {
      plugins: ['transform-decorators-legacy', 'transform-class-properties']
    },
...

The configured plugins don't match those installed in the previous step. Which plugins should I use?

Also, the README.md tells me to install the given plugins/config if I'm using Babel. Don't all Nuxt apps use Babel? And shouldn't the installed plugins use --dev?

Thanks.

This question is available on Nuxt.js community (#c2)
breakingrobot commented 6 years ago

@ndarilek This is fixed as of 1.2.1, I updated the documentation 🎊