SolidJSS
SolidJS3y ago
3 replies
Đăng Tú

How to import solidjs core as external library

I would like to delivery my code to browsers as 2 parts. The first part is solidjs core and the second is mine. So is there anyway to tell vite that treat any import * from 'solid-js' as import * from '/solid-js.js' in the browser?

I saw an option moduleName in solid plugin for vite but not sure if it is the one I'm looking for as the build output didn't left solidjs/web out of the bundle.
image.png
Was this page helpful?