mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-26 14:58:30 -05:00
fix(typescript): add missing dependencies and require.resolve compiler (#6456)
This commit is contained in:
@@ -85,7 +85,7 @@ module.exports = (api, projectOptions) => {
|
||||
extensions: {
|
||||
vue: {
|
||||
enabled: true,
|
||||
compiler: isVue3 ? '@vue/compiler-sfc' : 'vue-template-compiler'
|
||||
compiler: isVue3 ? require.resolve('@vue/compiler-sfc') : require.resolve('vue-template-compiler')
|
||||
}
|
||||
},
|
||||
diagnosticOptions: {
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"dependencies": {
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"@vue/cli-shared-utils": "^5.0.0-beta.0",
|
||||
"@babel/core": "^7.12.16",
|
||||
"babel-loader": "^8.2.2",
|
||||
"cache-loader": "^4.1.0",
|
||||
"fork-ts-checker-webpack-plugin": "^6.1.0",
|
||||
@@ -37,11 +38,15 @@
|
||||
"peerDependencies": {
|
||||
"@vue/cli-service": "^3.0.0 || ^4.0.0 || ^5.0.0-0",
|
||||
"@vue/compiler-sfc": "^3.0.0-beta.14",
|
||||
"vue-template-compiler": "^2.0.0",
|
||||
"typescript": ">=2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@vue/compiler-sfc": {
|
||||
"optional": true
|
||||
},
|
||||
"vue-template-compiler": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user