How to exclude packages in a monorepo? #3205
Unanswered
karolis-sh
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For an electron app in a monorepo structure, some packages might be in CJS format. With
snowpack@3.3.5
I updated my setup (https://github.com/karolis-sh/issue-snowpack-externals/blob/feat/snowpack-update/packages/snowpack-app/snowpack.config.js) with:but snowpack tries to analyze that package:
https://github.com/karolis-sh/issue-snowpack-externals/blob/feat/snowpack-update/packages/my-node-package/index.js:
How do I prevent that? I want snowpack to treat any package outside the main app from monorepo as from node_modules.
Thanks.
Repository: https://github.com/karolis-sh/issue-snowpack-externals/tree/feat/snowpack-update
Beta Was this translation helpful? Give feedback.
All reactions