How do I share (not copy) my JS between pages?

I am working through an initial app and one thing I’m not seeing is how to easily share a JS library between pages. I do see that I can do a COPY TO PAGE and MOVE TO PAGE, but then that means as I tweak a library that is common between all pages I’ll have to manually sync up each page with the updated code.

I realize some pages have page-specific code, but I’d like to have a common code library for things like data mapping, etc.

Hello! Currently, actions are page-scoped, but we are planning to implement reusable actions: [Epic] Reusable Actions · Issue #1911 · appsmithorg/appsmith · GitHub
Please add a comment with your use case to this GitHub issue to help us prioritize it.