Change script tag type to 'text/ecmascript-6' or 'text/babel' when loading modules using requirejs

不问归期 提交于 2019-12-11 07:17:23

问题


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>

来源:https://stackoverflow.com/questions/28731256/change-script-tag-type-to-text-ecmascript-6-or-text-babel-when-loading-modul

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!