Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18975] Windows: CommonJS module loading support

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-06-05T13:50:51.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-06-04T22:30:34.000+0000
Updated2016-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).

Comments

  1. Kota Iguchi 2015-06-05

    https://github.com/appcelerator/titanium_mobile_windows/pull/260
  2. Ewan Harris 2015-07-10

    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
  3. Rene Pot 2016-04-20

    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
  4. Fokke Zandbergen 2016-04-20

    [~cng] maybe we need to verify CommonJS still work on Windows with 5.4

JSON Source