We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a25e2 commit f942cc1Copy full SHA for f942cc1
packages/@vue/cli-service/lib/Service.js
@@ -140,9 +140,9 @@ module.exports = class Service {
140
}
141
142
resolvePlugins (inlinePlugins, useBuiltIn) {
143
- const idToPlugin = id => ({
+ const idToPlugin = (id, absolutePath) => ({
144
id: id.replace(/^.\//, 'built-in:'),
145
- apply: require(id)
+ apply: require(absolutePath || id)
146
})
147
148
let plugins
@@ -181,7 +181,7 @@ module.exports = class Service {
181
182
return { id, apply }
183
} else {
184
- return idToPlugin(resolveModule(id, this.pkgContext))
+ return idToPlugin(id, resolveModule(id, this.pkgContext))
185
186
187
plugins = builtInPlugins.concat(projectPlugins)
0 commit comments