Skip to content

Commit

Permalink
Updated build target to es2020
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Feb 27, 2024
1 parent dc09c0a commit 2f2e954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "NodeNext",
"target": "ES2015",
"target": "ES2020",
"outDir": "dist",
"lib": ["ESNext", "DOM"],
"moduleResolution": "NodeNext",
Expand Down

0 comments on commit 2f2e954

Please sign in to comment.