marko-js / vite

A Marko plugin for Vite
MIT License
55 stars 8 forks source link

feat: relative assets transform #109

Closed DylanPiercey closed 10 months ago

DylanPiercey commented 10 months ago

Description

Brings over the (adapted) native tag relative asset import transform from @marko/run. This allows you to have code like <img src="./relative-path.png"> be processed with vite.

changeset-bot[bot] commented 10 months ago

🦋 Changeset detected

Latest commit: a1f658a295e7d74475766ec48a01bfcab291a08f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------- | ----- | | @marko/vite | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 10 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (430a291) 74.40% compared to head (a1f658a) 75.18%.

Files Patch % Lines
src/relative-assets-transform.ts 85.00% 1 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #109 +/- ## ========================================== + Coverage 74.40% 75.18% +0.78% ========================================== Files 10 11 +1 Lines 250 270 +20 Branches 49 55 +6 ========================================== + Hits 186 203 +17 - Misses 45 46 +1 - Partials 19 21 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.