alexkli opened a new issue #9: [bug] [nodejs] mount-require is only reloading 
the main source file, not any other required files
URL: https://github.com/apache/openwhisk-wskdebug/issues/9
 
 
   _Moved from https://github.com/adobe/wskdebug/issues/45_
   
   With an action project structure like this:
   ```
   package.json
   core.js
   lib/
     helper.js
   ```
   
   where core.js does `require('./lib/helper.js')` and a `wskdebug` invocation 
such as
   
   ```
   wskdebug core core.js -l
   ```
   
   it will see all file changes, but it won't actually reload anything other 
than the main file (`core.js`). This is because here
   
   
https://github.com/adobe/wskdebug/blob/master/src/kinds/nodejs/mount-require.js#L37
   
   we are only clearing the require cache for the main file. It should also 
delete any subpaths or _all_ deps (maybe someone did an `npm install` in 
between and `node_modules` should also be reloaded).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to