mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 14:02:00 +08:00
REFACTOR: Don't generate Discourse
constants for mixins
This commit is contained in:
parent
5f927ceeb3
commit
6e481851e7
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user