switch from es2018 to es2020 for main build

pull/356/head
Vladimir Mandic 2021-10-26 19:38:23 -04:00
parent 81d5336498
commit a005c00a5b
4 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@
},
"build": {
"global": {
"target": "es2018",
"target": "es2020",
"sourcemap": false,
"treeShaking": true,
"ignoreAnnotations": true,

View File

@ -9,7 +9,7 @@
## Changelog
### **HEAD -> main** 2021/10/25 mandic00@live.com
### **HEAD -> main** 2021/10/26 mandic00@live.com
### **release: 2.4.1** 2021/10/25 mandic00@live.com

View File

@ -6,12 +6,11 @@
/// <reference lib="webworker"/>
// load Human using IIFE script as Chome Mobile does not support Modules as Workers
/** @type {Human} */
const Human = {};
self.importScripts('../dist/human.js');
let busy = false;
// eslint-disable-next-line new-cap
// @ts-ignore
// eslint-disable-next-line new-cap, no-undef
const human = new Human.default();
onmessage = async (msg) => { // receive message from main thread

View File

@ -6,7 +6,7 @@
"outDir": "types",
"baseUrl": "./",
"paths": { "tslib": ["./node_modules/tslib/tslib.d.ts"] },
"lib": ["es2020", "dom", "webworker"],
"lib": ["esnext", "dom", "webworker"],
"allowJs": true,
"allowSyntheticDefaultImports": false,
"allowUnreachableCode": false,
@ -15,12 +15,13 @@
"declaration": true,
"declarationMap": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"esModuleInterop": false,
"exactOptionalPropertyTypes": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"importsNotUsedAsValues": "error",
"isolatedModules": false,
"noEmitHelpers": true,
"noEmitOnError": false,
"noFallthroughCasesInSwitch": true,