You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently the package publishes esm and cjs seperately. This results in import statements like the following:
cjs
import { render } from "@faire/mjml-react/renders";
esm
import { render } from "@faire/mjml-react/esm/renders";
Is there some way to have the folders merged with both an esm and cjs version available? Would it make sense to prioritize one and allow the other to use an alias? ie. cjs is in root and esm is a directory in root? done
import { render } from "@faire/mjml-react/renders";
Thanks @eddeee888! Thank is on the right track, but unfortunately I think it is a bit tricky to implement a solution that works for everything. We have that exact setup for the main package.json (i.e. all the Mjml* components) but to get all of the utils/extension files also exported in that way I think we would need to 1) update the file structure (see #77) and then 2) create a package.json for each file we want to easily export esm and cjs version of and place it in the right folder. Ideally the finall solution is importing from @faire/mjml-react/utils/render will automatically resolve esm and cjs
currently the package publishes
esm
andcjs
seperately. This results in import statements like the following:cjs
esm
Is there some way to have the folders merged with both an
esm
andcjs
version available?Would it make sense to prioritize one and allow the other to use an alias? ie.donecjs
is in root andesm
is a directory in root?split out from #64
The text was updated successfully, but these errors were encountered: