sstephenson/sprockets — Issue #235: Duplicate coffeescript helpers in output
Author: christospappas
Created: 2011-10-28 05:28:25+00:00
State: open

I have a bunch of Coffeescript classes that extend a parent class. Coffee adds an __extends helper method in the compiled output to make this happen. The problem is when using Sprockets a copy of the method is added for every subclass, creating a lot of duplication.

Seems like each file is being compiled individually. Coffeescript has a --join option which concatenates files before compiling. Is it possible for sprockets to use this at all?