Skip to content

Commit 23d3aab

Browse files
remove wasm blobs :'(
1 parent 11689c5 commit 23d3aab

File tree

4 files changed

+2
-34
lines changed

4 files changed

+2
-34
lines changed

package-lock.json

Lines changed: 2 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"human-date": "1.4.0",
4040
"isomorphic-fetch": "3.0.0",
4141
"localforage": "1.10.0",
42-
"nz-search": "file:../nz-search/public/pkg",
4342
"ol": "8.2.0",
4443
"proj4": "2.9.2",
4544
"svelte-frappe-charts": "1.10.0",

public/build/nz_search_bg.wasm

-110 KB
Binary file not shown.

rollup.config.mjs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,6 @@ import path from 'path'
1414

1515
const production = !process.env.ROLLUP_WATCH;
1616

17-
const wasmFiles = [
18-
'node_modules/nz-search/nz_search_bg.wasm'
19-
]
20-
21-
function copyBlobsPlugin() {
22-
return {
23-
name: 'copy-wasm-blobs',
24-
async buildEnd() {
25-
for (const wasmBlob of wasmFiles) {
26-
const data = await fs.readFile(path.resolve(wasmBlob))
27-
await this.emitFile({
28-
type: 'asset',
29-
source: data,
30-
fileName: path.basename(wasmBlob)
31-
32-
})
33-
this.addWatchFile(wasmBlob)
34-
}
35-
}
36-
}
37-
}
38-
3917
function serve() {
4018
let server;
4119

@@ -82,8 +60,6 @@ export default {
8260
}),
8361
}),
8462

85-
copyBlobsPlugin(),
86-
8763
css({ output: "extra.css" }),
8864

8965
// If you have external dependencies installed from

0 commit comments

Comments
 (0)