funquail/front/src/jquery.js
Kasper Seweryn 3b78ac8cc6
Workaround axios-auth-refresh in production
axios-auth-refresh has only prebuilt files, that might be the case when
vite is trying to bundle it. It seems like vite thinks that it's
constructed like:
```
export default {
    default () {
        // ...
    }
}
```

This also fixes `jQuery is not defined` in dev
2022-02-22 13:01:29 +01:00

8 lines
157 B
JavaScript

import jQuery from 'jquery'
// NOTE: Workaround for fomantic-ui-css
if (import.meta.env.DEV) {
window.$ = window.jQuery = jQuery
}
export default jQuery