Skip to content

Commit

Permalink
feat: change worker build target to es2015
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed May 25, 2023
1 parent 26c37a9 commit 80b2717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const resolvePath = (str: string) => resolve(__dirname, str)

export default defineConfig({
build: {
target: 'es2015',
lib: {
formats: ['es', 'cjs', 'umd'],
fileName: format => {
Expand Down
1 change: 1 addition & 0 deletions vite.worker.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const resolvePath = (str: string) => resolve(__dirname, str)

export default defineConfig({
build: {
target: 'es2015',
emptyOutDir: false,
lib: {
name: 'worker',
Expand Down

1 comment on commit 80b2717

@vercel
Copy link

@vercel vercel bot commented on 80b2717 May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

modern-gif – ./

modern-gif.vercel.app
modern-gif-git-main-qq15725.vercel.app
modern-gif-qq15725.vercel.app

Please sign in to comment.