forked from vitejs/vite
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix vitejs#3254 vitejs#4005 vitejs#4014 correct vitejs#3254 vitejs#3003 vitejs#3053
- Loading branch information
Showing
10 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
packages/playground/nested-deps/__tests__/nested-deps.spec.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,6 +1,8 @@ | ||
// TODO: Rework #3753, taking into account issues with #4005, #4012, #4014 | ||
test.skip('handle nested package', async () => { | ||
test('handle nested package', async () => { | ||
expect(await page.textContent('.a')).toBe('A@2.0.0') | ||
expect(await page.textContent('.b')).toBe('B@1.0.0') | ||
expect(await page.textContent('.nested-a')).toBe('A@1.0.0') | ||
const c = await page.textContent('.c') | ||
expect(c).toBe('es-C@1.0.0') | ||
expect(await page.textContent('.side-c')).toBe(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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default 'es-C@1.0.0' |
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,2 @@ | ||
// this module should not be resolved | ||
export default 'C@1.0.0' |
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,6 @@ | ||
{ | ||
"name": "test-package-c", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"module": "index-es.js" | ||
} |
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 @@ | ||
export { default as C } from 'test-package-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
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