Ideally even a native module, handling dynamic font loading and possible other stuff to be more stable and also hide the implementation from users. Maybe we can also handle require() more efficient.
var VM = require('ti.vm`);
var vm = new VM({
codebase: Ti.Filesystem.applicationDataDirectory + 'some/path'
});
vm.require('app');
For LiveView:
vm.setResourceHandler(function(id, callback) {
// fetch from fileserver
callback(null, codeOrPath);
});
Ideally even a native module, handling dynamic font loading and possible other stuff to be more stable and also hide the implementation from users. Maybe we can also handle
require()
more efficient.For LiveView: