preset-vite icon indicating copy to clipboard operation
preset-vite copied to clipboard

Add config to specify plugin-transform-react-jsx `throwIfNamespace`

Open CorruptedHeart opened this issue 1 year ago • 3 comments

It appears that specifying throwIfNamespace in a .babelrc file no longer causes it to apply to the @babel/plugin-transform-react-jsx or @babel/plugin-transform-react-jsx-development. Even if specifying babelrc: true as a config option.

This is to allow stuff like unocss attributify mode which supports attributes like disabled:bg-grey on elements.

Currently the only documented use case is throwIfNamespace.

CorruptedHeart avatar Feb 09 '24 08:02 CorruptedHeart