Open mwinkels opened 11 years ago
The hbs plugin uses the 'require' function without specifying it as a dependency. As a result the global require config is used in stead of the require config of the loading context.
FIX:
define([ 'require', 'handlebars', ... ], function ( require, Handlebars, ... ) { ...
By specifying 'require' as a dependency, teh correct context is passed.
Sorry I was gone during this and just getting through email.
Can you do a pull request on this so it'll get you credit in the logs?
doing this will break nodejs building and references to .nodeRequire
The hbs plugin uses the 'require' function without specifying it as a dependency. As a result the global require config is used in stead of the require config of the loading context.
FIX:
define([ 'require', 'handlebars', ... ], function ( require, Handlebars, ... ) { ...
By specifying 'require' as a dependency, teh correct context is passed.