mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-01 17:50:50 +08:00
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:
@@ -11,7 +11,7 @@ const fontPath = join(
|
||||
'..',
|
||||
'packages',
|
||||
'frontend',
|
||||
'core',
|
||||
'web',
|
||||
'dist',
|
||||
'assets'
|
||||
);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { getRuntimeConfig } from '@affine/cli/src/webpack/runtime-config';
|
||||
import { setupGlobal } from '@affine/env/global';
|
||||
|
||||
import { getRuntimeConfig } from '../../packages/frontend/core/.webpack/runtime-config';
|
||||
|
||||
globalThis.runtimeConfig = getRuntimeConfig({
|
||||
distribution: 'browser',
|
||||
mode: 'development',
|
||||
|
||||
Reference in New Issue
Block a user