bump dependencies to latest

- fix npm vulnerabilities #62
- change ResizeObserver polyfill dependency que-etc/resize-observer-polyfill#80
- bump typescript to 4.2.x and add tslib for importing helpers
- update electron to v12.x and set contextIsolation to false (nklayman/vue-cli-plugin-electron-builder#1285, electron/electron#11608) to reach node APIs as it's now disabled by default (electron/electron#27949)
This commit is contained in:
undergroundwires
2021-03-11 14:20:16 +01:00
parent 1a5f92021f
commit 1f515e7be5
4 changed files with 1407 additions and 1189 deletions

View File

@@ -38,6 +38,7 @@ function createWindow() {
width: 1350,
height: 955,
webPreferences: {
contextIsolation: false, // To reach node https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/1285
// Use pluginOptions.nodeIntegration, leave this alone
// See https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration
nodeIntegration: (process.env

View File

@@ -6,7 +6,7 @@
<script lang="ts">
import { Component, Vue, Emit } from 'vue-property-decorator';
import ResizeObserver from 'resize-observer-polyfill';
import { ResizeObserver } from '@juggle/resize-observer';
import { throttle } from './Throttle';
@Component