I’ll see if I can find time to play around with it here shortly, but at a quick glance, you should remove
register_asset "javascripts/lib/discourse-markdown/pirate-speak.js.es6", :server_side
from your plugin.rb, that file doesn’t exist and you don’t need such a line with the new API.