[TIMOB-18975] Windows: CommonJS module loading support
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-06-05T13:50:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2015-06-04T22:30:34.000+0000 |
Updated | 2016-04-20T14:50:53.000+0000 |
Description
require
should support CommonJS module loading described in [CommonJS Modules in Titanium ](https://wiki.appcelerator.org/display/guides2/CommonJS+Modules+in+Titanium).
https://github.com/appcelerator/titanium_mobile_windows/pull/260
Verified using: Windows 8.1 Appc CLI (NPM): 4.1.0 Appc CLI (Registry): 4.1.0 Ti SDK: 4.1.0.GA ti.cloud 3.2.9 Loading in commonjs modules such as ti.cloud works and functions in those modules can be called Closing ticket
I was trying to implement this with my own module on Windows. However, it couldn't load the module: [To.ImageCache[https://github.com/Topener/To.ImageCache]. When putting the same JS file in the lib folder it works magically. I'm guessing something is still broken, I'm voting for re-opening this ticket
[~cng] maybe we need to verify CommonJS still work on Windows with 5.4