Using Encore filesystem instead
Using getRequire method to make it more testable