vuejs / vue-component-compiler

Compile a single file Vue component into a CommonJS module.
MIT License
342 stars 52 forks source link

feat: support hot reload #53

Closed znck closed 6 years ago

znck commented 6 years ago

Closes #52

znck commented 6 years ago

Hot reload is out of scope of this project.

The project exposes compileToDescriptor to compile .vue files which returns a SFC descriptor with compiled code, you can then assemble various parts to generate javascript code. There is an implementation of assemble method but it environment agnostics so cannot support hot reload but you can use the implementation as example to write your own assemble method.