In order to smooth the porting of various projects from underscore/lodash to slapdash, I propose:
Add assertions for parameter types into every method. These assertions could potentially be:
Thrown as errors, or
Console warnings?
In the normal production build, strip out all of the assertions and any associated code.
Create a second build, with all of the assertions included.
Then, in a webpack-based project, for example, when running a dev build, we could use the resolve.alias config item to remap from production slapdash to the version with the assertions.
In order to smooth the porting of various projects from underscore/lodash to slapdash, I propose:
Then, in a webpack-based project, for example, when running a dev build, we could use the
resolve.alias
config item to remap from production slapdash to the version with the assertions.Thoughts?