Cross platform CoffeeScript and RequireJS
Clearing the Coffeescript hurdles leads to developer insight
Dom DiCicco | October 19, 2015
Eventually, I was able to find something in common with all of the files. They were all modules I was using cross platform, browser and node.js. The amdefine github page says to put the following at the top of your cross platform module.
When I was working that code into my project, I converted it to coffeescript as such:
The only reason this potential cause is even listed on the error page is because this is common practice to avoid jslint/jshint errors for using globals that are naively reported as error.
- “Why is CoffeeScript declaring all my variables ‘up top’?”
Looking for more engineering tips?
Our engineers have a whole lot to say about custom software. They’re in the trenches every day, building, breaking, re-building, and sharing their hard-won wisdom along the way. Find their latest and greatest discoveries on Slalom’s new software engineering blog.