From 2d81d71089bae979e082abf77be10ef99820555f Mon Sep 17 00:00:00 2001 From: simeng_li Date: Thu, 4 Nov 2021 14:55:27 +0800 Subject: [PATCH] fix(playgrond): set webpack performance hint to warning Playground exceed the webpack default bundle size limitation. Need to optimze later --- packages/playground/razzle.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/playground/razzle.config.js b/packages/playground/razzle.config.js index 922a96127..5c6cf39d7 100644 --- a/packages/playground/razzle.config.js +++ b/packages/playground/razzle.config.js @@ -15,6 +15,13 @@ module.exports = { '@': path.resolve('src/'), }; + // Playground exceed the 244kb limitation after import client + // create a issue to optimize client js SDK package size + // https://linear.app/silverhand/issue/LOG-236/need-to-reduce-the-client-package-size + config.performance = { + hints: 'warning' + }; + return config; }, modifyJestConfig: ({ jestConfig }) => {