Replies: 1 comment
-
@mcshaz Did you figure this one out by any chance? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What an awesome tool - thank you very much.
I have a typescript file which imports
when I build with
tsup src/index.ts --format esm,cjs
I would like the ESM version to use the exact same import statement (which is working perfectly).However, I would like the commonJS version to use the .cjs exported by the
date-fns-tz
library. That is, the .cjs output will ideally bevar zonedTimeToUtc = require( 'date-fns-tz/zonedTimeToUtc')
(with '/esm' removed)is this possible, and if so, how? If not are there any solutions or other libraries you would suggest? - thank you.
Beta Was this translation helpful? Give feedback.
All reactions