Skip to content

Instantly share code, notes, and snippets.

@joakin
Created April 24, 2014 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joakin/11250401 to your computer and use it in GitHub Desktop.
Save joakin/11250401 to your computer and use it in GitHub Desktop.
Clojurescript dummy externs

First, add an :externs key to the :compiler map in project.clj:

                ;...
                :compiler {;...
                           :externs ["externs.js"]
                           ;...
                           }

externs.js is the name of the file that we use to declare our protected symbols. You could use whatever name you wanted to.

Next, create the externs.js file:

% cat > externs.js <<-EOF
var process = {};
process.argv = [];
EOF

From http://blog.lauripesonen.com/why-isnt-my-nodecljs-app-working-in-advanced-mode/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment