Skip to content

fix(resolve): warn if node-like builtin was imported when resolve.builtin is empty #19312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

sapphi-red
Copy link
Member

Description

The message says "it's automatically externalized" so it should call this.warn instead of this.error.

refs #18584

@sapphi-red sapphi-red added the p3-minor-bug An edge case that only affects very specific usage (priority) label Jan 29, 2025
@sapphi-red sapphi-red added this to the 6.1 milestone Jan 29, 2025
@patak-dev patak-dev merged commit b7aba0b into vitejs:main Feb 3, 2025
17 checks passed
@sapphi-red sapphi-red deleted the fix/warn-if-node-like-builtin-was-imported-when-resolve-builtin-is-empty branch February 4, 2025 01:29
github-merge-queue bot pushed a commit to rolldown/rolldown that referenced this pull request Apr 23, 2025
<!-- Thank you for contributing! -->

### Description

Ported changes from the following PRs:

- vitejs/vite#18889
- vitejs/vite#19300
- vitejs/vite#18584,
vitejs/vite#19312

and some minor changes.

With this PR and #4270, the tests in Vite repo should now pass with
native resolve plugin.

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
github-merge-queue bot pushed a commit to rolldown/rolldown that referenced this pull request Apr 23, 2025
<!-- Thank you for contributing! -->

### Description

Ported changes from the following PRs:

- vitejs/vite#18889
- vitejs/vite#19300
- vitejs/vite#18584,
vitejs/vite#19312

and some minor changes.

With this PR and #4270, the tests in Vite repo should now pass with
native resolve plugin.

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
moonlitusun pushed a commit to moonlitusun/vite that referenced this pull request May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy