There is a circular dependency in semver which rollup will warn about when bundling the module:
classes\comparator.js -> classes\range.js -> classes\comparator.js
Even thought this may work because of Node's resolution mechanism, I'd recommended to refactor.