Skip to content

Commit 2a880a8

Browse files
authored
Dependency Updates (0.4.4) (#10)
* update wabac.js to 2.18.1 / wombat 3.7.4 * bump ipld/car and ipld/unixfs * bump webpack * more specific * add 'library' to webpack to ensure exports are not optimized out
1 parent 17eea44 commit 2a880a8

File tree

4 files changed

+332
-304
lines changed

4 files changed

+332
-304
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"src/*"
1717
],
1818
"dependencies": {
19-
"@ipld/car": "^5.1.1",
20-
"@ipld/unixfs": "^2.1.1",
21-
"@webrecorder/wabac": "2.17.3",
19+
"@ipld/car": "^5.3.1",
20+
"@ipld/unixfs": "^3.0.0",
21+
"@webrecorder/wabac": "^2.18.1",
2222
"auto-js-ipfs": "^2.3.0",
2323
"client-zip": "^2.3.0",
2424
"hash-wasm": "^4.9.0",

src/ipfsutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Downloader } from "./downloader.js";
33
import { create as createAutoIPFS } from "auto-js-ipfs";
44

55
import * as UnixFS from "@ipld/unixfs";
6-
import { CarWriter } from "@ipld/car";
6+
import { CarWriter } from "@ipld/car/writer";
77
import Queue from "p-queue";
88

99
// eslint-disable-next-line no-undef

webpack.config.cjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
/*eslint-env node */
22

33
const webpack = require("webpack");
4+
const TerserPlugin = require("terser-webpack-plugin");
45

56
const BANNER_TEXT = `'[name].js is part of the ArchiveWeb.page system (https://archiveweb.page) Copyright (C) 2020-${new Date().getFullYear()}, Webrecorder Software. Licensed under the Affero General Public License v3.'`;
67

78

89
module.exports = {
10+
target: "webworker",
11+
entry: {
12+
"main": "./src/index.js",
13+
},
914
output: {
1015
filename: "sw.js",
16+
library: {
17+
type: "self"
18+
}
19+
},
20+
optimization: {
21+
minimize: true,
22+
minimizer: [
23+
new TerserPlugin({
24+
extractComments: false,
25+
}),
26+
]
1127
},
28+
1229
plugins: [
1330
new webpack.NormalModuleReplacementPlugin(
1431
/^node:*/,

0 commit comments

Comments
 (0)