Optimise Web via treeshaking, cleanup build scripts

This commit is contained in:
Vendicated 2022-10-16 17:15:15 +02:00
parent 845088ec02
commit 01ae0983b3
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
14 changed files with 261 additions and 269 deletions

View file

@ -158,7 +158,7 @@ function Newer(props: CommonProps) {
);
}
export default ErrorBoundary.wrap(function Updater() {
function Updater() {
const [repo, err, repoPending] = useAwaiter(getRepo, "Loading...");
React.useEffect(() => {
@ -188,4 +188,6 @@ export default ErrorBoundary.wrap(function Updater() {
{isNewer ? <Newer {...commonProps} /> : <Updatable {...commonProps} />}
</Forms.FormSection >
);
});
}
export default IS_WEB ? null : ErrorBoundary.wrap(Updater);