mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "Proof of concept: Load controller via ES6 module in Discourse"
This reverts commit 0327f469c1.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user