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": { "build": {
"global": { "global": {
"target": "es2018", "target": "es2020",
"sourcemap": false, "sourcemap": false,
"treeShaking": true, "treeShaking": true,
"ignoreAnnotations": true, "ignoreAnnotations": true,

View File

@ -9,7 +9,7 @@
## Changelog ## 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 ### **release: 2.4.1** 2021/10/25 mandic00@live.com

View File

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

View File

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