Skip to content

feat: give some logs about browser-external at the pre-bundling period#7115

Closed
jianqi-jin wants to merge 1 commit intovitejs:mainfrom
jianqi-jin:fix-7105
Closed

feat: give some logs about browser-external at the pre-bundling period#7115
jianqi-jin wants to merge 1 commit intovitejs:mainfrom
jianqi-jin:fix-7105

Conversation

@jianqi-jin
Copy link
Contributor

@jianqi-jin jianqi-jin commented Feb 28, 2022

fix: give some logs about browser-external at the pre-opt period.

close #7105

image

Description

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@Niputi
Copy link
Contributor

Niputi commented Feb 28, 2022

there's already error messages like these in dev mode in browser devtools

@jianqi-jin
Copy link
Contributor Author

Yes, it showed in the runtime already. But in the build period, show some thing at the terminal isn't even better?

@bluwy bluwy added needs rebase p2-nice-to-have Not breaking anything but nice to have (priority) labels Mar 4, 2022
@bluwy bluwy changed the title fix: give some logs about browser-external at the pre-opt period. feat: give some logs about browser-external at the pre-bundling period Mar 4, 2022
@bluwy
Copy link
Member

bluwy commented Mar 4, 2022

This PR needs a rebase after some changes to the prebundling flow. Re the PR, I think it may be better to retrieve the externalized list from esbuildDepPlugin by passing a map as a parameter, and have the esbuild plugin mutate it? That way we can prevent the need to update the optimized metadata about it.

@patak-cat
Copy link
Member

Closing due to lack of activity. Thanks for the PR, please open a new one linking to this to keep discussing. I think the proposal by @bluwy is a good idea to improve the implementation.

@patak-cat patak-cat closed this May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2-nice-to-have Not breaking anything but nice to have (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dev/build silently externalizes some dependencies, leading to runtime errors

4 participants