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 Webpack 5 #71

Open
huwshimi opened this issue Oct 5, 2022 · 0 comments
Open

Support Webpack 5 #71

huwshimi opened this issue Oct 5, 2022 · 0 comments

Comments

@huwshimi
Copy link
Member

huwshimi commented Oct 5, 2022

From Webpack v5 node modules are no longer available in the browser. It looks like the only node polyfill required is for process for accessing process.env.

At the moment we're making that available in juju-dashboard here: https://github.com/canonical/jaas-dashboard/blob/main/src/index.js#L35.

This lib will need to built with babel/webpack (which might also mean that the tests need to be updated to use Jest). You can see how I did this for bakeryjs here: juju/bakeryjs#39.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant