Closed cometkim closed 1 year ago
OK I will try again
@arcanis Can you push your reverted commit to master
?
Pushed 👍
It seems that exports map in package.json inside subpath like ./platform
is not well respected. What about using subpath imports? I think that will solve this platform
problem better.
@arcanis New PR here #140
@cometkim I had to revert this PR: https://github.com/arcanis/clipanion/issues/139
If we want to re-land it I think this time we'll need to add tests to make sure that the ESM build works fine (I took a quick look, and I think the idea would be to add an
exports
entry for./platform
which would point to eithernode.ts
orbrowser.ts
based on whether thenode
condition is set; Rollup might also need to be upgraded).