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

Fix jQuery in fomantic-ui-css

parent b2dc70cf
import jQuery from 'jquery'
window.$ = window.jQuery = jQuery
......@@ -19,7 +19,6 @@ 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'
logger.default.info('Loading environment:', import.meta.env.NODE_ENV)
......
......@@ -9,6 +9,14 @@ import path from 'path'
export default defineConfig({
plugins: [
vue(),
{
name: 'fix-fomantic-ui-css',
transform (src, id) {
if (id.includes('fomantic-ui-css') && id.endsWith('.min.js')) {
return `import jQuery from 'jquery';${src}`
}
}
},
{
name: 'fix-django-channels',
transform (src, id) {
......@@ -18,6 +26,11 @@ export default defineConfig({
}
}
],
build: {
// NOTE: For debugging builds
// TODO: Remove before #1664 is merged
sourcemap: 'inline'
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
......
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