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() {