From 2f2e95435c9fcdac1d05e9c8b4bd9a109e4693e8 Mon Sep 17 00:00:00 2001 From: "Dr. Vortex" Date: Mon, 26 Feb 2024 18:48:31 -0600 Subject: [PATCH] Updated build target to 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 9ac122b..38ae08f 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_DOM', 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",