logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.31k stars 406 forks source link

refactor(console, experience): optimize bundling #6326

Closed gao-sun closed 1 month ago

gao-sun commented 1 month ago

Summary

Before

bundling-before

image

After

bundling-after

image

[!Note] React-related package bundling strategy has been updated to a dynamic version with more precise dependency checking. The graph above is out-dated but can still reflect the core concept.

Favicon fix

fix favicon paths in demo app and console

Testing

locally previewed, mermaid ok, favicon ok

Checklist

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +2.52 KB

Diff by File |Name|Diff| |---|---| |packages/console/index.html|:chart_with_upwards_trend: +8 Bytes| |packages/console/package.json|:chart_with_upwards_trend: +29 Bytes| |packages/console/vite.config.ts|:chart_with_upwards_trend: +750 Bytes| |packages/demo-app/index.html|:chart_with_upwards_trend: +9 Bytes| |packages/experience/vite.config.ts|:chart_with_upwards_trend: +229 Bytes| |pnpm-lock.yaml|:chart_with_upwards_trend: +1.58 KB| |vite.shared.config.ts|:chart_with_upwards_trend: +450 Bytes|