Skip to content

Commit

Permalink
fix: revert resolve nested dependencies #3753 (#4019)
Browse files Browse the repository at this point in the history
Fixes #4005
  • Loading branch information
patak-dev committed Jun 29, 2021
1 parent c08069c commit b6f4293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -1,4 +1,5 @@
test('handle nested package', async () => {
// TODO: Rework #3753, taking into account issues with #4005, #4012, #4014
test.skip('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')
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/optimizer/esbuildDepPlugin.ts
Expand Up @@ -94,7 +94,7 @@ export function esbuildDepPlugin(
namespace: 'dep'
}
: {
path: require.resolve(id, {
path: require.resolve(qualified[flatId], {
paths: [resolveDir]
})
}
Expand Down

0 comments on commit b6f4293

Please sign in to comment.