package.json has :
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.19.2",
"bootstrap": "^4.1.0",
"cross-env": "^5.1",
"jquery": "^3.5.1",
"laravel-mix": "^4.0.7",
"lodash": "^4.17.13",
"popper.js": "^1.12",
"resolve-url-loader": "^2.3.1",
"sass": "^1.15.2",
"sass-loader": "^7.1.0",
"vue": "^2.5.17",
"vue-template-compiler": "^2.6.11"
},
"dependencies": {
"accordion-vue": "^1.0.1",
"laravel-echo": "^1.9.0",
"mobile-device-detect": "^0.4.3",
"moment": "^2.27.0",
"pusher-js": "^7.0.0",
"twilio-client": "^1.9.7",
"twilio-video": "^1.20.1",
"vue-cute-rate": "^1.0.2",
"vue-dialog-drag": "^0.1.29",
"vue-i18n": "^8.17.4",
"vue-loading-overlay": "^3.3.3",
"vue-native-websocket": "^2.0.14",
"vue-simple-alert": "^1.1.1",
"vue-simple-drawer": "^1.0.6",
"vuelidate": "^0.7.5",
"vuex": "^3.1.2"
}
}
webpack.mix.js :
const mix = require('laravel-mix');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css');
Searching in net I found page https://cli.vuejs.org/guide/browser-compatibility.html#polyfills-when-building-as-library-or-web-components with :
With Babel we are able to leverage all the newest language features in ES2015+, but that also means we have to ship transpiled and polyfilled bundles in order to support older browsers. These transpiled bundles are often more verbose than the original native ES2015+ code, and also parse and run slower. Given that today a good majority of the modern browsers have decent support for native ES2015, it is a waste that we have to ship heavier and less efficient code to those browsers just because we have to support older ones.
Vue CLI offers a "Modern Mode" to help you solve this problem. When building for production with the following command:
vue-cli-service build --modern
I am not sure if this option must be used in package.json ? In which way? I continu development of this site after other developer and it was supposed that I got working version of the app ...