feat(compiler-sfc): use @vue/compiler-dom by default

This commit is contained in:
Evan You
2019-12-10 22:23:55 -05:00
parent 136ab753b3
commit 818bf17cb7
4 changed files with 5 additions and 15 deletions

View File

@@ -6,12 +6,6 @@ This package contains lower level utilities that you can use if you are writing
The API surface is intentionally minimal - the goal is to reuse as much as possible while being as flexible as possible.
## Why isn't `@vue/compiler-dom` a peerDependency?
Since this package is more often used as a low-level utility, it is usually a transitive dependency in an actual Vue project. It is therefore the responsibility of the higher-level package (e.g. `vue-loader`) to inject `@vue/compiler-dom` via options when calling the `compileTemplate` methods.
Not listing it as a peer dependency also allows tooling authors to use a custom template compiler (built on top of `@vue/compiler-core`) instead of `@vue/compiler-dom`, without having to include it just to fulfill the peer dep requirement.
## API
TODO