fix(shared): drop .js extensions from relative imports for Metro
packages/shared/src/index.ts and all sub-modules used .js extensions on relative imports (e.g. './admin/index.js') pointing at .ts source files. TypeScript with moduleResolution: "Bundler" doesn't need them, and Metro's eager exporter (used for preview / production builds) reads them literally and fails — only the dev-server Metro fell back to .ts. Workspace typecheck remains 8/8 green; Vite and TS Bundler resolution already accept both styles, so desktop is unaffected.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
export * as admin from './admin/index.js';
|
||||
export * as auth from './auth/index.js';
|
||||
export * as chat from './chat/index.js';
|
||||
export * as crypto from './crypto/index.js';
|
||||
export * as friends from './friends/index.js';
|
||||
export * as i18n from './i18n/index.js';
|
||||
export * as rtc from './rtc/index.js';
|
||||
export * as supabase from './supabase/index.js';
|
||||
export * as admin from './admin/index';
|
||||
export * as auth from './auth/index';
|
||||
export * as chat from './chat/index';
|
||||
export * as crypto from './crypto/index';
|
||||
export * as friends from './friends/index';
|
||||
export * as i18n from './i18n/index';
|
||||
export * as rtc from './rtc/index';
|
||||
export * as supabase from './supabase/index';
|
||||
|
||||
Reference in New Issue
Block a user