deamdify
deamdify copied to clipboard
Skip over dynamic require calls
If using a dynamic require such as:
var template = require(loc);
Deamdify converts to:
var template = module.exports = loc;
Which is definitely not correct.
Is this the full code example? That looks more like CommonJS than AMD. Or are you saying deamdify messing up CommonJS code? Can you provide a failing (but skipped) unit test?