koa middleware for transforming commonjs file into browser module format