solid-router
solid-router copied to clipboard
Setup development build
This PR adds a development build so we can include development only code which will be conditional on the "SOLID_DEV" literal. This code will be removed by rollup in the same way as Solid proper and exported on the "development" condition.
This PR also adds a utility warnOnce
which logs to console one time per message.
One thought is this dev build will only work when people aren't doing SSR. Or rather not using vite because "solid" will resolve first. I think we might need to nest if we want this to work in Vite.. however, that will require doing the replace in an .jsx
export so can't build it the same way.