Skip to content

Commit 1825d98

Browse files
committed
Use ESM in JavaScript examples
As it is what JS projects would use when using the js-waku npm package.
1 parent cb3dbad commit 1825d98

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Examples: JS examples uses local ESM folder to replicate behaviour of js-waku publish package.
13+
1014
### Fixed
1115

1216
- `TypeError` issue related to constructors using js-waku in a JS project

examples/min-react-js-chat/package-lock.json

+7-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/min-react-js-chat/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@testing-library/jest-dom": "^5.11.4",
77
"@testing-library/react": "^11.1.0",
88
"@testing-library/user-event": "^12.1.10",
9-
"js-waku": "../../build/main",
9+
"js-waku": "../../build/esm",
1010
"protons": "^2.0.1",
1111
"react": "^17.0.2",
1212
"react-dom": "^17.0.2",

examples/store-reactjs-chat/package-lock.json

+7-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/store-reactjs-chat/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@testing-library/jest-dom": "^5.14.1",
77
"@testing-library/react": "^11.2.7",
88
"@testing-library/user-event": "^12.8.3",
9-
"js-waku": "../../build/main",
9+
"js-waku": "../../build/esm",
1010
"protons": "^2.0.1",
1111
"react": "^17.0.2",
1212
"react-dom": "^17.0.2",

0 commit comments

Comments
 (0)