diff --git a/test/index.test.ts b/test/index.test.ts index 5b07554fe..d2f771c48 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -901,3 +901,19 @@ test('generate sourcemap with --treeshake', async () => { }), ) }) + +test('should not throw when having directories as entry', async () => { + const sourceCode = 'export const h = "h"' + + expect( + run( + getTestName(), + { + 'src/input.ts': sourceCode, + }, + { + entry: ['src'], + }, + ), + ).resolves +})