Skip to content

Commit

Permalink
chore: add iife bundle for widget-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Nov 1, 2023
1 parent 706c446 commit b83874f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/widget-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cowprotocol/widget-lib",
"version": "0.1.1",
"version": "0.1.2",
"type": "commonjs",
"description": "CoW Swap Widget Library. Allows you to easily embed a CoW Swap widget on your website.",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions libs/widget-lib/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ export default defineConfig(({ command }) => {
lib: {
// Could also be a dictionary or array of multiple entry points.
entry: 'src/index.ts',
name: 'widget-lib',
name: 'cowSwapWidget',
fileName: 'index',
// Change this to the formats you want to support.
// Don't forgot to update your package.json as well.
formats: ['es', 'cjs'],
formats: ['es', 'cjs', 'iife'],
},
rollupOptions: {
// External packages that should not be bundled into your library.
Expand Down

0 comments on commit b83874f

Please sign in to comment.