From 563206450d55f2cdfdf7fffee279407eb862f6de Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Tue, 11 Oct 2022 10:22:58 +0900 Subject: [PATCH] Target framework changed --- esbuild.config.mjs | 4 ++-- tsconfig.json | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index feac5f8..97a3f92 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -3,7 +3,7 @@ import process from "process"; import builtins from 'builtin-modules' const banner = -`/* + `/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ @@ -47,7 +47,7 @@ esbuild.build({ ...builtins], format: 'cjs', watch: !prod, - target: 'es2016', + target: 'es2018', logLevel: "info", sourcemap: prod ? false : 'inline', treeShaking: true, diff --git a/tsconfig.json b/tsconfig.json index 2d6fbdf..9f87a84 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,14 +4,15 @@ "inlineSourceMap": true, "inlineSources": true, "module": "ESNext", - "target": "ES6", + "target": "ES2018", "allowJs": true, "noImplicitAny": true, "moduleResolution": "node", - "importHelpers": true, + "importHelpers": false, "isolatedModules": true, - "strictNullChecks": true, + "strictNullChecks": true, "lib": [ + "ES2018", "DOM", "ES5", "ES6", @@ -21,4 +22,4 @@ "include": [ "**/*.ts" ] -} +} \ No newline at end of file