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

fix(extractor-arbitrary-variants): remove sourcemap before matching attributes #3123

Merged

Conversation

Dunqing
Copy link
Member

@Dunqing Dunqing commented Sep 14, 2023

fix: #3103

After I did some digging, I found out that if the source code contains an inline source map, it makes the extractor very slow. So I think we should remove source map and then matching

@Dunqing Dunqing requested a review from antfu as a code owner September 14, 2023 11:02
@netlify
Copy link

netlify bot commented Sep 14, 2023

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit bee1367
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/6503c27c05bcf20008688621
😎 Deploy Preview https://deploy-preview-3123--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Dunqing
Copy link
Member Author

Dunqing commented Sep 15, 2023

Can we move this change to applyExtractor. this will be useful for all extractors.

@antfu
Copy link
Member

antfu commented Sep 15, 2023

I don't think we should do it in core, the core should be language agnostic.

@Dunqing
Copy link
Member Author

Dunqing commented Sep 15, 2023

I don't think we should do it in core, the core should be language agnostic.

Ok, I got it.

@Dunqing Dunqing requested a review from antfu September 15, 2023 02:34
@antfu antfu merged commit 58e9073 into unocss:main Sep 18, 2023
10 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.

Abnormal Build Time When Used with Astro 3.0 ViewTransitions
2 participants