From e17b6eea5be97d4a21309801b03b1649508afe11 Mon Sep 17 00:00:00 2001 From: Jarda Snajdr Date: Tue, 30 Jun 2020 16:54:39 +0200 Subject: [PATCH] Fix build of apps/notifications --- apps/notifications/package.json | 2 +- apps/notifications/webpack.config.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/notifications/package.json b/apps/notifications/package.json index edac70ca096fa..bc169a9cdad74 100644 --- a/apps/notifications/package.json +++ b/apps/notifications/package.json @@ -19,7 +19,7 @@ "scripts": { "clean": "check-npm-client && npx rimraf dist", "prebuild": "check-npm-client && yarn run clean", - "build": "check-npm-client && calypso-build --config='./webpack.config.js'" + "build": "check-npm-client && calypso-build --config='./webpack.config.js' --display errors-only" }, "dependencies": { "@automattic/calypso-color-schemes": "^2.1.1", diff --git a/apps/notifications/webpack.config.js b/apps/notifications/webpack.config.js index 756e9f74f3167..7705d0feae55b 100644 --- a/apps/notifications/webpack.config.js +++ b/apps/notifications/webpack.config.js @@ -52,6 +52,10 @@ function getWebpackConfig( return { ...webpackConfig, + resolve: { + ...webpackConfig.resolve, + mainFields: [ 'calypso:main', 'browser', 'module', 'main' ], + }, plugins: [ ...webpackConfig.plugins, new HtmlWebpackPlugin( {