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: scan .marko files #14669

Merged
merged 2 commits into from Oct 18, 2023
Merged

feat: scan .marko files #14669

merged 2 commits into from Oct 18, 2023

Conversation

patak-dev
Copy link
Member

Description

Hardcode .marko files as scannable. See #14536 (comment) for more information.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@patak-dev patak-dev requested a review from bluwy October 17, 2023 13:04
@patak-dev patak-dev added the p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority) label Oct 17, 2023
bluwy
bluwy previously approved these changes Oct 17, 2023
sapphi-red
sapphi-red previously approved these changes Oct 17, 2023
@@ -661,7 +661,13 @@ function shouldExternalizeDep(resolvedId: string, rawId: string): boolean {
}

function isScannable(id: string): boolean {
return JS_TYPES_RE.test(id) || htmlTypesRE.test(id)
// From Vite 5, all optimizeDeps.extensions are scannable. We harcode .marko for 4.10.0 to avoid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The next version would be 4.5.0.
Or do we want to bump to 4.10.0 to declare it's the last version of 4.x?😆
(It reminds me of TypeScript 3.3.3333 thing)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hahaha, now I want to keep the comment so it is 4.x 😆

@patak-dev patak-dev dismissed stale reviews from sapphi-red and bluwy via 8ebc427 October 18, 2023 08:36
@patak-dev patak-dev merged commit ed7bdc5 into v4 Oct 18, 2023
15 checks passed
@patak-dev patak-dev deleted the feat/scan-marko-files branch October 18, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants