WP_Script
always adds text/javascript
to the <script>
tag, and applies no filter before it returns, there is not much you can do there. You could try to create a subclass of WP_Scripts
that has this functionality. If you change the global $wp_scripts
to your new class, this might work.