Skip to content

Commit

Permalink
Set Webpack output library target to umd
Browse files Browse the repository at this point in the history
  • Loading branch information
logason committed Oct 8, 2020
1 parent b7d4eec commit f338027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "avo-inspector",
"version": "1.2.1",
"version": "1.2.2",
"description": "",
"main": "dist/index.js",
"browser": "dist/index.js",
"react-native": "dist-native/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --emitDeclarationOnly && webpack src/index.ts --mode production --resolve-extensions .ts --module-bind ts=ts-loader --define process.env.BROWSER=1 --output-filename index.js",
"build": "tsc --emitDeclarationOnly && webpack src/index.ts --mode production --resolve-extensions .ts --module-bind ts=ts-loader --define process.env.BROWSER=1 --output-filename index.js --output-library-target umd",
"build-native": "tsc --outDir dist-native",
"test": "jest",
"test:browser": "BROWSER=1 jest",
Expand Down

0 comments on commit f338027

Please sign in to comment.