Optimize outline-react bundles (#214)

* Optimize outline-react bundles

* Format file
This commit is contained in:
Dominic Gannaway
2021-04-14 18:20:33 +01:00
committed by acywatson
parent b7369309d7
commit 0174151fee
13 changed files with 47 additions and 37 deletions

View File

@ -192,11 +192,13 @@ build(
);
outlineReactModules.forEach((outlineReactModule) => {
// We don't want to sync these modules
// We don't want to sync these modules, as they're bundled in the other
// modules already.
if (
isWWW &&
(outlineReactModule === 'OutlineEnv' ||
outlineReactModule === 'OutlineReactUtils')
outlineReactModule === 'OutlineEnv' ||
outlineReactModule === 'useOutlineHistory' ||
outlineReactModule === 'useOutlineDragonSupport' ||
outlineReactModule === 'OutlineReactUtils'
) {
return;
}