When creating JavaScript objects with reify , how can I tag methods with ^:export so that the Google Closure compiler doesn't rename them in advanced mode?
For instance:
(reify Object (foo [this] ...) (bar [this] ...))
I tried
(reify Object (^:export foo [this] ...) (^:export bar [this] ...))
but this doesnβt seem to help, and the names are still changing with improved optimizations.
If this is not the case, how can I build a JavaScript object using methods other than creating a simple js-obj and using set! to set functions in properties (where I'm not sure how to prevent advanced optimizations from breaking things)?
source share