kentcdodds / mdx-bundler

🦤 Give me MDX/TSX strings and I'll give you back a component you can render. Supports imports!
MIT License
1.78k stars 75 forks source link

Fix Node 16+ with react package.json exports #162

Closed natew closed 2 years ago

natew commented 2 years ago

Node package.json exports map doesn't let you specify ".js", doing it like this breaks Node 16/17 with React. This fixes it.

codecov[bot] commented 2 years ago

Codecov Report

Merging #162 (c03381f) into main (8a4e6a6) will not change coverage. The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #162   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          280       280           
  Branches         1         1           
=========================================
  Hits           280       280           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5fef25a...c03381f. Read the comment docs.

kentcdodds commented 2 years ago

I think this was handled in #167. Thanks though!