You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunatelly the /process directory is fabulously absent from the unit tests :-( That where reading filenames and instantiating BundleFiles takes place.
In short we need to replace dependencies like 'some/path/directory' to 'some/path/directory/index' (when index.js is present), so it works on AMD/UMD properly.
I'll have a look on how to hack this quickly, so I can perhaps implement it or guide you to have a bash at it.
Hey @willprice check it out - appending /index in the dependency should work on both commonjs and AMD/UMD in version 0.6.19. Let me know if it worked OK for your project.
*Note that the 2nd part (automatic generation of index.js) is not dealt with - you need to have index.js or index.coffee etc in place *
CommonJs/nodejs has
require('./someDirName')
which simply looks and requires'./someDirName/index.js'
'index.js'
, it could by default try create stub objects with all modules names as keys and the module as value, iewhere
require('./someDirName')
would return a generated objectWhat about nested subdirectories inside 'someDirName' ?
The text was updated successfully, but these errors were encountered: