Similar to CLJS-723:
1) ostamble's value will be a vector of paths
2) the compiled output is appended with the contents of the files at those paths
3) the generated source map points to the correct/adjusted line numbers
Would like to hear more use cases for this one.
Not going to do this one.
I've got a use case for this, if you're willing to reconsider. I'd like to set window.React and window.ReactDOM back to whatever they were before the script executed, like jQuery.noConflict and similar. So my preamble file would contain:
var oldReact = window.React;
and my postamble would contain:
window.React = oldReact;