File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// CSS side-effect imports — own them at the federation root so consumers
22// don't need to import workspace-dep stylesheets (which rsbuild silently
3- // drops). Each consuming remote reaches ssr-micro-shared anyway, and the
4- // host's renderHost emits `<link>` for these chunks from this manifest.
5- // @ts -expect-error CSS handled by bundler loader, not tsc.
6- import './styles/tokens.css' ;
7- // @ts -expect-error CSS handled by bundler loader, not tsc.
8- import './styles/components.css' ;
3+ // drops). The actual `import './*.css'` lives in a sibling .js shim so tsc
4+ // stays out of bundler-only concerns. Each consuming remote reaches
5+ // ssr-micro-shared anyway, and the host's renderHost emits `<link>` for
6+ // these chunks from this manifest.
7+ import './styles/index.js' ;
98
109export { renderSSRHead } from 'unhead/server' ;
1110export type { ActiveHeadEntry , Unhead , UseHeadInput } from 'unhead/types' ;
Original file line number Diff line number Diff line change 1+ // Pure JS so tsc doesn't try to resolve `.css` modules.
2+ // rspack/rsbuild/vite all handle these via their CSS loaders.
3+ import './tokens.css' ;
4+ import './components.css' ;
Original file line number Diff line number Diff line change 6161</template >
6262
6363<script setup lang="ts">
64- // @ts-expect-error CSS handled by bundler loader, not tsc.
65- import ' ssr-micro-shared/src/styles/tokens.css' ;
66- // @ts-expect-error CSS handled by bundler loader, not tsc.
67- import ' ssr-micro-shared/src/styles/components.css' ;
64+ // CSS loaded via shared package's JS shim — keeps tsc out of bundler-only paths.
65+ import ' ssr-micro-shared/src/styles/index.js' ;
6866
6967import { useRouter } from ' @esmx/router-vue' ;
7068import { useHead } from ' @unhead/vue' ;
You can’t perform that action at this time.
0 commit comments