Static GitHub Issues

[1837] Can I use decorators in Nuxt.js ?

prev: Changing prefetch and preload options (resourceHints)
next: 'window is not defined' when importing ScrollMagic

Hi, I'm trying to use decorators in Nuxt.js. I tried to edit .babelrc by setting build.babel.babelrc to true, and adding a babelrc that includes the babel-plugin-transform-decorators as a plugin. But the compilation did not work though.

Is it because the Node.js do not support decorators yet so that I could not use decorator in SSR?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1651">#c1651</a>)</em></sub></div>