mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:21:25 +08:00
Revert "Proof of concept: Load controller via ES6 module in Discourse"
This reverts commit 0327f469c1120d56ac61925424d1e4269b3b8c8c.
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