Skip to content

[code-infra] Add flat build setup#4959

Open
brijeshb42 wants to merge 2 commits into
mui:masterfrom
brijeshb42:add-flat-build
Open

[code-infra] Add flat build setup#4959
brijeshb42 wants to merge 2 commits into
mui:masterfrom
brijeshb42:add-flat-build

Conversation

@brijeshb42
Copy link
Copy Markdown
Contributor

Adds the flat build setup (code-infra build --flat): build output is flat with extension-based module type (.js CJS, .mjs ESM, .d.ts/.d.mts types) instead of separate esm/cjs subdirectories.

Verified publint and attw pass.

🤖 Generated with Claude Code

@brijeshb42 brijeshb42 added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Jun 2, 2026
@brijeshb42 brijeshb42 requested a review from a team June 2, 2026 10:13
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 2, 2026

commit: b125654

"./store": "./src/store/index.ts",
"./*": "./src/*.ts"
"./*": "./src/*.ts",
"./*.test": null,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required because ./src/*.ts expands to also include the test/spec files.

@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented Jun 2, 2026

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 1,221.16 ms -96.39 ms(-7.3%) | Renders: 50 (+0) | Paint: 1,846.58 ms -161.23 ms(-8.0%)

Test Duration Renders
Slider mount (300 instances) 164.22 ms ▼-58.18 ms(-26.2%) 3 (+0)
Checkbox mount (500 instances) 68.21 ms ▼-23.94 ms(-26.0%) 1 (+0)

10 tests within noise — details


Check out the code infra dashboard for more information about this PR.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2026

Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b125654
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a26d0dea7d4c300083b2096
😎 Deploy Preview https://deploy-preview-4959--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@brijeshb42 brijeshb42 force-pushed the add-flat-build branch 3 times, most recently from 150adbb to e9fc98f Compare June 8, 2026 06:32
*/
export default defineConfig(async () => {
return {
entrypoints: [...(await getBaseUiExports()), ...(await getUtilsExports())],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, we can probably use expand now to simplify this. But doesn't have to be part of this effort.

@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jun 8, 2026
brijeshb42 and others added 2 commits June 8, 2026 19:53
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added PR: out-of-date The pull request has merge conflicts and can't be merged. and removed PR: out-of-date The pull request has merge conflicts and can't be merged. labels Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: out-of-date The pull request has merge conflicts and can't be merged. scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants