Closed garthk closed 8 years ago
Thanks for the report! The way to fix is to simply skip these shims as no alias is needed for these, because brunch will shim them to {}
anyway.
I submitted https://github.com/brunch/deppack/pull/11 to address this.
If shimming
child_process
,dns
,fs
,net
etc:shimAliases
passesundefined
togenerateFileBasedModuleName
getModuleFullRootName
path.split
despitepath
beingundefined
The root cause is shimming the un-shimmable. Troubleshooting would be easier if
shimAliases
' reducer did something like:I can submit a PR for that if someone can confirm my theory about what's going on, here. I haven't yet given Brunch explicit instructions on how to behave. It strikes me it's inhaling my server-side modules as if they're client side.