Skip to content

Support Webpack 5 #71

@huwshimi

Description

@huwshimi

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions