diff --git a/.build.json b/.build.json index e3017ab8..7e8790e1 100644 --- a/.build.json +++ b/.build.json @@ -31,7 +31,7 @@ }, "build": { "global": { - "target": "es2018", + "target": "es2020", "sourcemap": false, "treeShaking": true, "ignoreAnnotations": true, diff --git a/CHANGELOG.md b/CHANGELOG.md index 05b946e5..655406ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/demo/index-worker.js b/demo/index-worker.js index d416e4fc..ee729421 100644 --- a/demo/index-worker.js +++ b/demo/index-worker.js @@ -6,12 +6,11 @@ /// // 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 diff --git a/tsconfig.json b/tsconfig.json index f4daaa72..17b5fe46 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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,