Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have vue-class decorators act server side #245

Closed
yringler opened this issue Apr 30, 2018 · 1 comment
Closed

have vue-class decorators act server side #245

yringler opened this issue Apr 30, 2018 · 1 comment

Comments

@yringler
Copy link

yringler commented Apr 30, 2018

I was

  • using the webpack vue-loader.
  • marking all node modules as webpack "externals", so I can get vue from a cdn and not have it as part of my build

When I loaded app, I was surprised when there were errors in my console, stating that VueClassComponent was not defined.

It would seem that the decorators are only being applied client side..
However, being that the purpose of these decorators is simply to transform the code into a vue options object, could that happen server side, perhaps as an extension to vue-loader, during the .vue compilation, removing the need for an additional client-side dependency?

@ktsn
Copy link
Member

ktsn commented May 3, 2018

You can transpile your server side code...

@ktsn ktsn closed this as completed May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants