Project: titanium
Issue TIMOB-23381: Parity: Titanium CommonJS modules require'd differently than NodeJS require spec
We have a long-standing issue with how Titanium CommonJS modules are require'd. One would assume they'd follow typical NodeJS conventions with requires, so when you do: {code:javascript} require('module.id'); {code} I would expect that it should attempt to load up {{modules/commonjs/module.id/}} as a directory as per TIMOB-23382 Instead, our Android and iOS implementation looks for {{modules/commonjs/module.id//module.id.js}}, and ignore any package.json, index.js, or index.json in that directory.
Story points: 8