Skip to content

fix: relax community add-on requirements (alternate) - #1225

Closed
AdrianGonz97 wants to merge 8 commits into
mainfrom
1224-alternative
Closed

fix: relax community add-on requirements (alternate)#1225
AdrianGonz97 wants to merge 8 commits into
mainfrom
1224-alternative

Conversation

@AdrianGonz97

@AdrianGonz97 AdrianGonz97 commented Aug 5, 2026

Copy link
Copy Markdown
Member

Description

Alternative to #1224
Closes #1210

Rather than simply checking the export conditions and dependency fields for non-bundled deps, we'll instead try to load the module and handle the specific node error code for missing modules, which would be indicative of deps that are not bundled.

note: this hasn't been tested on Bun or Deno yet. their missing module error codes could be different. will do that shortly. It looks to work on Bun and Deno as well (though if someone else could verify this as well, that would be great!)

Checklist

  • Update snapshots (if applicable)
  • Add a changeset (if applicable)
  • Allow maintainers to edit this PR
  • I care about what I'm doing, no matter the tool I use (Notepad, Sublime, VSCode, AI...)

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 5, 2026

Copy link
Copy Markdown

Install the latest version of sv from 953e2da:

pnpm add https://pkg.svelte.dev/sv/c/953e2dac2189c8f44cc732d452451d33c8f86867

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/cli/pr/1225

@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 953e2da

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

This PR includes changesets to release 1 package
Name Type
sv 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

@AdrianGonz97 AdrianGonz97 changed the title only error if it is standalone addon fix: relax community add-on requirements (alternate) Aug 5, 2026
@svelte-docs-bot

Copy link
Copy Markdown

@AdrianGonz97
AdrianGonz97 changed the base branch from main to version-1 August 7, 2026 20:01
@AdrianGonz97
AdrianGonz97 changed the base branch from version-1 to main August 7, 2026 20:10
@AdrianGonz97

AdrianGonz97 commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

The merge conflicts are heavy with this one. Closing in favor of #1233

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.

Relax sv add requirements

2 participants