Skip to content

Commit

Permalink
(TW-3970) Specify target for IIFE builds
Browse files Browse the repository at this point in the history
  • Loading branch information
harryjubb committed Dec 2, 2021
1 parent 3552eeb commit 52e83c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Torx Software Ltd",
"license": "Copyright",
"scripts": {
"build:iife": "esbuild src/index.ts --bundle --minify --sourcemap --platform=browser --format=iife --global-name=txdaWebframeHelper --outfile=./dist/txda-webframe-helper.min.js",
"build:iife": "esbuild src/index.ts --bundle --minify --sourcemap --platform=browser --format=iife --target=es2020 --global-name=txdaWebframeHelper --outfile=./dist/txda-webframe-helper.min.js",
"build:esm": "esbuild src/index.ts --bundle --minify --sourcemap --platform=browser --outdir=esm --format=esm && tsc --emitDeclarationOnly --outDir esm",
"build:all": "yarn tsc:check && yarn build:iife && yarn build:esm",
"clean": "rm -rf ./dist/* && rm -rf ./esm/*",
Expand Down

0 comments on commit 52e83c0

Please sign in to comment.