a63ae8e44b
When loading middleware configured in "middleware.json", loopback-boot used to require() the full path to middleware's module main file, for example "node_modules/strong-express-metrics/index.js". This is breaking strong-agent probes, as it's difficult to detect when the intercepted module (e.g. "strong-express-metrics") was loaded. This commit modifies the compiler to omit the tail (the path to the module main source file) when requiring middleware. |
||
---|---|---|
.. | ||
fixtures | ||
helpers | ||
browser.multiapp.test.js | ||
browser.test.js | ||
compiler.test.js | ||
executor.test.js |