vuejs / component-compiler-utils

Lower level utilities for compiling Vue single file components
320 stars 75 forks source link

Dependency on vue-template-compiler #11

Closed mimecorg closed 6 years ago

mimecorg commented 6 years ago

The component-compiler-utils module requires vue-template-compiler, but it's not listed as a dependency (only a dev dependency). When I use vue-loader with a custom template compiler, and I don't install vue-template-compiler, I get an error.

Of course as a workaround I can install vue-template-compiler manually. But in that case I end up having three template compilers installed: vue-template-compiler, vue-template-es2015-compiler and my custom template compiler. Is that intentional?

znck commented 6 years ago

It requires vue-template-compiler as a peer dependency. Though it is missing from package.json, that is certainly unintended.

ishitatsuyuki commented 6 years ago

@znck Do you know if this should be better a normal dependency, or a peerDependency?

znck commented 6 years ago

It should be a peer as it’s version should match with the locally installed Vue version.