Change loader to use `require` instead of `requireModule`