mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Transpile all plugin js by default (#17175)
Goodbye `# transpile_js: true`? 🙂
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
root_path = "#{File.dirname(p.path)}/test/javascripts"
|
||||
|
||||
to_glob = [root_path + '/**/**.es6']
|
||||
to_glob << (root_path + '/**/**.js') if p.transpile_js
|
||||
to_glob << (root_path + '/**/**.js')
|
||||
|
||||
Dir.glob(to_glob) { |f| require_asset(f) }
|
||||
end
|
||||
|
Reference in New Issue
Block a user