We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1bd60 commit f52f482Copy full SHA for f52f482
vite.config.ts
@@ -1,21 +1,24 @@
1
import { defineConfig } from "vitest/config";
2
import react from "@vitejs/plugin-react";
3
-import inject from '@rollup/plugin-inject'
+import inject from "@rollup/plugin-inject";
4
5
export default defineConfig({
6
plugins: [
7
react(),
8
inject({
9
- $: [ 'jquery', '*' ],
10
- jQuery: 'jquery',
+ $: ["jquery", "*"],
+ jQuery: "jquery",
11
}),
12
],
13
assetsInclude: ["**/*.csl"],
14
15
resolve: {
16
alias: {
17
- lib: "/vis/lib",
18
- markjs: "mark.js/dist/jquery.mark.js",
+ "@": "/vis/",
+ "@js": "/vis/js/",
19
+
20
+ "lib": "/vis/lib",
21
+ "markjs": "mark.js/dist/jquery.mark.js",
22
// hypher: "hypher/dist/jquery.hypher.js",
23
},
24
0 commit comments