Allow registering ES6 modules from plugins.

This commit is contained in:
Vikhyat Korrapati 2014-05-15 23:44:30 +05:30
parent eb7aab3e0b
commit b9e15a240f
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class Plugin::Instance
def register_assets!
assets.each do |asset, opts|
if asset =~ /\.js$|\.js\.erb$/
if asset =~ /\.js$|\.js\.erb$|\.js\.es6$/
if opts == :admin
DiscoursePluginRegistry.admin_javascripts << asset
else