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

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

java - How to handle special characters while unmarshalling xml in JAXB -

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