Skip to content

Commit

Permalink
target esnext
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinstone committed Dec 31, 2021
1 parent e826cc4 commit 4341878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export default defineConfig([
{ banner, format: 'umd', file: pkg.main, name },
{ banner, format: 'es', file: pkg.module },
],
plugins: [esbuild()],
plugins: [esbuild({ target: 'esnext' })],
},
{
input: pkg.source,
output: [
{ banner, format: 'umd', file: pkg.main.slice(0, -2) + 'min.js', name },
{ banner, format: 'es', file: pkg.module.slice(0, -2) + 'min.js' },
],
plugins: [esbuild({ minify: true })],
plugins: [esbuild({ target: 'esnext', minify: true })],
},
])

0 comments on commit 4341878

Please sign in to comment.