feat: add support for #super imports in vite-layers

This commit is contained in:
2026-08-13 02:29:44 +07:00
parent 7d98bb00fd
commit 660989085c
14 changed files with 778 additions and 144 deletions
+3 -4
View File
@@ -1,4 +1,3 @@
// Aurora has no bootstrap logic of its own — it reuses the base layer's entry.
// `@/main.ts` resolves to *this* file first, but the layered resolver's self-skip
// (super() semantics) falls through to the next layer, i.e. main/src/main.ts.
import '@/main.ts'
// Aurora has no bootstrap logic of its own — `#super` re-resolves this file's own path
// (main.ts) from the next-lower layer, i.e. main/src/main.ts.
import '#super'
+3 -4
View File
@@ -1,4 +1,3 @@
// Brand has no bootstrap logic of its own — it reuses the base layer's entry.
// `@/main.ts` resolves to *this* file first, but the layered resolver's self-skip
// (super() semantics) falls through to the next layer, i.e. main/src/main.ts.
import '@/main.ts'
// Brand has no bootstrap logic of its own — `#super` re-resolves this file's own path
// (main.ts) from the next-lower layer, i.e. main/src/main.ts.
import '#super'