diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-15 19:08:46 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-15 19:08:46 +0900 |
| commit | 23f106a0c1d16e821a712d39be1c90d17cd6c901 (patch) | |
| tree | 32b18e62d878d32be3656ccb28c12fc15fc75fdb /packages/frontend/src/_boot_.ts | |
| parent | chore(frontend): 設定画面を整理 (diff) | |
| download | misskey-23f106a0c1d16e821a712d39be1c90d17cd6c901.tar.gz misskey-23f106a0c1d16e821a712d39be1c90d17cd6c901.tar.bz2 misskey-23f106a0c1d16e821a712d39be1c90d17cd6c901.zip | |
refactor(frontend): boot分割したり副作用減らしたりとか
#10838
Diffstat (limited to 'packages/frontend/src/_boot_.ts')
| -rw-r--r-- | packages/frontend/src/_boot_.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/frontend/src/_boot_.ts b/packages/frontend/src/_boot_.ts new file mode 100644 index 0000000000..a8efafca61 --- /dev/null +++ b/packages/frontend/src/_boot_.ts @@ -0,0 +1,12 @@ +// https://vitejs.dev/config/build-options.html#build-modulepreload +import 'vite/modulepreload-polyfill'; + +import '@/style.scss'; +import { mainBoot } from './boot/main-boot'; +import { subBoot } from './boot/sub-boot'; + +if (['/share', '/auth', '/miauth'].includes(location.pathname)) { + subBoot(); +} else { + mainBoot(); +} |