If you have two script libraries that both include the same constants file:
and then you use both libraries in a design element
this generates the error "Duplicate PUBLIC name" at compile time. But these are not two different declarations with the same name, they are literally the same declarations.
It should be possible for multiple script libraries to include the same constants files - this would make it much easier to build resuable independent script libraries.