Skip to content

fix(build): keep magicString and ast in transform hook meta - #24012

Merged
sapphi-red merged 5 commits into
vitejs:mainfrom
btea:fix/transform-meta-magic-string
Nov 10, 2026
Merged

sapphi-red merged 5 commits into
vitejs:mainfrom
btea:fix/transform-meta-magic-string

Conversation

@btea

@btea btea commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

close #24010

@sapphi-red sapphi-red added p3-minor-bug An edge case that only affects very specific usage (priority) feat: build labels Nov 10, 2026
@sapphi-red sapphi-red changed the title fix(build): keep magicString and ast in transform hook meta fix(build): keep magicString and ast in transform hook meta Nov 10, 2026
@sapphi-red
sapphi-red merged commit a3b28e8 into vitejs:main Nov 10, 2026
18 checks passed
@btea
btea deleted the fix/transform-meta-magic-string branch November 10, 2026 04:05
@github-actions github-actions Bot mentioned this pull request Nov 10, 2026
sapphi-red added a commit that referenced this pull request Nov 11, 2026
@github-actions github-actions Bot mentioned this pull request Nov 11, 2026
dadezzz pushed a commit to dadezzz/events-cash-register that referenced this pull request Nov 16, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [vite](https://vite.dev) ([source](https://github.com/vitejs/vite/tree/HEAD/packages/vite)) | [`8.3.7` → `8.3.8`](https://renovatebot.com/diffs/npm/vite/8.3.7/8.3.8) | ![age](https://developer.mend.io/api/mc/badges/age/npm/vite/8.3.8?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/8.3.7/8.3.8?slim=true) |

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

### [`v8.3.8`](https://github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small-838-2026-11-11-small)

[Compare Source](vitejs/vite@v8.3.7...v8.3.8)

##### Bug Fixes

- **build:** keep `magicString` and `ast` in transform hook meta ([#&#8203;24012](vitejs/vite#24012)) ([a3b28e8](vitejs/vite@a3b28e8))
- **bundled-dev:** emit assets referenced by inline workers during load ([#&#8203;23103](vitejs/vite#23103)) ([5e50bae](vitejs/vite@5e50bae))
- **config:** skip native loader compat checks for type-only imports ([#&#8203;24021](vitejs/vite#24021)) ([e554294](vitejs/vite@e554294))
- **css:** reject CSS entrypoints when `build.cssCodeSplit: false` ([#&#8203;23112](vitejs/vite#23112)) ([e4ad62b](vitejs/vite@e4ad62b))
- **deps:** update all non-major dependencies ([#&#8203;24027](vitejs/vite#24027)) ([a13aa04](vitejs/vite@a13aa04))
- hide console window when running `yarn config get` on Windows ([#&#8203;24013](vitejs/vite#24013)) ([3f6c4cd](vitejs/vite@3f6c4cd))

##### Performance Improvements

- **css:** import sass once instead of per file ([#&#8203;24041](vitejs/vite#24041)) ([db8b119](vitejs/vite@db8b119))
- defer `net use` until a UNC path is resolved on Windows ([#&#8203;24014](vitejs/vite#24014)) ([b643046](vitejs/vite@b643046))

##### Miscellaneous Chores

- **deps:** update dependency [@&#8203;types/node](https://github.com/types/node) to v26 ([#&#8203;24029](vitejs/vite#24029)) ([dd780cd](vitejs/vite@dd780cd))
- enable vitest plugin in Oxlint ([#&#8203;24052](vitejs/vite#24052)) ([ce979e4](vitejs/vite@ce979e4))
- enable vitest style rules in Oxlint ([#&#8203;24053](vitejs/vite#24053)) ([b8c8270](vitejs/vite@b8c8270))
- revert "fix(build): keep `magicString` and `ast` in transform hook meta ([#&#8203;24012](vitejs/vite#24012))" ([#&#8203;24065](vitejs/vite#24065)) ([afc44f0](vitejs/vite@afc44f0))

##### Code Refactoring

- **optimizer:** use non-capturing group for external types regex ([#&#8203;24048](vitejs/vite#24048)) ([ef23433](vitejs/vite@ef23433))

##### Tests

- avoid joining logs for assertion ([#&#8203;24057](vitejs/vite#24057)) ([fbb0a4e](vitejs/vite@fbb0a4e))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMzkuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjIzOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
markharding pushed a commit to futo-org/Harbor that referenced this pull request Nov 17, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [vite](https://vite.dev) ([source](https://github.com/vitejs/vite/tree/HEAD/packages/vite)) | [`8.3.7` → `8.3.8`](https://renovatebot.com/diffs/npm/vite/8.3.7/8.3.8) | ![age](https://developer.mend.io/api/mc/badges/age/npm/vite/8.3.8?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/8.3.7/8.3.8?slim=true) |

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

### [`v8.3.8`](https://github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small-838-2026-11-11-small)

[Compare Source](vitejs/vite@v8.3.7...v8.3.8)

##### Bug Fixes

- **build:** keep `magicString` and `ast` in transform hook meta ([#&#8203;24012](vitejs/vite#24012)) ([a3b28e8](vitejs/vite@a3b28e8))
- **bundled-dev:** emit assets referenced by inline workers during load ([#&#8203;23103](vitejs/vite#23103)) ([5e50bae](vitejs/vite@5e50bae))
- **config:** skip native loader compat checks for type-only imports ([#&#8203;24021](vitejs/vite#24021)) ([e554294](vitejs/vite@e554294))
- **css:** reject CSS entrypoints when `build.cssCodeSplit: false` ([#&#8203;23112](vitejs/vite#23112)) ([e4ad62b](vitejs/vite@e4ad62b))
- **deps:** update all non-major dependencies ([#&#8203;24027](vitejs/vite#24027)) ([a13aa04](vitejs/vite@a13aa04))
- hide console window when running `yarn config get` on Windows ([#&#8203;24013](vitejs/vite#24013)) ([3f6c4cd](vitejs/vite@3f6c4cd))

##### Performance Improvements

- **css:** import sass once instead of per file ([#&#8203;24041](vitejs/vite#24041)) ([db8b119](vitejs/vite@db8b119))
- defer `net use` until a UNC path is resolved on Windows ([#&#8203;24014](vitejs/vite#24014)) ([b643046](vitejs/vite@b643046))

##### Miscellaneous Chores

- **deps:** update dependency [@&#8203;types/node](https://github.com/types/node) to v26 ([#&#8203;24029](vitejs/vite#24029)) ([dd780cd](vitejs/vite@dd780cd))
- enable vitest plugin in Oxlint ([#&#8203;24052](vitejs/vite#24052)) ([ce979e4](vitejs/vite@ce979e4))
- enable vitest style rules in Oxlint ([#&#8203;24053](vitejs/vite#24053)) ([b8c8270](vitejs/vite@b8c8270))
- revert "fix(build): keep `magicString` and `ast` in transform hook meta ([#&#8203;24012](vitejs/vite#24012))" ([#&#8203;24065](vitejs/vite#24065)) ([afc44f0](vitejs/vite@afc44f0))

##### Code Refactoring

- **optimizer:** use non-capturing group for external types regex ([#&#8203;24048](vitejs/vite#24048)) ([ef23433](vitejs/vite@ef23433))

##### Tests

- avoid joining logs for assertion ([#&#8203;24057](vitejs/vite#24057)) ([fbb0a4e](vitejs/vite@fbb0a4e))

</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:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjcuNCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyNy40IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: https://code.futo.org/harbor/harbor/pulls/2346
dadezzz pushed a commit to dadezzz/university_notes that referenced this pull request Nov 18, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [vite](https://vite.dev) ([source](https://github.com/vitejs/vite/tree/HEAD/packages/vite)) | [`8.3.6` → `8.3.8`](https://renovatebot.com/diffs/npm/vite/8.3.6/8.3.8) | ![age](https://developer.mend.io/api/mc/badges/age/npm/vite/8.3.8?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/8.3.6/8.3.8?slim=true) |

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

### [`v8.3.8`](https://github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small-838-2026-11-11-small)

[Compare Source](vitejs/vite@v8.3.7...v8.3.8)

##### Bug Fixes

- **build:** keep `magicString` and `ast` in transform hook meta ([#&#8203;24012](vitejs/vite#24012)) ([a3b28e8](vitejs/vite@a3b28e8))
- **bundled-dev:** emit assets referenced by inline workers during load ([#&#8203;23103](vitejs/vite#23103)) ([5e50bae](vitejs/vite@5e50bae))
- **config:** skip native loader compat checks for type-only imports ([#&#8203;24021](vitejs/vite#24021)) ([e554294](vitejs/vite@e554294))
- **css:** reject CSS entrypoints when `build.cssCodeSplit: false` ([#&#8203;23112](vitejs/vite#23112)) ([e4ad62b](vitejs/vite@e4ad62b))
- **deps:** update all non-major dependencies ([#&#8203;24027](vitejs/vite#24027)) ([a13aa04](vitejs/vite@a13aa04))
- hide console window when running `yarn config get` on Windows ([#&#8203;24013](vitejs/vite#24013)) ([3f6c4cd](vitejs/vite@3f6c4cd))

##### Performance Improvements

- **css:** import sass once instead of per file ([#&#8203;24041](vitejs/vite#24041)) ([db8b119](vitejs/vite@db8b119))
- defer `net use` until a UNC path is resolved on Windows ([#&#8203;24014](vitejs/vite#24014)) ([b643046](vitejs/vite@b643046))

##### Miscellaneous Chores

- **deps:** update dependency [@&#8203;types/node](https://github.com/types/node) to v26 ([#&#8203;24029](vitejs/vite#24029)) ([dd780cd](vitejs/vite@dd780cd))
- enable vitest plugin in Oxlint ([#&#8203;24052](vitejs/vite#24052)) ([ce979e4](vitejs/vite@ce979e4))
- enable vitest style rules in Oxlint ([#&#8203;24053](vitejs/vite#24053)) ([b8c8270](vitejs/vite@b8c8270))
- revert "fix(build): keep `magicString` and `ast` in transform hook meta ([#&#8203;24012](vitejs/vite#24012))" ([#&#8203;24065](vitejs/vite#24065)) ([afc44f0](vitejs/vite@afc44f0))

##### Code Refactoring

- **optimizer:** use non-capturing group for external types regex ([#&#8203;24048](vitejs/vite#24048)) ([ef23433](vitejs/vite@ef23433))

##### Tests

- avoid joining logs for assertion ([#&#8203;24057](vitejs/vite#24057)) ([fbb0a4e](vitejs/vite@fbb0a4e))

### [`v8.3.7`](https://github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small-837-2026-11-09-small)

[Compare Source](vitejs/vite@v8.3.6...v8.3.7)

##### Bug Fixes

- **deps:** update Rolldown to v1.2.18 ([#&#8203;24038](vitejs/vite#24038)) ([517affb](vitejs/vite@517affb))

##### Miscellaneous Chores

- enable more lint rules ([#&#8203;24035](vitejs/vite#24035)) ([72f86e5](vitejs/vite@72f86e5))

##### Tests

- use `onTestFinished` for tear downs ([#&#8203;24003](vitejs/vite#24003)) ([a579e35](vitejs/vite@a579e35))

##### Build System

- generate sourcemaps in shim-deps plugin ([#&#8203;24023](vitejs/vite#24023)) ([c02138c](vitejs/vite@c02138c))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMzUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjIzOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: build p3-minor-bug An edge case that only affects very specific usage (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

meta.magicString is undefined in plugin transform hook during build

2 participants