Closed andymans closed 1 year ago
So one possible solution is to create a vite.config.js like so
export default { build:{ rollupOptions: { external: [/socket:.*/] } } }
This will stop vite / rollup from erroring out with a 'module not found' and will allow the vite part of the build to execute . From there, the ssc build can kick in and build the runnable application.
the vite example works great until you try to put anything "socket"-related into the window i.e. trying to import @socketsupply/socket , socket:application or similar. That's a pity.