Skip to content

Add __webpack_layer__ global - #351

Merged
sindresorhus merged 1 commit into
sindresorhus:mainfrom
chenjiahan:chenjiahan/add-webpack-layer-global
Aug 22, 2026
Merged

sindresorhus merged 1 commit into
sindresorhus:mainfrom
chenjiahan:chenjiahan/add-webpack-layer-global

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

This adds the __webpack_layer__ read-only global to the Rspack and Webpack environments. Both bundlers replace it at compile time with the current module layer or null, so static analysis tools should recognize it.

Related Links

@sindresorhus
sindresorhus merged commit 779a11a into sindresorhus:main Aug 22, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/add-webpack-layer-global branch August 23, 2026 00:56
gwennlbh pushed a commit to cigaleapp/cigale that referenced this pull request Sep 9, 2026
##### [v17.12.0](https://github.com/sindresorhus/globals/releases/tag/v17.12.0)

- Update globals (2026-09-01) ([#353](sindresorhus/globals#353))  [`50a2119`](sindresorhus/globals@50a2119)
- Add `__webpack_layer__` global ([#351](sindresorhus/globals#351))  [`779a11a`](sindresorhus/globals@779a11a)

***

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
markharding pushed a commit to futo-org/Harbor that referenced this pull request Oct 14, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [globals](https://github.com/sindresorhus/globals) | [`17.7.0` → `17.13.0`](https://renovatebot.com/diffs/npm/globals/17.7.0/17.13.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/globals/17.13.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/globals/17.7.0/17.13.0?slim=true) |

---

### Release Notes

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

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

[Compare Source](sindresorhus/globals@v17.12.0...v17.13.0)

- Update globals (2026-10-01) ([#&#8203;354](sindresorhus/globals#354))  [`b007369`](sindresorhus/globals@b007369)

***

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

[Compare Source](sindresorhus/globals@v17.11.0...v17.12.0)

- Update globals (2026-09-01) ([#&#8203;353](sindresorhus/globals#353))  [`50a2119`](sindresorhus/globals@50a2119)
- Add `__webpack_layer__` global ([#&#8203;351](sindresorhus/globals#351))  [`779a11a`](sindresorhus/globals@779a11a)

***

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

[Compare Source](sindresorhus/globals@v17.10.0...v17.11.0)

- Add `react-native` globals ([#&#8203;337](sindresorhus/globals#337))  [`61eafbf`](sindresorhus/globals@61eafbf)

***

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

[Compare Source](sindresorhus/globals@v17.9.0...v17.10.0)

- Add `GM_cookie` to Greasemonkey globals ([#&#8203;349](sindresorhus/globals#349))  [`f468407`](sindresorhus/globals@f468407)

***

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

[Compare Source](sindresorhus/globals@v17.8.0...v17.9.0)

- Update globals (2026-08-01) ([#&#8203;348](sindresorhus/globals#348))  [`5a958ed`](sindresorhus/globals@5a958ed)

***

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

[Compare Source](sindresorhus/globals@v17.7.0...v17.8.0)

- Update globals (2026-07-01) ([#&#8203;347](sindresorhus/globals#347))  [`7394811`](sindresorhus/globals@7394811)

***

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 9am on tuesday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

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

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzMuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjEzMy4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: https://code.futo.org/harbor/harbor/pulls/1813
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.

2 participants