Integrating a Gutenberg custom block within a larger plugin

I am building a plugin that does many things, one of them being adding a Gutenberg custom block. I am wondering how to structure this. Can I use @wordpress/scripts to bundle the JavaScript or TypeScript that is NOT part of the custom Gutenberg block? And if yes, can you explain how? Or should I just separate this into two plugins? (I'd rather not)

Topic scripts plugin-development Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.