Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update emscripten for Node 18 support #5

Merged
merged 4 commits into from
Nov 30, 2022
Merged

Update emscripten for Node 18 support #5

merged 4 commits into from
Nov 30, 2022

Conversation

jtbandes
Copy link
Member

@jtbandes jtbandes commented Nov 23, 2022

Public-Facing Changes
Upgrade emscripten to fix compatibility with Node 18.

Description
Fixes #4

@jtbandes jtbandes marked this pull request as ready for review November 29, 2022 18:05
node-version:
- 14.x
- 16.x
- 18.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well test 20.x so we catch the next problem :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@@ -46,5 +46,8 @@
"jest-ts-webcompat-resolver": "1.0.0",
"prettier": "2.3.2",
"typescript": "4.3.5"
},
"dependencies": {
"tslib": "^2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What makes this project depend on tslib? I've constantly found myself struggling to understand when I need to add tslib as a dependency vs when I don't/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must depend on tslib when importHelpers is set to true. Ideally, it is set to true in all TypeScript libraries your project depends on so TS standard library functions are compiled into your app once instead of repeated in the compiled source of each package.

@jtbandes jtbandes merged commit 33c43c4 into main Nov 30, 2022
@jtbandes jtbandes deleted the jacob/node-18 branch November 30, 2022 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Error when loading @foxglove/wasm-bz2 in Node 18
3 participants