Open sarike opened 9 years ago
+1
After doing a little research, line 35 of trace.coffee seems to be the culprit. It removes the text!
portion of the module name, but doesn't do the same to the references to the module. Removing this line seems to solve the problem.
As a note, I did a small test using r.js and a simple use case - r.js does not remove text!
from any of the module names.
However, the tests in this repo fail once that chance is made, so someone felt this was an important distinction. Would love to get some insight into what the purpose of this was before making a PR.
Hi, Thanks for the cool plugin first. I met a problem when I use amd-optimize. My code is as follows:
After building code is as follows:
But the code after building can not be executed correctly.
If this line:
can be converted to:
Then code will be executed correctly!
This is a bug? Or did I do something wrong?