Client-side require() implementation for components (used by builder.js)