@builder.io/partytown

v0.10.2
Relocate resource intensive third-party scripts off of the main thread and into a web worker.
web worker 3rd-party third-party analytics webapp performance lighthouse core web vitals react and 1 more...

dev

tsc && concurrently "npm:build.watch" "npm:tsc.watch" -n build,tsc -c magenta,yellow

fmt

prettier --config package.json --write src scripts

test

npm run test.unit && npm run test.chromium

build

tsc && rollup -c scripts/rollup.config.js

serve

node scripts/serve.cjs 4000

start

npm run dev

release

npm run build && npm test && np --no-tests

version

npm run build.prod

benchmark

node tests/benchmarks/run.cjs

fmt.check

prettier --config package.json --check src scripts

test.unit

uvu -r tsm tests/unit

tsc.watch

tsc -w

build.prod

tsc && rollup -c scripts/rollup.config.js --configReleaseBuild

build.site

npm run build && cd docs/site && npm i && npm run build && node ../../scripts/copy-site.cjs

serve.test

node scripts/serve.cjs 4001

build.watch

rollup -c scripts/rollup.config.js -w --configDev

test.webkit

playwright test tests/integrations tests/platform --browser=webkit

test.atomics

playwright test tests/integrations tests/platform --config playwright.atomics.config.ts --browser=chromium

test.firefox

playwright test tests/integrations tests/platform --browser=firefox

serve.atomics

node scripts/serve.cjs 4002 --atomics

test.chromium

playwright test tests/integrations tests/platform --browser=chromium

serve.atomics.test

node scripts/serve.cjs 4003 --atomics

test.nextjs.webkit

cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=webkit

test.nextjs.firefox

cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=firefox

test.nextjs.chromium

cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=chromium
npm i @builder.io/partytown

Metadata

  • MIT
  • >=18.0.0
  • Builder.io Team
  • released 4/27/2024

Downloads