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

Remove node-polyfill-webpack-plugin #4400

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented May 28, 2024

This removes the usage of NodePolyfillWebpackPlugin which is used in

  • our storybook
  • jbrowse-web build
  • jbrowse-desktop build
  • embedded code umd builds
  • embedded code CRA demos
  • component_tests integration tests for embedded code

The node-polyfill-webpack-plugin is used to polyfill Buffer amongst other things however i think it's a little bit backwards looking: most of our code works now without a lot of polyfilling, except for Buffer. I think removing it makes it more clear what needs polyfills, and that is basically just buffer.

Secondary to this PR, it can be removed from demos if possible

https://github.com/GMOD/jbrowse-react-linear-genome-view-cra5-demo/blob/main/craco.config.js

It might be that a specific line that polyfills Buffer might be needed, but I found our code actually works even without it (which i am not sure how the buffer code is working without that polyfill, may need investigating)

@cmdcolin cmdcolin force-pushed the remove_nodepolyfillwebpackplugin branch from 19eecf1 to 72448ad Compare May 28, 2024 19:59
@cmdcolin cmdcolin force-pushed the remove_nodepolyfillwebpackplugin branch from 72448ad to 24106bd Compare June 4, 2024 12:21
@cmdcolin cmdcolin merged commit 02a751b into main Jun 4, 2024
10 checks passed
@cmdcolin cmdcolin deleted the remove_nodepolyfillwebpackplugin branch June 4, 2024 12:24
@cmdcolin cmdcolin added housekeeping needs to be tidied up, is a drag on team performance internal labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping needs to be tidied up, is a drag on team performance internal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant