-
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: improve cjs interop and fix some tests
- Loading branch information
1 parent
25fea17
commit a5b74f3
Showing
23 changed files
with
108 additions
and
151 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 | ||
--- | ||
|
||
Improve\* cjs interop |
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
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
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
32 changes: 0 additions & 32 deletions
32
..._tests__/fixtures/isomorphic-bundle-splitting/__snapshots__/build.expected.loading.3.html
This file was deleted.
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
21 changes: 21 additions & 0 deletions
21
...__tests__/fixtures/isomorphic-bundle-splitting/__snapshots__/build.expected.step-0.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,21 @@ | ||
<script | ||
async="" | ||
crossorigin="" | ||
src="/assets/class-[hash].marko-[hash].js" | ||
type="module" | ||
/> | ||
<link | ||
crossorigin="" | ||
href="/assets/modulepreload-[hash].js" | ||
rel="modulepreload" | ||
/> | ||
<div | ||
class="clickable" | ||
> | ||
Mounted: true Clicks: 1 | ||
</div> | ||
<div | ||
class="clickable" | ||
> | ||
Mounted: true Clicks: 1 | ||
</div> |
33 changes: 0 additions & 33 deletions
33
...__tests__/fixtures/isomorphic-bundle-splitting/__snapshots__/dev.expected.loading.10.html
This file was deleted.
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
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
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
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
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
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
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
33 changes: 0 additions & 33 deletions
33
src/__tests__/fixtures/isomorphic-bundle-splitting/__snapshots__/dev.expected.loading.9.html
This file was deleted.
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
20 changes: 20 additions & 0 deletions
20
src/__tests__/fixtures/isomorphic-bundle-splitting/__snapshots__/dev.expected.step-0.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,20 @@ | ||
<div | ||
class="clickable" | ||
> | ||
Mounted: true Clicks: 1 | ||
</div> | ||
<script | ||
async="" | ||
src="/src/template.marko?marko-browser-entry" | ||
type="module" | ||
/> | ||
<script | ||
async="" | ||
src="/src/components/class-[hash].marko?marko-browser-entry" | ||
type="module" | ||
/> | ||
<div | ||
class="clickable" | ||
> | ||
Mounted: true Clicks: 1 | ||
</div> |
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
4 changes: 3 additions & 1 deletion
4
src/__tests__/fixtures/isomorphic-bundle-splitting/test.config.ts
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export const ssr = true; | ||
export async function steps() { | ||
await page.click("#clickable"); | ||
for (const el of await page.$$(".clickable")) { | ||
await el.click(); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
src/__tests__/fixtures/isomorphic-modulepreload/__snapshots__/build.expected.loading.1.html
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/__tests__/fixtures/isomorphic-modulepreload/__snapshots__/build.expected.step-0.0.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.