Closed blieque closed 7 years ago
It is in peerDependencies.
I admit I missed that, but I still feel like it should be a standard dependency. vue-template-loader
isn't a plugin for vue-template-compiler
, but rather requires it to operate. I think vue-template-loader
should depend on it in just the same way that vueify
does. It seems vue-loader
also only specifies it in devDependencies
, which I find very odd. Is there reasoning to it? Bear in mind that NPM ^3.0.0 doesn't install peerDependencies
by default.
Because, if we add it as direct dependency, the users cannot specify vue-template-compiler version. It will occur version mismatch error with Vue core.
Sorry if I'm missing something, but I think
vue-template-compiler
needs to be adependency
as well as adevDependency
, or perhaps just the former. I rannpm i -D vue-template-loader
, but the webpack build failed until I manually installedvue-template-compiler
too.