Closed hwb15 closed 1 year ago
Thanks for this - I will probably merge this at some point (new major release), seeing that named exports have many benefits over default exports overall.
@aanckar Perfect! If you'd be up for merging it asap I can then get it up and running today within the 'react-pdf-repl', so we can use tailwind within live updating/debugging environment while creating pdfs.
What kind of change does this PR introduce?
Major change to the way the
createTw
is imported and exported to allow for the ability to use it within the react pdf playground/interactive debugger app react-pdf-repl.To make sure the module can be imported within react-pdf-repl, it needs to be a named export rather than default.
What is the current behavior?
createTw
is currently exported as followed:Then it is imported as followed:
What is the new behavior?
Now exported as named:
Then imported as named: