Skip to content

Webpack globals #331

@silverwind

Description

@silverwind

Webpack provides a few built-in globals (all starting with __webpack) and they are also implemented in other webpack-compatible bundlers like Rspack, so I think having them in a shared module like this one would be ideal.

Would a globals.webpack be an acceptable addition, holding at least the globals that are common to both bundlers?

https://rspack.rs/api/runtime-api/module-variables#runtime
https://webpack.js.org/api/module-variables/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions