Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Use React 18's JSX runtime for v5.x UMD builds #44815

Merged
merged 8 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ jobs:
DANGER_COMMAND: prepareBundleSizeReport
- run:
name: build @mui packages
command: BROWSERSLIST_IGNORE_OLD_DATA=true pnpm lerna run --ignore @mui/icons-material --concurrency 6 --scope "@mui/*" build
command: BROWSERSLIST_IGNORE_OLD_DATA=true pnpm lerna run --ignore @mui/icons-material --concurrency 6 --scope "@mui/*" build && pnpm --filter @mui/material build:umd
- run:
name: create @mui/material canary distributable
command: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"clean:zero": "pnpm --filter \"@pigmentcss/*\" clean",
"build:codesandbox": "BROWSERSLIST_IGNORE_OLD_DATA=true NODE_OPTIONS=\"--max_old_space_size=4096\" lerna run --concurrency 8 --scope \"@mui/*\" --scope \"@mui-internal/*\" --no-private build",
"release:version": "lerna version --no-changelog --no-push --no-git-tag-version --no-private --force-publish=@mui/core-downloads-tracker",
"release:build": "BROWSERSLIST_IGNORE_OLD_DATA=true lerna run --concurrency 8 --no-private build --skip-nx-cache",
"release:build": "BROWSERSLIST_IGNORE_OLD_DATA=true lerna run --concurrency 8 --no-private build --skip-nx-cache && pnpm --filter @mui/material build:umd",
"release:changelog": "node scripts/releaseChangelog.mjs",
"release:publish": "pnpm publish --recursive --tag latest-v5",
"release:publish:dry-run": "pnpm publish --recursive --tag latest-v5 --registry=\"http://localhost:4873/\"",
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"url": "https://opencollective.com/mui-org"
},
"scripts": {
"build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:umd && pnpm build:types && pnpm build:copy-files",
"build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files",
"build:legacy": "node ../../scripts/build.mjs legacy",
"build:modern": "node ../../scripts/build.mjs modern",
"build:node": "node ../../scripts/build.mjs node",
"build:stable": "node ../../scripts/build.mjs stable",
"build:umd": "cross-env BABEL_ENV=rollup rollup -c scripts/rollup.config.mjs",
"build:umd": "node ../../scripts/useReactVersion.mjs ^18.0.0 && cross-env BABEL_ENV=rollup rollup -c scripts/rollup.config.mjs && git restore ../../package.json && git restore ../../pnpm-lock.yaml && pnpm install",
"build:copy-files": "node ../../scripts/copyFiles.mjs",
"build:types": "node ../../scripts/buildTypes.mjs",
"prebuild": "rimraf build tsconfig.build.tsbuildinfo",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/test/umd/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function createApp() {
'utf8',
);
index = index.replace(
'https://unpkg.com/@mui/material@latest/umd/material-ui.development.js',
'https://unpkg.com/@mui/material@5/umd/material-ui.development.js',
umdPath,
);
index = index.replace(
Expand Down
39 changes: 20 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading