mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
REFACTOR: Don't generate Discourse
constants for mixins
This commit is contained in:
@ -91,7 +91,7 @@ JS
|
||||
]
|
||||
)
|
||||
|
||||
@@whitelisted.include?(path) || path =~ /discourse\/mixins/
|
||||
@@whitelisted.include?(path)
|
||||
end
|
||||
|
||||
def babel_transpile(source)
|
||||
@ -150,7 +150,6 @@ JS
|
||||
if require_name !~ /\-test$/ && require_name !~ /^discourse\/plugins\//
|
||||
result = "#{class_name}#{type.classify}"
|
||||
|
||||
result = result.gsub(/Mixin$/, '')
|
||||
result = result.gsub(/Model$/, '')
|
||||
|
||||
if result != "PostMenuView"
|
||||
|
Reference in New Issue
Block a user