@qwik.dev/partytown
Version:
Relocate resource intensive third-party scripts off of the main thread and into a web worker.
145 lines • 4.86 kB
JSON
{
"name": "@qwik.dev/partytown",
"version": "0.11.1",
"description": "Relocate resource intensive third-party scripts off of the main thread and into a web worker.",
"license": "MIT",
"main": "index.cjs",
"module": "index.mjs",
"types": "index.d.ts",
"type": "module",
"engines": {
"node": ">=18.0.0"
},
"exports": {
"./integration": {
"types": "./integration/index.d.ts",
"import": "./integration/index.mjs",
"require": "./integration/index.cjs"
},
"./integration/index.mjs": "./integration/index.mjs",
"./integration/index.cjs": "./integration/index.cjs",
"./react": {
"types": "./react/index.d.ts",
"import": "./react/index.mjs",
"require": "./react/index.cjs"
},
"./react/index.mjs": "./react/index.mjs",
"./react/index.cjs": "./react/index.cjs",
"./services/index.mjs": "./services/index.mjs",
"./services/index.cjs": "./services/index.cjs",
"./services": {
"types": "./services/index.d.ts",
"import": "./services/index.mjs",
"require": "./services/index.cjs"
},
"./utils": {
"types": "./utils/index.d.ts",
"import": "./utils/index.mjs",
"require": "./utils/index.cjs"
},
"./utils/index.mjs": "./utils/index.mjs",
"./utils/index.cjs": "./utils/index.cjs",
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.cjs"
}
},
"bin": "bin/partytown.cjs",
"files": [
"bin/partytown.cjs",
"index.cjs",
"index.mjs",
"index.d.ts",
"integration/",
"lib/",
"react/",
"services/",
"utils/"
],
"devDependencies": {
"@changesets/cli": "^2.27.11",
"@changesets/get-github-info": "^0.6.0",
"@changesets/types": "^6.0.0",
"@microsoft/api-extractor": "^7.19.5",
"@playwright/test": "^1.48.2",
"@rollup/plugin-terser": "^0.4.3",
"@types/fs-extra": "^11.0.2",
"@types/node": "^18.17.15",
"@types/react": "^17.0.42",
"concurrently": "^7.0.0",
"domino": "^2.1.6",
"fs-extra": "^11.1.1",
"gzip-size": "^6.0.0",
"np": "^7.6.1",
"playwright": "^1.48.2",
"prettier": "^3.5.3",
"pretty-quick": "^4.0.0",
"rollup": "^3.29.1",
"simple-git-hooks": "^2.11.1",
"tslib": "^2.3.1",
"tsm": "^2.2.1",
"typescript": "^5.6.3",
"uvu": "^0.5.3"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 100,
"useTabs": false,
"quoteProps": "consistent"
},
"homepage": "https://github.com/BuilderIO/partytown#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/BuilderIO/partytown.git"
},
"keywords": [
"web worker",
"3rd-party",
"third-party",
"analytics",
"webapp",
"performance",
"lighthouse",
"core web vitals",
"react"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"dotenv": "^16.4.7"
},
"scripts": {
"build": "tsc && rollup -c scripts/rollup.config.js",
"build.prod": "tsc && rollup -c scripts/rollup.config.js --configReleaseBuild",
"build.site": "cd docs && npm i && npm run build",
"build.watch": "rollup -c scripts/rollup.config.js -w --configDev",
"change": "changeset",
"start": "npm run dev",
"dev": "tsc && concurrently \"npm:build.watch\" \"npm:tsc.watch\" -n build,tsc -c magenta,yellow",
"fmt": "prettier --config package.json --write src scripts",
"fmt.check": "prettier --config package.json --check src scripts",
"fmt.staged": "pretty-quick --staged",
"release": "changeset publish",
"serve": "node scripts/serve.cjs 4000",
"serve.test": "node scripts/serve.cjs 4001",
"serve.atomics": "node scripts/serve.cjs 4002 --atomics",
"serve.atomics.test": "node scripts/serve.cjs 4003 --atomics",
"test": "npm run test.unit && npm run test.chromium",
"test.atomics": "playwright test tests/integrations tests/platform --config playwright.atomics.config.ts --browser=chromium",
"test.chromium": "playwright test tests/integrations tests/platform --browser=chromium",
"test.webkit": "playwright test tests/integrations tests/platform --browser=webkit",
"test.firefox": "playwright test tests/integrations tests/platform --browser=firefox",
"test.nextjs.chromium": "cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=chromium",
"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",
"benchmark": "node tests/benchmarks/run.cjs",
"test.unit": "uvu -r tsm tests/unit",
"tsc.watch": "tsc -w"
}
}