Project: titanium
Issue TIMOB-19545: Unable to use CommonJS modules on real device with SDK 5.0.0.GA
h6.Reproduce 1. Create a new default mobile project. 2. Download a sample CommonJS module superagent from [http://gitt.io/component/superagent] 3. Include the module into project 4. Add following test code into app.js {code} var request = require('superagent'); request.get('http://www.baidu.com') .end(function (res) { console.log('Textual version of APIs:'); console.log(res.text); }); {code} 5. Run the app with SDK 4.1.0.GA and 5.0.0.GA on both simulator and real device h6.Actual Result For SDK 4.1.0, both simulator and device all work well. For SDK 5.0.0, Only simulator works well, on device, you will get a error like following {code}[ERROR] Script Error Couldn't find module: superagent for architecture: arm64{code}
Story points: 3