find/replace ES6 module-style dependencies