-
-
Notifications
You must be signed in to change notification settings - Fork 260
Closed
Description
Thanks for creating this! I had issues with vite
and generating .d.ts
files, but tsup
has been working great!
The only thing I noticed with my React library are these errors:
ReferenceError: React is not defined
Adding import * as React from 'react';
at the top of each file fixes it.
But based on developit/microbundle#763 (comment), I was wondering if it'd be possible to do something similar like:
tsup --jsx 'React.createElement' --jsxImportSource react --globals react/jsx-runtime=jsx
csantos-nydig, jimmy-guzman, EarlGeorge, ari-becker and radiorzEarlGeorge
Metadata
Metadata
Assignees
Labels
No labels