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 a602b2c commit 177059bCopy full SHA for 177059b
packages/@vue/cli-ui/src/graphql-api/connectors/client-addons.js
@@ -50,11 +50,14 @@ function serve (req, res) {
50
const addon = findOne(id)
51
if (addon) {
52
const basePath = getBasePath(require.resolve(addon.path || ''))
53
- basePath && res.sendFile(path.join(basePath, file))
54
- } else {
55
- res.status(404)
56
- res.send(`Addon ${id} not found in loaded addons. Try opening a vue-cli project first?`)
+ if (basePath) {
+ res.sendFile(path.join(basePath, file))
+ return
+ }
57
}
58
+
59
+ res.status(404)
60
+ res.send(`Addon ${id} not found in loaded addons. Try opening a vue-cli project first?`)
61
62
63
module.exports = {
0 commit comments