Changes between Initial Version and Version 1 of Ticket #16414, comment 16


Ignore:
Timestamp:
Mar 27, 2013, 2:08:50 PM (8 years ago)
Author:
ben hockey
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16414, comment 16

    initial v1  
    1 it works because your structure happens to accidentally work - `baseUrl + ./node_modules/express/` turns out to be where express lives.  move index down a few segments (eg `app/foo/bar/index.js`) and then try loading `dojo/node!../../node_modules/express/` - `baseUrl + ../../node_modules/express/` is NOT where express lives.
     1it works because your structure happens to accidentally work - `baseUrl + './node_modules/express/'` turns out to be where express lives.  move index down a few segments (eg `app/foo/bar/index.js`) and then try loading `dojo/node!../../node_modules/express/` - `baseUrl + '../../node_modules/express/'` is NOT where express lives.