Skip to content
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

feat: add sourcemap configuration switch #833

Merged
merged 1 commit into from
Mar 10, 2025
Merged

Conversation

amazli
Copy link
Contributor

@amazli amazli commented Mar 10, 2025

In a vue3+webpack project, referencing unplugin-vue-components/webpack will result in the code being compiled when debugging locally, as shown in the figure:
image

The normal debugger source code should be
image

I guess if the sourcemap transformed by magic-string is directly used by webpack as the source code for secondary compilation
So, a socuremap switch configuration is added, with the default being true

@amazli amazli requested a review from antfu as a code owner March 10, 2025 09:48
Copy link

stackblitz bot commented Mar 10, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@antfu antfu enabled auto-merge (squash) March 10, 2025 09:53
@antfu antfu merged commit 365b67e into unplugin:main Mar 10, 2025
6 checks passed
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