maccman / sprockets-commonjs

Adds CommonJS support to Sprockets
178 stars 66 forks source link

Support wrapping modules with a line comment as the last line. #41

Closed eventualbuddha closed 6 years ago

eventualbuddha commented 8 years ago

Using a newline instead of a semicolon to terminate the last statement of a module means that any line comment on the last line will no longer encompass the }}); appended to the module, which would previously result in a syntax error.