feat(docs): add filterable UI Components table and improve build performance (#38253)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-03-04 08:32:25 -05:00
committed by GitHub
parent 983b633972
commit ef4b1d674b
21 changed files with 1597 additions and 833 deletions

View File

@@ -102,7 +102,7 @@ export default function webpackExtendPlugin(): Plugin<void> {
return {
devtool: isDev ? false : config.devtool,
cache: {
type: 'filesystem',
type: 'filesystem' as const,
buildDependencies: {
config: [__filename],
},
@@ -129,10 +129,15 @@ export default function webpackExtendPlugin(): Plugin<void> {
'react-dom': path.resolve(__dirname, '../node_modules/react-dom'),
// Allow importing from superset-frontend
src: path.resolve(__dirname, '../../superset-frontend/src'),
// '@superset-ui/core': path.resolve(
// __dirname,
// '../../superset-frontend/packages/superset-ui-core',
// ),
// Lightweight shim for @superset-ui/core that re-exports only the
// utilities needed by components (ensureIsArray, usePrevious, etc.).
// Avoids pulling in the full barrel which includes d3, color, query
// modules and causes OOM. Required for Rspack which is stricter about
// module resolution than webpack.
'@superset-ui/core$': path.resolve(
__dirname,
'./shims/superset-ui-core.ts',
),
// Add aliases for our components to make imports easier
'@docs/components': path.resolve(__dirname, '../src/components'),
'@superset/components': path.resolve(