Can I reference the package address before publishing?

Question from Discord:

hey
does a package know its own address
is there a way to refer to it inside the module
this.contract_address or something

Hi, no it only becomes known after you’ve published the package and there is no way to reference it prior to publishing.