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

@@ -48,6 +48,7 @@
"skipLibCheck": true, // skip all type checks for .d.ts files
"paths": {
"@affine/core/*": ["./packages/frontend/core/src/*"],
"@affine/core": ["./packages/frontend/core/src/index.ts"],
"@affine/cli/*": ["./tools/cli/src/*"],
"@affine/server/*": ["./packages/backend/server/src/*"],
"@affine/component": ["./packages/frontend/component/src/index"],
@@ -90,9 +91,15 @@
{
"path": "./packages/frontend/core"
},
{
"path": "./packages/frontend/web"
},
{
"path": "./packages/frontend/electron/tsconfig.test.json"
},
{
"path": "./packages/frontend/electron/renderer/tsconfig.json"
},
{
"path": "./packages/frontend/graphql"
},