FIX: Plugins should be required by the path we generate for them
This commit is contained in:
parent
59ef38bb88
commit
44ee7587c0
|
@ -77,7 +77,8 @@ module Tilt
|
|||
if file_name.end_with?('s') && (!class_name.end_with?('s'))
|
||||
class_name << "s"
|
||||
end
|
||||
@output << "\n\nDiscourse.#{class_name}#{type.classify} = require('#{scope.logical_path}').default"
|
||||
require_name = module_name(scope.root_path, scope.logical_path)
|
||||
@output << "\n\nDiscourse.#{class_name}#{type.classify} = require('#{require_name}').default"
|
||||
end
|
||||
|
||||
@output
|
||||
|
|
Loading…
Reference in New Issue