Skip to content

Commit

Permalink
build: add build as IIFE module
Browse files Browse the repository at this point in the history
  • Loading branch information
lzear committed Mar 25, 2023
1 parent feabb17 commit fe82ace
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion votes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"travis-deploy-once": "^5.0.11",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"tslib": "^2.5.0",
"tsconfig": "*",
"tslib": "^2.5.0",
"tsup": "^6.6.0",
"typedoc": "^0.23.24",
"typescript": "4.9.5"
Expand Down
3 changes: 2 additions & 1 deletion votes/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
sourcemap: true,
format: ['esm', 'cjs'],
format: ['esm', 'cjs', 'iife'],
clean: true,
target: 'esnext',
dts: true,
minify: true,
globalName: 'votes',
})

0 comments on commit fe82ace

Please sign in to comment.