diff --git a/packages/playground/optimize-deps/__tests__/optimize-deps.spec.ts b/packages/playground/optimize-deps/__tests__/optimize-deps.spec.ts index 706998c288fa50..f3ae6e8147b0f4 100644 --- a/packages/playground/optimize-deps/__tests__/optimize-deps.spec.ts +++ b/packages/playground/optimize-deps/__tests__/optimize-deps.spec.ts @@ -87,3 +87,7 @@ test('import from hidden dir', async () => { test('import optimize-excluded package that imports optimized-included package', async () => { expect(await page.textContent('.nested-include')).toBe('nested-include') }) + +test('import aliased package with colon', async () => { + expect(await page.textContent('.url')).toBe('vitejs.dev') +}) diff --git a/packages/playground/optimize-deps/index.html b/packages/playground/optimize-deps/index.html index dfb274656f1baf..8451d968d2745b 100644 --- a/packages/playground/optimize-deps/index.html +++ b/packages/playground/optimize-deps/index.html @@ -53,6 +53,9 @@

Dep from hidden dir

Nested include

Module path:
+

Alias with colon

+
URL:
+