gray-matter icon indicating copy to clipboard operation
gray-matter copied to clipboard

Update esm import example

Open jeffgca opened this issue 2 years ago • 1 comments

Using import * as matter from 'gray-matter' gets to top level scope of the module, not the default export. I'm guessing at some point the module was adjusted to have a default export, and this change updates the readme to support that.

jeffgca avatar Jun 21 '22 00:06 jeffgca

Thanks, this helps

kunanyi avatar Jan 31 '24 10:01 kunanyi