Fixed browser and old require() API compatibility