Skip to content

Conversation

@mattmess1221
Copy link

For example, fonts installed into node_modules and resolved via import.meta.resolve

This is a required change to support #542

For example, fonts installed into node_modules and resolved via `import.meta.resolve`
@netlify
Copy link

netlify bot commented Aug 19, 2025

Deploy Preview for fontless ready!

Name Link
🔨 Latest commit 9999ce7
🔍 Latest deploy log https://app.netlify.com/projects/fontless/deploys/68a4bd8065d2ca00084222dd
😎 Deploy Preview https://deploy-preview-605--fontless.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 project configuration.

@codecov
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

❌ Patch coverage is 18.18182% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.15%. Comparing base (471466a) to head (9999ce7).

Files with missing lines Patch % Lines
packages/fontless/src/vite.ts 14.28% 6 Missing ⚠️
packages/fontless/src/assets.ts 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #605      +/-   ##
==========================================
- Coverage   54.68%   54.15%   -0.54%     
==========================================
  Files          11       11              
  Lines         640      650      +10     
  Branches       81       81              
==========================================
+ Hits          350      352       +2     
- Misses        290      298       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

dev: boolean
renderedFontURLs: Map<string, string>
assetsBaseURL: string
devFilesystemURL?: string
Copy link
Member

Choose a reason for hiding this comment

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

why do we need to pass this? can't we just directly convert file:/// url into a path?

Copy link
Author

Choose a reason for hiding this comment

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

From my testing, I couldn't get vite to convert url(file:///...) into url(/@fs/...) in css files. Plus I had to account for a custom base like /_nuxt/@fs/....

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