kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'unchunk' into 'main'
Unchunk init Closes #1570 See merge request soapbox-pub/soapbox!2810environments/review-main-yi2y9f/deployments/4170
commit
1ba1584da8
|
@ -10,9 +10,9 @@ import { checkOnboardingStatus } from '../actions/onboarding';
|
||||||
import { preload } from '../actions/preload';
|
import { preload } from '../actions/preload';
|
||||||
import { store } from '../store';
|
import { store } from '../store';
|
||||||
|
|
||||||
const SoapboxHead = React.lazy(() => import('./soapbox-head'));
|
import SoapboxHead from './soapbox-head';
|
||||||
const SoapboxLoad = React.lazy(() => import('./soapbox-load'));
|
import SoapboxLoad from './soapbox-load';
|
||||||
const SoapboxMount = React.lazy(() => import('./soapbox-mount'));
|
import SoapboxMount from './soapbox-mount';
|
||||||
|
|
||||||
// Configure global functions for developers
|
// Configure global functions for developers
|
||||||
createGlobals(store);
|
createGlobals(store);
|
||||||
|
|
|
@ -4,6 +4,7 @@ import React from 'react';
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
|
|
||||||
import * as BuildConfig from 'soapbox/build-config';
|
import * as BuildConfig from 'soapbox/build-config';
|
||||||
|
import Soapbox from 'soapbox/init/soapbox';
|
||||||
import { printConsoleWarning } from 'soapbox/utils/console';
|
import { printConsoleWarning } from 'soapbox/utils/console';
|
||||||
|
|
||||||
import '@fontsource/inter/200.css';
|
import '@fontsource/inter/200.css';
|
||||||
|
@ -26,8 +27,6 @@ import './precheck';
|
||||||
import ready from './ready';
|
import ready from './ready';
|
||||||
import { registerSW } from './utils/sw';
|
import { registerSW } from './utils/sw';
|
||||||
|
|
||||||
const Soapbox = React.lazy(() => import('./init/soapbox'));
|
|
||||||
|
|
||||||
if (BuildConfig.NODE_ENV === 'production') {
|
if (BuildConfig.NODE_ENV === 'production') {
|
||||||
printConsoleWarning();
|
printConsoleWarning();
|
||||||
registerSW('/sw.js');
|
registerSW('/sw.js');
|
||||||
|
|
Ładowanie…
Reference in New Issue