Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@popperjs/core": "^2.11.8",
"@sentry/browser": "^7.74.1",
"@sentry/vue": "^7.114.0",
"@vue/compat": "^3.5.22",
"@vueuse/core": "^10.5.0",
"@vueuse/math": "^10.9.0",
"ace-builds": "^1.39.0",
Expand Down Expand Up @@ -115,7 +116,7 @@
"vega": "^5.30.0",
"vega-embed": "^6.26.0",
"vega-lite": "^5.21.0",
"vue": "^2.7.16",
"vue": "^3.5.18",
"vue-class-component": "^7.2.6",
"vue-echarts": "^7.0.3",
"vue-infinite-scroll": "^2.0.2",
Expand Down Expand Up @@ -174,6 +175,7 @@
"@vitejs/plugin-vue2": "^2.3.4",
"@vitest/coverage-v8": "^4.0.13",
"@vitest/ui": "^4.0.13",
"@vue/compiler-sfc": "^3.5.22",
"@vue/test-utils": "^1.3.6",
"@vue/tsconfig": "^0.4.0",
"amdi18n-loader": "^0.9.4",
Expand Down Expand Up @@ -220,8 +222,8 @@
"vitest": "^4.0.13",
"vitest-fail-on-console": "^0.10.1",
"vitest-location-mock": "^1.0.4",
"vue-loader": "^15.11.1",
"vue-template-compiler": "^2.7.16",
"vue-loader": "^17",
"vue-tsc": "2.2.12",
"webpack": "^5.98.0",
"webpack-cli": "^6.0.1",
Expand Down
7 changes: 7 additions & 0 deletions client/src/entry/analysis/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { configureCompat } from "@vue/compat";

configureCompat({
MODE: 2,
SET: true
});

import { createPinia, PiniaVuePlugin } from "pinia";
import Vue from "vue";

Expand Down
5 changes: 5 additions & 0 deletions client/src/shim-compat.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@vue/compat' {
import { Component, App, Plugin } from 'vue'
export function configureCompat(options: Record<string, any>): void
export * from 'vue'
}
4 changes: 2 additions & 2 deletions client/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node */
const webpack = require("webpack");
const path = require("path");
const VueLoaderPlugin = require("vue-loader/lib/plugin");
const { VueLoaderPlugin } = require("vue-loader");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const { DumpMetaPlugin } = require("dumpmeta-webpack-plugin");
Expand Down Expand Up @@ -80,7 +80,7 @@ module.exports = (env = {}, argv = {}) => {
buffer: require.resolve("buffer/"),
},
alias: {
vue$: path.resolve(__dirname, "node_modules/vue/dist/vue.esm.js"),
vue$: path.resolve(__dirname, "node_modules/@vue/compat/dist/vue.esm-bundler.js"),
jquery$: `${libsBase}/jquery.custom.js`,
jqueryVendor$: `${libsBase}/jquery/jquery.js`,
storemodern$: "store/dist/store.modern.js",
Expand Down
Loading