knpwrs / vue-node

Load vue components in node.
MIT License
61 stars 5 forks source link

Config note for `vue-loader@^12.0` #9

Closed yyx990803 closed 7 years ago

yyx990803 commented 7 years ago

In the near future, with the following setup:

The *.vue component will automatically be compiled in "SSR optimization mode" which makes its render function unsable for DOM-based rendering/testing. For this lib to work properly after Vue 2.4 is out, the user will need to turn this off explicitly using a new vue-loader option optimizeSSR: false. It will probably be at least a month from now but just want to give you a heads up.

knpwrs commented 7 years ago

Thanks, @yyx990803. Is that option available now?

yyx990803 commented 7 years ago

@knpwrs yeah it's already in vue-loader@12.1.1.