According to https://support.wix.com/en/article/corvid-local-site-project-structure#frontend-code it should be possible to import site.js to my page code.
In the Site Code Tab I have:
export function myFunction()
In my Page Code Tab I have:
import myFunction from ‘pages/site.js’
This doesn’t work, how can I do this import? I am aware of the risks and using code in the backend, but I do actually need to import some code from here due to needing the $w selectors.