Skip to content

Commit

Permalink
fix: use UMD as output format and add browser field for CDNs (#106)
Browse files Browse the repository at this point in the history
* fix: use UMD as output format to placate proxy-client-react

* fix: add browser field to package.json for CDNs (2)
  • Loading branch information
olav authored Aug 31, 2022
1 parent 5310ca2 commit ec11f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A browser client that can be used together with the unleash-proxy.",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"browser": "./build/main.min.js",
"files": [
"build",
"examples",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
output: [
{
file: './build/main.min.js',
format: 'iife',
format: 'umd',
name: 'unleash' // the global which can be used in a browser
}
],
Expand All @@ -25,4 +25,4 @@ export default {
typescript({tsconfigOverride:{compilerOptions: {module: "ES2015" }}}),
minify( {comments: false} )
]
}
}

0 comments on commit ec11f56

Please sign in to comment.