Open audunolsen opened 4 years ago
I use Preact But my fragments always end up as React.Fragment regardless of what the pragmaFrag option says. Is babel-plugin-transform-react-pug to blame?
Preact
React.Fragment
pragmaFrag
babel-plugin-transform-react-pug
babel config:
plugins: [ "transform-react-pug", "transform-jsx-classname-components", [ "@babel/plugin-transform-react-jsx", { pragma : "Preact.h", pragmaFrag : "Preact.Fragment", }], ],
I use
Preact
But my fragments always end up asReact.Fragment
regardless of what thepragmaFrag
option says. Isbabel-plugin-transform-react-pug
to blame?babel config: