Revert "Proof of concept: Load controller via ES6 module in Discourse"

This reverts commit 0327f469c1120d56ac61925424d1e4269b3b8c8c.
This commit is contained in:
Robin Ward
2014-05-05 13:58:47 -04:00
parent aa269c92a0
commit fd153623bb
8 changed files with 4 additions and 119 deletions

View File

@ -12,9 +12,6 @@ class DiscourseIIFE < Sprockets::Processor
return data if (path =~ /test\_helper\.js/)
return data if (path =~ /javascripts\/helpers\//)
# Ignore ES6 files
return data if (path =~ /\.es6/)
# Ignore translations
return data if (path =~ /\/translations/)
@ -26,4 +23,4 @@ class DiscourseIIFE < Sprockets::Processor
"(function () {\n\nvar $ = window.jQuery;\n// IIFE Wrapped Content Begins:\n\n#{data}\n\n// IIFE Wrapped Content Ends\n\n })(this);"
end
end
end