deamdify icon indicating copy to clipboard operation
deamdify copied to clipboard

Skip over dynamic require calls

Open tbranyen opened this issue 9 years ago • 1 comments

If using a dynamic require such as:

var template = require(loc);

Deamdify converts to:

var template = module.exports = loc;

Which is definitely not correct.

tbranyen avatar Apr 30 '15 16:04 tbranyen

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?

phillipgreenii avatar May 28 '15 11:05 phillipgreenii