From: Chris Duncan Date: Wed, 20 Nov 2024 02:06:01 +0000 (-0800) Subject: Explicitly define esbuild platform when building, even though browser is the default. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=1a3e1336865ef6fa08ee097f1ebcec1d59ee4641;p=libnemo.git Explicitly define esbuild platform when building, even though browser is the default. --- diff --git a/package.json b/package.json index eaa93ea..900b154 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "url": "git+https://zoso.dev/libnemo.git" }, "scripts": { - "build": "rm -rf dist && tsc && esbuild main.min=dist/main.js global.min=dist/global.js --outdir=dist --target=es2022 --format=esm --bundle --minify --sourcemap", + "build": "rm -rf dist && tsc && esbuild main.min=dist/main.js global.min=dist/global.js --outdir=dist --target=es2022 --format=esm --platform=browser --bundle --minify --sourcemap", "test": "npm run build -- --platform=node && node --test --test-force-exit --env-file .env", "test:coverage": "npm run test -- --experimental-test-coverage", "test:coverage:report": "npm run test:coverage -- --test-reporter=lcov --test-reporter-destination=coverage.info && genhtml coverage.info --output-directory test/coverage && rm coverage.info && xdg-open test/coverage/index.html"