reactjs - How to compile only JSX and imports and not ES6 code? -
i using react-scripts, , i'd leave es6 code is, debugging purpose. example, browser understand arrow functions, generators, async await , classes (we use these features lot), need jsx compilation. besides, when code packed bundle.js, there "uncaught syntaxerror: unexpected token import", need compile "import" , "export" statements, because use that:
import {func} "module"; export * "module";
i know there source maps, , help, after gets hard execute code step step in debugger , play around in console, while on breakpoint.
Comments
Post a Comment