Remix Vite and cdn resources

Hi there, I have a Remix project using the new Vite build tools, all working as expected locally. I am using the vite external and output paths functions to use SyncFusion controls from their CDN network. However when i publish the site to CF Pages, I am getting a build error that it can't find the module... Error: Failed to publish your Function. Got error: Uncaught Error: No such module "https:/cdn.syncfusion.com/ej2/21.1.35/ej2-react-base/dist/ej2-react-base.min.js". Is there a setting somewhere that will allow this type of setup. The reason I had to do this was because of the 1Mb limit with functions.
1 Reply
JasonColeyNZ
JasonColeyNZOP10mo ago
OK so, I found this is a node limitation, you can't load resources from a CDN, if has to use file:// or data://, so then how does anyone use vendor cdn libraries, or is this only for development?
Want results from more Discord servers?
Add your server