Skip to content

Commit

Permalink
fix(bundle): use URL schema for dynamic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jost-s authored Jun 15, 2022
1 parent 41bd54f commit a543cf4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed
### Fixed

## 2022-06-07: v0.4.1

### Changed

- Convert module import to URL schema in lazy imports. [\#111](https://github.com/holochain/holochain-client-js/pull/111)

## 2022-06-07: v0.4.0

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@holochain/client",
"version": "0.4.0",
"version": "0.4.1",
"description": "A JavaScript client for the Holochain Conductor API",
"author": "Holochain Foundation <[email protected]> (http://holochain.org)",
"license": "CAL-1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const readAppBundleFromPath = async (path: string): Promise<AppBundle> => {
}
const {
promises: { readFile },
} = await import("fs");
const { gunzip } = await import("zlib");
} = await import("node:fs");
const { gunzip } = await import("node:zlib");

const compressed = await readFile(path);
const encoded: Uint8Array = await new Promise((resolve, reject) =>
Expand Down

0 comments on commit a543cf4

Please sign in to comment.