File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/@vue/cli-shared-utils/lib Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,17 @@ const pluginRE = /^(@vue\/|vue-|@[\w-]+\/vue-)cli-plugin-/
2
2
const scopeRE = / ^ @ [ \w - ] + \/ /
3
3
const officialRE = / ^ @ v u e \/ /
4
4
5
+ const officialPlugins = [
6
+ 'babel' ,
7
+ 'e2e-cypress' ,
8
+ 'e2e-nightwatch' ,
9
+ 'eslint' ,
10
+ 'pwa' ,
11
+ 'typescript' ,
12
+ 'unit-jest' ,
13
+ 'unit-mocha'
14
+ ]
15
+
5
16
exports . isPlugin = id => pluginRE . test ( id )
6
17
7
18
exports . isOfficialPlugin = id => exports . isPlugin ( id ) && officialRE . test ( id )
@@ -14,6 +25,9 @@ exports.resolvePluginId = id => {
14
25
if ( pluginRE . test ( id ) ) {
15
26
return id
16
27
}
28
+ if ( officialPlugins . includes ( id ) ) {
29
+ return `@vue/cli-plugin-${ id } `
30
+ }
17
31
// scoped short
18
32
// e.g. @vue /foo, @bar/foo
19
33
if ( id . charAt ( 0 ) === '@' ) {
You can’t perform that action at this time.
0 commit comments