Loading js libraries via register_asset

Something seems off here - I looked at our lazyYT plugin that includes an asset using register_asset and it was not in an eval block.

Could you provide a small example plugin that reproduces the problem?