Open menkveldj opened 7 years ago
Hi, @menkveldj! Thanks for question.
Sorry about the double post - not sure where you want it.
It's okay. For future, better to open issues in brunch/brunch repo.
I'm trying to reproduce your problem. Could you wrap everything up in single repo? That would make my work easier. Thanks.
@denysdovhan I will for sure post there next time.
I have created a repo and given you permissions to it: https://github.com/menklab/brunch-ignore-issue
The react app won't actually load but that's not necessary. To replicate:
cd src
npm install
npm start
themes_vendor.js builds to ../ search for: register("react-dom") I would expect not to see react-dom or anything that is pulls in as dependencies.
Thanks.
Nice! Thanks for the repo.
Hi, Sorry about the double post - not sure where you want it. I have also posted this question on stack-o so feel free to remove this one if needed: http://stackoverflow.com/questions/43438375/brunch-io-conventions-ignored-does-not-respect-node-modules
I'm building out an app that has multiple entry points. It's a plugin/sideloading react architecture.
I have a base react app compiling into app.js and vendor.js just fine. The issue originates with the secondary project, the theme, being bundled with some of the same dependencies. Most notably react and react-dom. I would like to be able to use conventions.ignored to instruct brunch to ignore specific node_modules and their dependencies. Regardless of regex I put in conventions.ignored I still get react and react-dom in the theme_vendor.js bundle. See config below:
The only way I have been able to achieve anything close is to use a negation in the joinTo. See Below:
Thanks in advanced for your help. Other info: