r/Clojurescript • u/aardvarkFirst • Jan 26 '19
Clojure to ES5 Module
I have a Clojure project I’ve inherited and modified. While the output works fine in a stand alone single test page, I want to make the output more portable and would like to wrap it in a module that can be imported by my different front end projects. I’ve been searching quite a bit and haven’t found much, and need suggestions and to even check if it’s doable with a plugin. Thanks in advance!
3
Upvotes
View all comments
Show parent comment
1
u/aardvarkFirst Feb 12 '19
I believe I was getting confused at the point of how I integrated my script into an angular project initially. Being that there were plenty of dependencies on React using Reactify, I was having trouble using this in my npm modules system for Angular with many different npm dependencies. So instead, angular allows for different global assets to be imported through a certain configuration values as it's added on the window. Probably not an optimal solution, but it'll do for now.