The work carried out in #13 didn't solve all the issues with migrating Common JS. @nick-f tested and found that require statements in app.js weren't being rewritten to include a relative path (to lib). With this change require("module.js") in app.js, will become require("./lib/module.js") in legacy_app.js when migrated.
Tasks
[x] Write tests (May as well add tests for this step now) 5f8eda4
✌️ 🐛 🐛
/cc @zendesk/vegemite
Description
The work carried out in #13 didn't solve all the issues with migrating Common JS. @nick-f tested and found that
require
statements in app.js weren't being rewritten to include a relative path (to lib). With this changerequire("module.js")
inapp.js
, will becomerequire("./lib/module.js")
inlegacy_app.js
when migrated.Tasks
References
Risks