Merge pull request #3000 from chmelevskij/chore/tidy-up-main-entry

Tidy up `init.js` build order
10.9-maintenance
Tomas Chmelevskij 2022-08-20 17:27:25 +01:00 committed by GitHub
commit fdaefa261d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -407,10 +407,8 @@ function dist_rollup() {
// If all the things used by other files are importing
// it with `import/export` file doesn't have to be here.
// I will be picked up by rollup and bundled accordingly.
'components/init': 'src/components/init.js',
'js/main_cordova': 'src/js/main_cordova.js',
'js/utils/common': 'src/js/utils/common.js',
'js/tabs/logging': 'src/js/tabs/logging.js',
'js/main': 'src/js/main.js',
},
plugins: [

View File

@ -1,4 +1,5 @@
import { i18n } from './localization';
import '../components/init.js';
import { i18n } from './localization.js';
$(document).ready(function () {

View File

@ -52,7 +52,6 @@
<link type="text/css" rel="stylesheet" href="./css/dark-theme.css" media="all" disabled/>
<script type="module" src="./components/init.js"></script>
<!-- TODO: probably won't need this here once everything is imported -->
<script type="module" src="./js/utils/common.js"></script>
<!-- CORDOVA_INCLUDE js/cordova_chromeapi.js -->