Skip to content

Commit

Permalink
fix(webpack): resolve consola to latest (#5729)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and Pooya Parsa committed May 14, 2019
1 parent 62a593d commit 1f5c602
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/webpack/src/config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ export default class WebpackBaseConfig {
}

alias() {
return { ...this.buildContext.options.alias }
return {
...this.buildContext.options.alias,
consola: require.resolve(`consola/dist/consola${this.isServer ? '' : '.browser'}.js`)
}
}

rules() {
Expand Down

0 comments on commit 1f5c602

Please sign in to comment.