mirror of
https://github.com/hanzo-apps/tabs.git
synced 2026-09-15 19:32:29 +00:00
`next build --webpack` stopped at react-native-svg asking for @react-native/assets-registry/registry; the web registry lives in react-native-web, so the alias points there and the gui packages are transpiled. The server renders @hanzo/ui through its node entry, which imports no CSS, so the export shipped without the sheet and the page drew as bare HTML. The root layout imports @hanzo/ui/styles.css, and the Zen faces from @hanzo/design, so tokens, themes and component rules reach every page. The typecheck runs before a build creates next-env.d.ts, so *.css imports are declared for TypeScript 7. tsconfig carries the two values Next writes on every build. The install stops on no prompt: both jest build scripts are answered. Co-authored-by: Hanzo Dev <[email protected]>
5 lines
260 B
TypeScript
5 lines
260 B
TypeScript
// A stylesheet import is resolved by the bundler, never by TypeScript. TS 7
|
|
// reports one it cannot resolve as TS2882, and next-env.d.ts, which declares
|
|
// them, exists only after a build, so the typecheck that runs first needs this.
|
|
declare module '*.css';
|