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