refactor(core): split web entry from core (#6082)

This pr is trying to split `web` and `electron` entries from `core`. It allows more platform-related optimization to be addressed in each entry.
We should remove all browser/electron only codes from `core` eventually, this is the very first step for that.
This commit is contained in:
LongYinan
2024-03-19 07:48:56 +00:00
parent 26925c96e4
commit 332cd3b380
54 changed files with 963 additions and 800 deletions

View File

@@ -3,14 +3,9 @@
"type": "module",
"private": true,
"version": "0.14.0",
"scripts": {
"build": "yarn -T run build-core",
"dev": "yarn -T run dev-core",
"static-server": "yarn -T run dev-core --static"
},
"exports": {
"./app": "./src/app.tsx",
"./router": "./src/router.ts",
"./router": "./src/router.tsx",
"./bootstrap/setup": "./src/bootstrap/setup.ts",
"./bootstrap/register-plugins": "./src/bootstrap/register-plugins.ts",
"./*": "./src/*"
@@ -40,7 +35,6 @@
"@emotion/react": "^11.11.3",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@juggle/resize-observer": "^3.4.0",
"@marsidev/react-turnstile": "^0.5.3",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.0.5",
@@ -59,7 +53,6 @@
"clsx": "^2.1.0",
"cmdk": "patch:cmdk@npm%3A0.2.0#~/.yarn/patches/cmdk-npm-0.2.0-302237a911.patch",
"css-spring": "^4.1.0",
"cssnano": "^6.0.4",
"dayjs": "^1.11.10",
"foxact": "^0.2.31",
"fractional-indexing": "^3.2.0",
@@ -67,7 +60,6 @@
"history": "^5.3.0",
"idb": "^8.0.0",
"image-blob-reduce": "^4.1.0",
"intl-segmenter-polyfill-rs": "^0.1.7",
"jotai": "^2.6.5",
"jotai-devtools": "^0.8.0",
"jotai-effect": "^0.6.0",
@@ -76,10 +68,8 @@
"lodash-es": "^4.17.21",
"lottie-react": "^2.4.0",
"lottie-web": "^5.12.2",
"mini-css-extract-plugin": "^2.8.0",
"nanoid": "^5.0.6",
"next-themes": "^0.3.0",
"postcss-loader": "^8.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "^4.0.12",
@@ -108,24 +98,11 @@
"@types/image-blob-reduce": "^4.1.4",
"@types/lodash-es": "^4.17.12",
"@types/uuid": "^9.0.8",
"@types/webpack-env": "^1.18.4",
"@vanilla-extract/css": "^1.14.1",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.10.0",
"express": "^4.18.2",
"fake-indexeddb": "^5.0.2",
"html-webpack-plugin": "^5.6.0",
"lodash-es": "^4.17.21",
"mime-types": "^2.1.35",
"raw-loader": "^4.0.2",
"source-map-loader": "^5.0.0",
"style-loader": "^3.3.4",
"swc-loader": "^0.2.6",
"thread-loader": "^4.0.2",
"vitest": "1.4.0",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.2",
"webpack-merge": "^5.10.0"
"vitest": "1.4.0"
}
}