Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fcf27e3

Browse filesBrowse files
committed
fixup! fix: compatibility with Vue 2.7
1 parent a648958 commit fcf27e3
Copy full SHA for fcf27e3

File tree

1 file changed

+6
-4
lines changed
Filter options
  • packages/@vue/cli-service/lib/config

1 file changed

+6
-4
lines changed

‎packages/@vue/cli-service/lib/config/base.js

Copy file name to clipboardExpand all lines: packages/@vue/cli-service/lib/config/base.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,19 @@ module.exports = (api, options) => {
6161

6262
if (vueMajor === 2) {
6363
// for Vue 2 projects
64-
const vueLoaderCacheConfig = api.genCacheConfig('vue-loader', {
64+
const partialIdentifier = {
6565
'vue-loader': require('@vue/vue-loader-v15/package.json').version,
66-
'@vue/component-compiler-utils': require('@vue/component-compiler-utils/package.json').version,
67-
})
66+
'@vue/component-compiler-utils': require('@vue/component-compiler-utils/package.json').version
67+
}
6868

6969
try {
70-
vueLoaderCacheConfig['vue-template-compiler'] = require('vue-template-compiler/package.json').version
70+
partialIdentifier['vue-template-compiler'] = require('vue-template-compiler/package.json').version
7171
} catch (e) {
7272
// For Vue 2.7 projects, `vue-template-compiler` is not required
7373
}
7474

75+
const vueLoaderCacheConfig = api.genCacheConfig('vue-loader', partialIdentifier)
76+
7577
webpackConfig.resolve
7678
.alias
7779
.set(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.