package.json exports vs exporting everything in index.js (stackoverflow.com)stack
11 points by BryceLarkin in stackoverflow.com · 21mo ago · stack comments
In a monorepo setup, is there a difference between exporting everything through a package.json exports field vs exporting everything in the root index.ts file? // package.json { "exports": { "./theme": "./src/theme.ts" }, } vs. // src/index.ts export { theme } from './theme.js