mirror of
https://github.com/facebook/react.git
synced 2026-02-25 05:03:03 +00:00
## Summary Stacked on https://github.com/facebook/react/pull/28552. Review only the [last commit at the top](c69952f1bf). These changes add new package `react-devtools-fusebox`, which is the entrypoint for the RDT Frontend, which will be used in Chrome DevTools panel. The main differences from other frontend shells (extension, standalone) are: 1. This package builds scripts in ESM format, this is required by Chrome DevTools, see webpack config:c69952f1bf/packages/react-devtools-fusebox/webpack.config.frontend.js (L50-L52)2. The build includes styles in a separate `.css` file, which is required for Chrome DevTools: styles are loaded lazily once panel is mounted.
23 lines
646 B
JSON
23 lines
646 B
JSON
{
|
|
"name": "react-devtools-fusebox",
|
|
"version": "0.0.0",
|
|
"private": "true",
|
|
"license": "MIT",
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"build:frontend:local": "cross-env NODE_ENV=development webpack --config webpack.config.frontend.js",
|
|
"build:frontend": "cross-env NODE_ENV=production webpack --config webpack.config.frontend.js",
|
|
"build": "yarn build:frontend"
|
|
},
|
|
"devDependencies": {
|
|
"buffer": "^6.0.3",
|
|
"cross-env": "^7.0.3",
|
|
"css-loader": "^6.9.1",
|
|
"mini-css-extract-plugin": "^2.7.7",
|
|
"process": "^0.11.10",
|
|
"webpack": "^5.82.1",
|
|
"webpack-cli": "^5.1.1",
|
|
"workerize-loader": "^2.0.2"
|
|
}
|
|
}
|