codeant-ai-for-open-source[bot] commented on PR #37588:
URL: https://github.com/apache/superset/pull/37588#issuecomment-3828160333
## **Sequence Diagram**
The PR replaces Babel with SWC for transpilation, disables expensive dev
source maps, and enables webpack filesystem caching while increasing Node heap
size. The diagram shows the core developer-to-build flow changes that reduce
OOMs and speed up incremental builds.
```mermaid
sequenceDiagram
participant Dev as Developer
participant Scripts as Package Scripts
participant Docusaurus as Docusaurus (webpack)
participant SWC as swc-loader
participant Cache as Webpack Filesystem Cache
Dev->>Scripts: yarn start / yarn start:quick
(NODE_OPTIONS=--max-old-space-size=8192)
Scripts->>Docusaurus: launch dev server (generate:all or skip)
Docusaurus->>SWC: Transpile superset-frontend files with swc-loader
(replaces babel)
Docusaurus->>Cache: Use filesystem cache for incremental rebuilds & HMR
Docusaurus-->>Dev: Serve site (no eval-source-map in dev, reduced memory
use)
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]