Replace Webpack to Vite (#1023)
* Add vite, typescript and prettier * Configure vite * Fix tsconfig error * Fix manifest json * Move manifest json to root * Bug fix * Move back manifest json to public
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import EventEmitter from 'events';
|
||||
import * as sdk from 'matrix-js-sdk';
|
||||
import Olm from '@matrix-org/olm';
|
||||
// import { logger } from 'matrix-js-sdk/lib/logger';
|
||||
|
||||
import { secret } from './state/auth';
|
||||
@@ -10,7 +11,7 @@ import Notifications from './state/Notifications';
|
||||
import { cryptoCallbacks } from './state/secretStorageKeys';
|
||||
import navigation from './state/navigation';
|
||||
|
||||
global.Olm = require('@matrix-org/olm');
|
||||
global.Olm = Olm;
|
||||
|
||||
// logger.disableAll();
|
||||
|
||||
@@ -78,7 +79,7 @@ class InitMatrix extends EventEmitter {
|
||||
this.emit('init_loading_finished');
|
||||
this.notifications._initNoti();
|
||||
} else {
|
||||
this.notifications._initNoti();
|
||||
this.notifications?._initNoti();
|
||||
}
|
||||
},
|
||||
RECONNECTING: () => {
|
||||
|
||||
@@ -9,7 +9,4 @@ import App from './app/pages/App';
|
||||
|
||||
settings.applyTheme();
|
||||
|
||||
ReactDom.render(
|
||||
<App />,
|
||||
document.getElementById('root'),
|
||||
);
|
||||
ReactDom.render(<App />, document.getElementById('root'));
|
||||
|
||||
Reference in New Issue
Block a user