feat(dev): move to rsbuild for dev - faster (#4674)

This commit is contained in:
Alireza authored and GitHub committed 2025-01-10 15:05:35 -05:00
1 parent 847f1da8e0
commit d4a4267429
33 files changed
+13177 -5660

No files matched your search

@@ -13,3 +13,23 @@ window.PUBLIC_URL = '<%= PUBLIC_URL %>';
```
Was added before the `<!-- EXTENSIONS -->` comment block.
## OHIF Docs
OHIF platform/docs is no longer part of the workspace.
- Builds are faster for 99.99% of users since only maintainers need to run the docs development.
If you need to run the docs website locally, you must install it first, as it is not installed by default.
Before:
```bash
yarn run dev
```
After:
```bash
yarn install
yarn run dev
```
-13
View File
@@ -52,19 +52,6 @@ module.exports = {
favicon: 'img/favicon.ico',
themes: ['@docusaurus/theme-live-codeblock'],
plugins: [
() => ({
name: 'resolve-react',
configureWebpack() {
return {
resolve: {
alias: {
// assuming root node_modules is up from "./packages/<your-docusaurus>
react: path.resolve('../../node_modules/react'),
},
},
};
},
}),
// path.resolve(__dirname, './pluginOHIFWebpackConfig.js'),
// /path.resolve(__dirname, './postcss.js'),
'docusaurus-plugin-image-zoom', // 3rd party plugin for image click to pop
+3 -17
View File
@@ -2,17 +2,6 @@
"name": "ohif-docs",
"version": "3.10.0-beta.54",
"private": true,
"workspaces": {
"nohoist": [
"@docusaurus/core/**",
"@docusaurus/core",
"@docusaurus/preset-classic",
"@docusaurus/preset-classic/**",
"**/react-router-dom",
"**/react-router",
"**/history"
]
},
"scripts": {
"docusaurus": "docusaurus",
"clean": "shx rm -rf dist",
@@ -68,6 +57,7 @@
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"tailwindcss-animate": "^1.0.7",
"@svgr/webpack": "^5.5.0",
"autoprefixer": "^10.4.20",
"class-variance-authority": "^0.7.0",
@@ -90,13 +80,9 @@
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"tailwindcss": "^3.4.13",
"url-loader": "^4.1.1"
},
"peerDependencies": {
"url-loader": "^4.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"react-dom": "^18.3.1",
"@docusaurus/module-type-aliases": "3.0.0",
"@docusaurus/tsconfig": "3.0.0",
"@docusaurus/types": "3.0.0",
File diff suppressed because it is too large. Load diff