Skip to content

Commit ab03770

Browse files
committed
fix demo build
1 parent ede194b commit ab03770

5 files changed

Lines changed: 14 additions & 2 deletions

File tree

.terserrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"format": {
3+
"comments": false
4+
}
5+
}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.8.1
2+
- Fixed reallocating on pre-supplied buffer in `inflateSync` and `unzlibSync`
3+
- Minor documentation fixes
14
## 0.8.0
25
- BREAKING: synchronous decompression functions now take an options object rather than an output buffer as a second parameter
36
- `inflateSync(compressed, outBuf)` is now `inflateSync(compressed, { out: outBuf })`

demo/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"sideEffects": true
3+
}

demo/sw.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import { manifest, version } from '@parcel/service-worker'
33

44
const precacheVersion = version
5-
const precacheFiles = manifest.filter(u => /\.(ico)$/.test(u));
5+
const precacheFiles = manifest.filter(u => !/\.(ico)$/.test(u));
6+
7+
const sw = self as unknown as ServiceWorkerGlobalScope
68

79
const ch = () => caches.open(precacheVersion);
810

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
"build:lib": "tsc && tsc --project tsconfig.esm.json && npm run build:rewrite && npm run build:umd",
9292
"build:umd": "SC=buildUMD npm run script",
9393
"build:rewrite": "SC=rewriteBuilds npm run script",
94-
"watch:demo": "parcel demo/index.html --no-cache",
9594
"build:demo": "tsc --project tsconfig.demo.json && parcel build demo/index.html --no-cache --public-url \"./\" && SC=cpGHPages npm run script",
9695
"build:docs": "typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs --readme none --disableSources --excludePrivate --excludeProtected --githubPages false --out docs/ src/index.ts",
9796
"test": "TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test",

0 commit comments

Comments
 (0)