Hello! This isn't really an issue. Just a question...
I've got a monorepo with a ui package that exports hooks, utils, and components.
We export this by doing a barrel file for all hooks, all utils, and components... then we do one package-level barrel-file that exports all the contents of the 3 other barrel files. That top-level barrel file is marked as main and types in the ui package's package.json. Then, I symlink the package as via installing it in other monorepo applications like:
"@scoped/ui": "workspace:*"
Am I potentially hurting fast refresh for the applications with this setup?
Hello! This isn't really an issue. Just a question...
I've got a monorepo with a
ui
package that exports hooks, utils, and components.We export this by doing a barrel file for all hooks, all utils, and components... then we do one package-level barrel-file that exports all the contents of the 3 other barrel files. That top-level barrel file is marked as
main
andtypes
in theui
package'spackage.json
. Then, I symlink the package as via installing it in other monorepo applications like:"@scoped/ui": "workspace:*"
Am I potentially hurting fast refresh for the applications with this setup?