From 1f5c6025bd3bb8ae88c22cc2c789c8009093999f Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Tue, 14 May 2019 18:55:14 +0100 Subject: [PATCH] fix(webpack): resolve consola to latest (#5729) --- packages/webpack/src/config/base.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/webpack/src/config/base.js b/packages/webpack/src/config/base.js index 29a8fa301a..ff489e2f03 100644 --- a/packages/webpack/src/config/base.js +++ b/packages/webpack/src/config/base.js @@ -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() {