solid-router icon indicating copy to clipboard operation
solid-router copied to clipboard

Setup development build

Open rturnq opened this issue 3 years ago • 1 comments

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.

rturnq avatar Dec 01 '21 04:12 rturnq

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.

ryansolid avatar Dec 01 '21 04:12 ryansolid