Change script tag type to 'text/ecmascript-6&#

2019-08-10 20:09发布

问题:

I'm trying to use 'text/ecmascript-6' or 'text/babel' as the type when having requirejs load the Javascript files using script tags. How can I do that?

For example

<script type="text/babel" src="somefile.js"></script>