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 3621017 commit 6ca265aCopy full SHA for 6ca265a
packages/@vue/cli-service/lib/Service.js
@@ -143,9 +143,9 @@ module.exports = class Service {
143
}
144
145
resolvePlugins (inlinePlugins, useBuiltIn) {
146
- const idToPlugin = id => ({
+ const idToPlugin = (id, absolutePath) => ({
147
id: id.replace(/^.\//, 'built-in:'),
148
- apply: require(id)
+ apply: require(absolutePath || id)
149
})
150
151
let plugins
@@ -185,7 +185,7 @@ module.exports = class Service {
185
186
return { id, apply }
187
} else {
188
- return idToPlugin(resolveModule(id, this.pkgContext))
+ return idToPlugin(id, resolveModule(id, this.pkgContext))
189
190
191
plugins = builtInPlugins.concat(projectPlugins)
0 commit comments