ahmadawais / create-guten-block

📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
https://Awais.dev/cgb-post
MIT License
3.15k stars 327 forks source link

How to use shorthand Fragment notation without errors #276

Open federicomagnani opened 4 years ago

federicomagnani commented 4 years ago

Hi, thanks for this great tool. I would like to use in my blocks the Fragment shorthand notation <> ... </> Unfortunately, when I 'compile' the code with that component, an error is thrown: 'Syntax error: Unexpected token'. I have already ejected the block... could you tell me how to customize the scripts or webpack configuration in order to be able to use this notation? Thanks a lot.

cbou commented 4 years ago

Any idea how to solve this? I'm currently blocked by this issue :/