Skip to content

fix: more alias resolution fixes - #14433

Merged
Rich-Harris merged 2 commits into
mainfrom
pkg-alias-fix-2
Sep 15, 2025
Merged

Rich-Harris merged 2 commits into
mainfrom
pkg-alias-fix-2

Conversation

@dummdidumm

Copy link
Copy Markdown
Member
  • handle import/export * (as ...) when resolving aliases (fix: better alias resolution #14413 (comment))
  • prevent false-positive alias replacement when another import starts with an alias but it's not the full one, e.g. don't replace $libre with ./re

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

@changeset-bot

changeset-bot Bot commented Sep 15, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0ed1427

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/package Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Rich-Harris
Rich-Harris merged commit 780ea38 into main Sep 15, 2025
@Rich-Harris
Rich-Harris deleted the pkg-alias-fix-2 branch September 15, 2025 16:14
@github-actions github-actions Bot mentioned this pull request Sep 15, 2025
@etiennearl etiennearl mentioned this pull request Sep 17, 2025
5 of 6 tasks
Copilot AI pushed a commit to Stadly/kit that referenced this pull request Mar 6, 2026
* fix: handle `import/export * (as ...)` when resolving aliases

sveltejs#14413 (comment)

* while we're here
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