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

Support Node 18 without the need to use NODE_OPTIONS=--openssl-legacy-provider #56

Merged
merged 3 commits into from
Aug 30, 2022

Conversation

philipp-classen
Copy link
Member

@philipp-classen philipp-classen commented Aug 30, 2022

Includes Node 18 in list of supported NodeJs versions. Out of the box, the build did not work with Node 18 unless --openssl-legacy-provider is used. An upgrade to webpack 5 fixed that.

Background for the webpack changes:

@philipp-classen philipp-classen marked this pull request as draft August 30, 2022 13:00
@philipp-classen philipp-classen changed the title Include Node 18 in CI Support Node 18 without the need to use NODE_OPTIONS=--openssl-legacy-provider Aug 30, 2022
Background for the changes:
* replace `{ fs: 'empty' }` by `resolve: { fallback: { fs: false } }`
  * https://stackoverflow.com/a/64392550/783510

* hard-source-webpack-plugin is incompatible with webpack 5; instead
  webpack 5 added native caching, which is automatically enabled in
  development mode:
  * mzgoddard/hard-source-webpack-plugin#546 (comment)
  * https://webpack.js.org/configuration/cache/#cache
@philipp-classen philipp-classen marked this pull request as ready for review August 30, 2022 14:12
@philipp-classen philipp-classen merged commit 8fc101a into ghostery:main Aug 30, 2022
@philipp-classen philipp-classen deleted the include_node_18_in_ci branch August 30, 2022 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants