Allow registering ES6 modules from plugins.
This commit is contained in:
parent
eb7aab3e0b
commit
b9e15a240f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue