Skip to content

Commit

Permalink
fix(dev): update @parcel/watcher-wasm usage to 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 26, 2023
1 parent b6b8a9c commit 329230a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/server/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ export async function listenAndWatch(
// https://github.com/parcel-bundler/watcher
const subscribe = await import("@parcel/watcher")
.then((r) => r.subscribe)
.catch(() =>
import("@parcel/watcher-wasm").then((r) =>
(r.default || r)().then(() => r.subscribe),
),
);
.catch(() => import("@parcel/watcher-wasm").then((r) => r.subscribe));

const jsExts = new Set([".js", ".mjs", ".cjs", ".ts", ".mts", ".cts"]);

Expand Down

0 comments on commit 329230a

Please sign in to comment.