vite-react-jsx
vite-react-jsx copied to clipboard
React 17's automatic JSX runtime for your entire bundle
I get an `Uncaught ReferenceError: React is not defined` error, when rendering the DateTimePicker component from @material-ui/pickers. This error happens only in production build and not in the dev server.
Being present in the `exports` field of `package.json` does not automatically make the file an ES module. It must be ended with `.mjs`, or the package.json has to include `type:...
Thanks for the plugin! # Problem Calls to babel transform without passing the filename causes babel to fail. (According to the error stack and https://babeljs.io/docs/en/options#filename) # Environment @babel/core: ^7.14.6 NodeJS:...