Skip to content

Commit 9edec2f

Browse files
committed
which-polygon should be "external" in the cjs build
(we are only really doing --bundle because we want the borders.json bundled)
1 parent 2c3c7c5 commit 9edec2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"clean": "shx rm -rf dist",
4848
"build": "run-s format-json build:**",
4949
"build:browser": "esbuild ./src/country-coder.ts --platform=browser --format=iife --global-name=countryCoder --bundle --sourcemap --outfile=./dist/country-coder.iife.js",
50-
"build:cjs": "esbuild ./src/country-coder.ts --platform=node --format=cjs --bundle --sourcemap --outfile=./dist/country-coder.cjs",
50+
"build:cjs": "esbuild ./src/country-coder.ts --platform=node --format=cjs --bundle --sourcemap --external:which-polygon --outfile=./dist/country-coder.cjs",
5151
"build:mjs": "esbuild ./src/country-coder.ts --platform=neutral --format=esm --bundle --sourcemap --external:which-polygon --outfile=./dist/country-coder.mjs",
5252
"build:types": "tsc",
5353
"format-json": "node ./scripts/format-json.js",

0 commit comments

Comments
 (0)