Closed linusang-spark closed 1 year ago
I'm facing this issue while building my project in vite. I'm using Vue 2.7. I have some components using the @Component syntax.
@Component
SyntaxError: unknown: Support for the experimental syntax 'decorators' isn't currently enabled
ok got it to work by installing @babel/plugin-proposal-decorators and setting it in the options.
@babel/plugin-proposal-decorators
vueJsx({ babelPlugins: [['@babel/plugin-proposal-decorators', { legacy: true }]], }),
I'm facing this issue while building my project in vite. I'm using Vue 2.7. I have some components using the
@Component
syntax.