Wait there is a export function for scratch or how does this work ?
With Turbowarp Packager
go to packager.turbowarp.org and upload your project or project id. Then select html. Done!