Tidy up `init.js` build order

10.9-maintenance
Tomas Chmelevskij 2022-08-19 21:48:49 +01:00
parent 7bc1db46b6
commit 04d6cf556c
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 -->