diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb index 297726f77..55fffea11 100644 --- a/lib/plugin/instance.rb +++ b/lib/plugin/instance.rb @@ -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