Visitar URL original
Add `webpack` and `rspack` globals by silverwind · Pull Request #333 · sindresorhus/globals · GitHub
Skip to content

Add webpack and rspack globals - #333

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

sindresorhus merged 2 commits into
sindresorhus:mainfrom
silverwind:webpack

Conversation

@silverwind

@silverwind silverwind commented Jan 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Comment thread data/webpack.mjs
__non_webpack_require__: false,
__resourceQuery: false,
__webpack_base_uri__: true,
__webpack_chunk_load__: true,

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread data/webpack.mjs
__webpack_base_uri__: true,
__webpack_chunk_load__: true,
__webpack_exports_info__: false,
__webpack_get_script_filename__: true,

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread data/webpack.mjs Resolved

@fisker fisker left a comment

Copy link
Copy Markdown
Collaborator

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
736-c41-2c1-e464fc974 pushed a commit to Swiss-Armed-Forces/Loom that referenced this pull request Mar 31, 2026
This MR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [globals](https://github.com/sindresorhus/globals) | devDependencies | major | [`^16.2.0` → `^17.0.0`](https://renovatebot.com/diffs/npm/globals/16.5.0/17.4.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/sindresorhus/globals/badge)](https://securityscorecards.dev/viewer/?uri=github.com/sindresorhus/globals) |

---

### Release Notes

<details>
<summary>sindresorhus/globals (globals)</summary>

### [`v17.4.0`](https://github.com/sindresorhus/globals/releases/tag/v17.4.0)

[Compare Source](sindresorhus/globals@v17.3.0...v17.4.0)

- Update globals (2026-03-01) ([#&#8203;338](sindresorhus/globals#338))  [`d43a051`](sindresorhus/globals@d43a051)

***

### [`v17.3.0`](https://github.com/sindresorhus/globals/releases/tag/v17.3.0)

[Compare Source](sindresorhus/globals@v17.2.0...v17.3.0)

- Update globals (2026-02-01) ([#&#8203;336](sindresorhus/globals#336))  [`295fba9`](sindresorhus/globals@295fba9)

***

### [`v17.2.0`](https://github.com/sindresorhus/globals/releases/tag/v17.2.0)

[Compare Source](sindresorhus/globals@v17.1.0...v17.2.0)

- `jasmine`: Add `throwUnless` and `throwUnlessAsync` globals ([#&#8203;335](sindresorhus/globals#335))  [`97f23a7`](sindresorhus/globals@97f23a7)

***

### [`v17.1.0`](https://github.com/sindresorhus/globals/releases/tag/v17.1.0)

[Compare Source](sindresorhus/globals@v17.0.0...v17.1.0)

- Add `webpack` and `rspack` globals ([#&#8203;333](sindresorhus/globals#333))  [`65cae73`](sindresorhus/globals@65cae73)

***

### [`v17.0.0`](https://github.com/sindresorhus/globals/releases/tag/v17.0.0)

[Compare Source](sindresorhus/globals@v16.5.0...v17.0.0)

##### Breaking

- Split `audioWorklet` environment from `browser` ([#&#8203;320](sindresorhus/globals#320))  [`7bc293e`](sindresorhus/globals@7bc293e)

##### Improvements

- Update globals ([#&#8203;329](sindresorhus/globals#329))  [`ebe1063`](sindresorhus/globals@ebe1063)
- Get all browser globals from both `chrome` and `firefox` ([#&#8203;321](sindresorhus/globals#321))  [`59ceff8`](sindresorhus/globals@59ceff8)
- Add `bunBuiltin` environment ([#&#8203;324](sindresorhus/globals#324))  [`1bc6e3b`](sindresorhus/globals@1bc6e3b)
- Add `denoBuiltin` environment ([#&#8203;324](sindresorhus/globals#324))  [`1bc6e3b`](sindresorhus/globals@1bc6e3b)
- Add `paintWorklet` environment ([#&#8203;323](sindresorhus/globals#323))  [`4b78f56`](sindresorhus/globals@4b78f56)
- Add `sharedWorker` environment ([#&#8203;322](sindresorhus/globals#322))  [`4a02a85`](sindresorhus/globals@4a02a85)

***

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40Ni4zIiwidXBkYXRlZEluVmVyIjoiNDMuODQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=-->

See merge request swiss-armed-forces/cyber-command/cea/loom!341

Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com>
Co-authored-by: persistent-chamoisee yield <persistent-chamoisee-yield-9fd-f86-2e0-f31d23b2e@swiss-armed-forces-open-source.ch>
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