Verified Commit 17006094 authored by Kasper Seweryn's avatar Kasper Seweryn 🥞
Browse files

Fix linter error

Linter did not like await in global scope besides it being fully
functional, so I've created a `src/jquery.js` file which sets jquery
globals and then we can safely import `src/semantic.js`.
parent 5f319db2
import jQuery from 'jquery'
window.$ = window.jQuery = jQuery
......@@ -19,17 +19,14 @@ import filters from '@/filters' // eslint-disable-line
import { parseAPIErrors } from '@/utils'
import globals from '@/components/globals' // eslint-disable-line
import './registerServiceWorker'
import '@/jquery'
import '@/semantic''Loading environment:', import.meta.env.NODE_ENV)
logger.default.debug('Environment variables:', import.meta.env)
sync(store, router)
window.$ = window.jQuery = jQuery
// NOTE: We cannot use normal import statements after doing some stuff, so we'll just await a dynamic import
await import('./semantic.js')
let APP = null
const availableLanguages = (function () {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment