Skip to content

Add webpack and rspack globals#333

Merged
sindresorhus merged 2 commits intosindresorhus:mainfrom
silverwind:webpack
Jan 23, 2026
Merged

Add webpack and rspack globals#333
sindresorhus merged 2 commits intosindresorhus:mainfrom
silverwind:webpack

Conversation

@silverwind
Copy link
Contributor

@silverwind silverwind commented Jan 15, 2026

The writable flag for some of these is guesswork because both documentations often do not mention writability. I think I at least got the more important ones right, though.

Fixes: #331

__non_webpack_require__: false,
__resourceQuery: false,
__webpack_base_uri__: true,
__webpack_chunk_load__: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a function, should it be readonly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__webpack_base_uri__: true,
__webpack_chunk_load__: true,
__webpack_exports_info__: false,
__webpack_get_script_filename__: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@fisker fisker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments

@sindresorhus sindresorhus merged commit 65cae73 into sindresorhus:main Jan 23, 2026
5 checks passed
@silverwind silverwind deleted the webpack branch January 23, 2026 06:55
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.

Webpack globals

3 participants