Hi Miguel,
The solution seems to be to place the code within a public.js file and then export the class,
export class Block…
this works when importing the class to the page code as:
import * as Block from ‘public.Block.js’;
when console logging “Block.Block”
console.log(Block.Block)
It console logs the code for Block however I am now having to find a work around for how the details can be passed between page code and the public.js file to create the new Block.
I hope this makes sense.
Si