we can update this to `require.entries` this is more aligned with the es6 loader, although still far from totally compatibility.