From f338027ca9667e2cce6d342e14efd84bdb55a8f7 Mon Sep 17 00:00:00 2001 From: Solvi Logason Date: Thu, 8 Oct 2020 11:34:49 +0000 Subject: [PATCH] Set Webpack output library target to umd --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3d1636c..6e50fa8 100644 --- a/package.json +++ b/package.json @@ -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",