Переход на Vue 3

This commit is contained in:
Book Pauk
2021-10-29 16:33:38 +07:00
parent 76e09ef34e
commit 8057e18ebc
4 changed files with 9 additions and 13 deletions

View File

@@ -8,11 +8,7 @@ module.exports = {
resolve: { resolve: {
alias: { alias: {
vue: '@vue/compat' vue: '@vue/compat'
}, }
fallback: {
"url": false,
"path": false,
}
}, },
entry: [`${clientDir}/main.js`], entry: [`${clientDir}/main.js`],
output: { output: {
@@ -23,7 +19,7 @@ module.exports = {
rules: [ rules: [
{ {
test: /\.vue$/, test: /\.vue$/,
loader: "vue-loader", loader: 'vue-loader',
options: { options: {
compilerOptions: { compilerOptions: {
compatConfig: { compatConfig: {
@@ -33,7 +29,7 @@ module.exports = {
} }
}, },
{ {
test: /\.includer$/, //test: /\.includer$/,
resourceQuery: /^\?vue/, resourceQuery: /^\?vue/,
use: path.resolve('build/includer.js') use: path.resolve('build/includer.js')
}, },

View File

@@ -98,7 +98,7 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
import vueComponent from '../../vueComponent.js'; import vueComponent from '../../vueComponent.js';
import path from 'path'; import path from 'path-browserify';
//import _ from 'lodash'; //import _ from 'lodash';
import * as utils from '../../../share/utils'; import * as utils from '../../../share/utils';

8
package-lock.json generated
View File

@@ -7831,12 +7831,12 @@
} }
}, },
"vuex-persistedstate": { "vuex-persistedstate": {
"version": "2.7.1", "version": "4.1.0",
"resolved": "https://registry.npmjs.org/vuex-persistedstate/-/vuex-persistedstate-2.7.1.tgz", "resolved": "https://registry.npmjs.org/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz",
"integrity": "sha512-Ktvp6Bt6ApYj35MuxTClu+9Lpukcgl3Z/0o4PU12+Z4jU6lyOMzos0k6zGT5xrukAkGM1VV3EYNwz1TnHPhgFA==", "integrity": "sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==",
"requires": { "requires": {
"deepmerge": "^4.2.2", "deepmerge": "^4.2.2",
"shvl": "^2.0.0" "shvl": "^2.0.3"
} }
}, },
"watchpack": { "watchpack": {

View File

@@ -79,7 +79,7 @@
"vue": "^3.1.0", "vue": "^3.1.0",
"vue-router": "^4.0.12", "vue-router": "^4.0.12",
"vuex": "^4.0.2", "vuex": "^4.0.2",
"vuex-persistedstate": "^2.7.1", "vuex-persistedstate": "^4.1.0",
"webdav": "^4.7.0", "webdav": "^4.7.0",
"ws": "^8.2.3", "ws": "^8.2.3",
"zip-stream": "^4.1.0" "zip-stream": "^4.1.0"