fix(webpack): resolve consola to latest (#5729)

This commit is contained in:
Xin Du (Clark) 2019-05-14 18:55:14 +01:00 committed by Pooya Parsa
parent 62a593dcfd
commit 1f5c6025bd

View File

@ -202,7 +202,10 @@ export default class WebpackBaseConfig {
} }
alias() { alias() {
return { ...this.buildContext.options.alias } return {
...this.buildContext.options.alias,
consola: require.resolve(`consola/dist/consola${this.isServer ? '' : '.browser'}.js`)
}
} }
rules() { rules() {