mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(core): hmr issue on dev (#5006)
I suspect HMR does not working properly on dev because we have multiple entries. One relative issue: https://github.com/webpack/webpack-dev-server/issues/2792/ I think we do not need multiple entries for polyfills & plugins after all. They could be in the same chunk, and could be later optimized through splitChunks option. `ses.ts` is changed to `ses-lockdown.ts` because `ses.ts` does not pass circular dependency check by madge. I haven't looked through the real root cause though. See https://github.com/pahen/madge/issues/355
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import '../polyfill/ses-lockdown';
|
||||
import '../polyfill/intl-segmenter';
|
||||
|
||||
import { assertExists } from '@blocksuite/global/utils';
|
||||
import {
|
||||
getCurrentStore,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import './polyfill/ses-lockdown';
|
||||
import './polyfill/intl-segmenter';
|
||||
|
||||
import { WorkspaceFallback } from '@affine/component/workspace';
|
||||
import { assertExists } from '@blocksuite/global/utils';
|
||||
import { getCurrentStore } from '@toeverything/infra/atom';
|
||||
@@ -36,4 +39,6 @@ async function main() {
|
||||
);
|
||||
}
|
||||
|
||||
await main();
|
||||
main().catch(err => {
|
||||
console.error('Failed to bootstrap app', err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user