From 25b0e694f0b091371e77bc87c731d24a1d0535df Mon Sep 17 00:00:00 2001 From: Johan Nordberg Date: Fri, 4 Jun 2021 14:21:35 +0900 Subject: [PATCH] Set build target for module to es2020 --- rollup.config.js | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index af108a4..6745442 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -38,7 +38,7 @@ export default [ format: 'esm', sourcemap: true, }, - plugins: [typescript({target: 'esnext'})], + plugins: [typescript({target: 'es2020'})], external, onwarn, }, diff --git a/tsconfig.json b/tsconfig.json index 5268263..5d72803 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "noImplicitAny": false, "sourceMap": true, "strict": true, - "target": "esnext" + "target": "es2020" }, "include": ["src/**/*"] }