Closed stevus closed 8 years ago
Hey @stevus, it looks like you are using browserify to build a JavaScript bundle to be loaded on the server (not the browser). That's not the normal use case and it breaks "dynamic" requires. However, let me see if I can put in a workaround for you.
@patrick-steele-idem awesome, thanks. Browserify supports building server-side modules, it just requires some clever configuration, which is actually not fully adopted by browserify but seems to work for most applications.
My motivation here is to bundle all of my server side code to one file to make deploys easier, and save space on hosting instances.
Fixed. See: https://github.com/raptorjs/raptor-logging/issues/4
New version of raptor-logging
published: raptor-logging@1.0.8
Please let me know if that works for you. Seems reasonable what you are trying to do, but you might run into edges like this again.
Fixed, but spawned this issue:
Offending code snippet:
Here is my build script:
Dependencies in
package.json
: