forked from systemjs/systemjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix code in cjs.js to correctly match last index of comments. - Add test module that includes the require('') at end of comment string - Add unit test to prove the module can be loaded OK with the comment present
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"format cjs"; | ||
|
||
System.register("lib/module-with-comment", [], function($__export) { | ||
"use strict"; | ||
var __moduleName = "lib/module-with-comment"; | ||
var shared; | ||
return { | ||
// This comment triggered SystemJS to do a require because of this -> require('') | ||
setters: [function(m) { | ||
shared = m.default; | ||
}], | ||
execute: function() { | ||
} | ||
}; | ||
}); |