forked from vitejs/vite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: deadlock in ssrLoadModule with circular dependencies (fix vitejs…
…#2491, fix vitejs#2258)
- Loading branch information
1 parent
ce1feff
commit daef373
Showing
5 changed files
with
72 additions
and
10 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,9 @@ | ||
import { multiply } from './multiply' | ||
|
||
export function add(a, b) { | ||
return a + b | ||
} | ||
|
||
export function addAndMultiply(a, b, c) { | ||
return multiply(add(a, b), c) | ||
} |
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,9 @@ | ||
import { add } from './add' | ||
|
||
export function multiply(a, b) { | ||
return a * b | ||
} | ||
|
||
export function multiplyAndAdd(a, b, c) { | ||
return add(multiply(a, b), c) | ||
} |
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,3 +1,12 @@ | ||
import { addAndMultiply } from '../add' | ||
import { multiplyAndAdd } from '../multiply' | ||
|
||
export default function About() { | ||
return <h1>About</h1> | ||
return ( | ||
<> | ||
<h1>About</h1> | ||
<div>{addAndMultiply(1, 2, 3)}</div> | ||
<div>{multiplyAndAdd(1, 2, 3)}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
import { addAndMultiply } from '../add' | ||
import { multiplyAndAdd } from '../multiply' | ||
|
||
export default function Home() { | ||
return <h1>Home</h1> | ||
return ( | ||
<> | ||
<h1>Home</h1> | ||
<div>{addAndMultiply(1, 2, 3)}</div> | ||
<div>{multiplyAndAdd(1, 2, 3)}</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