Closed frankebersoll closed 8 years ago
This looks good to me! @niemyjski?
I had used exceptionless.node because using require('exceptionless') was loading the browser version which uses a umd format. And thus you don't get any of the node code to load. If you can verify that this does in deed work now lets make this change.
The documentation assumes that you have downloaded and installed Exceptionless using npm. When you do this, it will install Exceptionless in the node_modules/exceptionless
folder, as the node package is named exceptionless
. That's how require
will find it. The browser version will only be loaded during Excepionless client development, when your root happens to be our git root. Then, you should use require("./dist/exceptionless.node")
, but developers will figure this out i hope.
Might want to put that under the developer wiki or read. I guess it goes off of the packages.config for the main script?
Just doing this. Yes, it does! Nice writeup how it works: https://nodejs.org/api/modules.html#modules_all_together
I also changed --save-dev
to --save
, because Exceptionless is not a development dependency but will usually need to ship with the software.
:+1:
Fixes
require('exceptionless.node')
torequire('exceptionless')
.Enhancements