From fc5f3dec2ccbc5335cae549359e58c9ec3cac67a Mon Sep 17 00:00:00 2001 From: "Dr. Vortex" Date: Mon, 26 Feb 2024 18:51:12 -0600 Subject: [PATCH] Updated to build target ES2020 --- scripts/build.mjs | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 06529bd..287596d 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -12,7 +12,7 @@ const options = parseArgs({ const ctx = await context({ entryPoints: ['src/index.ts'], - target: 'es6', + target: 'es2020', globalName: 'BrowserFS_ISO', outfile: 'dist/browser.min.js', sourcemap: true, diff --git a/tsconfig.json b/tsconfig.json index 6b00c68..9076337 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "NodeNext", - "target": "ES2015", + "target": "ES2020", "outDir": "dist", "lib": ["ESNext", "DOM"], "moduleResolution": "NodeNext",