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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -