-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: remove '~' prefix to support css-loader style import * fix: ignore vite processed files in src attr transform * fix: set config.base from BASE_URL env var * chore: add changeset * fix: inconsistent test * fix: test snapshot hash replacement * chore: update readme
- Loading branch information
Showing
52 changed files
with
895 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@marko/vite": patch | ||
--- | ||
|
||
Support css-loader imports, limit relative src attribute transforms, support BASE_URL env var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/__tests__/fixtures/isomorphic-base-url/__snapshots__/build.expected.loading.0.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div | ||
id="implicit" | ||
> | ||
<div | ||
id="clickable" | ||
> | ||
Mounted: false Clicks: 0 | ||
<img | ||
alt="logo" | ||
src="/some/base/path/assets/logo-[hash].svg" | ||
/> | ||
</div> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
src/__tests__/fixtures/isomorphic-base-url/__snapshots__/build.expected.loading.1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div | ||
id="implicit" | ||
> | ||
<div | ||
id="clickable" | ||
> | ||
Mounted: true Clicks: 0 | ||
<img | ||
alt="logo" | ||
src="/some/base/path/assets/logo-[hash].svg" | ||
/> | ||
</div> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
src/__tests__/fixtures/isomorphic-base-url/__snapshots__/build.expected.step-0.0.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div | ||
id="implicit" | ||
> | ||
<div | ||
id="clickable" | ||
> | ||
Mounted: true Clicks: 1 | ||
<img | ||
alt="logo" | ||
src="/some/base/path/assets/logo-[hash].svg" | ||
/> | ||
</div> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
src/__tests__/fixtures/isomorphic-base-url/__snapshots__/dev.expected.loading.0.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div | ||
id="implicit" | ||
> | ||
<div | ||
id="clickable" | ||
> | ||
Mounted: false Clicks: 0 | ||
<img | ||
alt="logo" | ||
src="/some/base/path/src/components/logo.svg" | ||
/> | ||
</div> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
src/__tests__/fixtures/isomorphic-base-url/__snapshots__/dev.expected.loading.1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div | ||
id="implicit" | ||
> | ||
<div | ||
id="clickable" | ||
> | ||
Mounted: true Clicks: 0 | ||
<img | ||
alt="logo" | ||
src="/some/base/path/src/components/logo.svg" | ||
/> | ||
</div> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
src/__tests__/fixtures/isomorphic-base-url/__snapshots__/dev.expected.step-0.0.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div | ||
id="implicit" | ||
> | ||
<div | ||
id="clickable" | ||
> | ||
Mounted: true Clicks: 1 | ||
<img | ||
alt="logo" | ||
src="/some/base/path/src/components/logo.svg" | ||
/> | ||
</div> | ||
</div> |
Oops, something went wrong.