add :postamble option to compiler

Description

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

Environment

None

Activity

Show:
David Nolen
February 12, 2016, 10:42 PM

Would like to hear more use cases for this one.

David Nolen
August 10, 2016, 8:42 PM

Not going to do this one.

Tom Connors
November 11, 2016, 10:28 PM

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:
(function(){
var oldReact = window.React;

and my postamble would contain:

window.React = oldReact;
}());

Declined

Assignee

Unassigned

Reporter

Michael Bradley

Labels

Approval

None

Patch

None

Priority

Minor