rusackas opened a new pull request, #37588: URL: https://github.com/apache/superset/pull/37588
### SUMMARY Improves docs site build performance and fixes out-of-memory crashes during local development. **Build toolchain:** - Replace `babel-loader` with `swc-loader` (Rust-based transpiler) for superset-frontend files - Disable webpack source maps in dev mode — `eval-source-map` was consuming too much memory and causing OOM kills on machines with ≤18GB RAM - Add webpack filesystem cache for faster incremental rebuilds and HMR - Bump `NODE_OPTIONS` heap size to 8GB in package.json scripts and `netlify.toml` **LESS → CSS migration:** - Convert `main.less` to plain `main.css` (flatten LESS nesting syntax) - Delete `antd-theme.less` — dead antd v4 LESS variables, unused with antd v6 - Remove `docusaurus-plugin-less`, `less`, and `less-loader` dependencies **Dependency cleanup:** - Remove `babel-loader`, `@babel/core`, `@babel/preset-react`, `@babel/preset-typescript`, `@emotion/babel-plugin` (replaced by swc-loader) - Remove `ts-loader` (unused) - Pin `baseline-browser-mapping` via resolutions to silence stale-data warning **Developer experience:** - Add `yarn start:quick` script that skips all generators (for iterating on layout/styling/markdown) - Parallelize independent generation scripts in `generate:all` - Fix deprecated `onBrokenMarkdownLinks` config location for Docusaurus v4 ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A — no visual changes ### TESTING INSTRUCTIONS 1. `cd docs && yarn install` 2. `yarn start` — site should compile successfully and load at localhost:3000 3. `yarn start:quick` — should start without running generators 4. Verify homepage styling (navbar, footer, buttons, search bar) renders correctly ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [x] Removes existing feature or API 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
