mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FIX: Don't generate compatibility layer for test files
This commit is contained in:
parent
f977843391
commit
c709ea8f9e
1 changed files with 4 additions and 1 deletions
|
@ -80,7 +80,10 @@ module Tilt
|
|||
class_name << "s"
|
||||
end
|
||||
require_name = module_name(scope.root_path, scope.logical_path)
|
||||
@output << "\n\nDiscourse.#{class_name}#{type.classify} = require('#{require_name}').default"
|
||||
|
||||
if require_name !~ /\-test$/
|
||||
@output << "\n\nDiscourse.#{class_name}#{type.classify} = require('#{require_name}').default;\n"
|
||||
end
|
||||
end
|
||||
|
||||
# Include JS code for JSHint
|
||||
|
|
Loading…
Reference in a new issue