mirror of https://github.com/vladmandic/human
switch from es2018 to es2020 for main build
parent
81d5336498
commit
a005c00a5b
|
@ -31,7 +31,7 @@
|
|||
},
|
||||
"build": {
|
||||
"global": {
|
||||
"target": "es2018",
|
||||
"target": "es2020",
|
||||
"sourcemap": false,
|
||||
"treeShaking": true,
|
||||
"ignoreAnnotations": true,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue