How to make script type both text/babel and module?

后端 未结 4 851
遥遥无期
遥遥无期 2021-02-07 06:59

It works perfectly because I haven\'t included JSX, but when I replace the script type with text/babel, it doesn\'t work because the module fails to load. bro

4条回答
  •  梦谈多话
    2021-02-07 07:10

    Just in case if some one comes here looking for answer

    There is a support for data-plugins and data-presets in babel standalone

    
    
                                     
                  
提交回复
热议问题