mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Allow registering ES6 modules from plugins.
This commit is contained in:
parent
eb7aab3e0b
commit
b9e15a240f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue