Skip to content

Commit 14a2dc7

Browse files
committed
fix: do not swallow vue.config.js errors
close #874, close #866
1 parent 64b4515 commit 14a2dc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/@vue/cli-service/lib/Service.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ module.exports = class Service {
171171
)
172172
fileConfig = null
173173
}
174-
} catch (e) {}
174+
} catch (e) {
175+
error(`Error loading ${chalk.bold('vue.config.js')}:`)
176+
throw e
177+
}
175178

176179
// package.vue
177180
pkgConfig = this.pkg.vue

0 commit comments

Comments
 (0)