mAAdhaTTah / babel-plugin-prismjs

A babel plugin to use PrismJS with standard bundlers.
156 stars 9 forks source link

Add support for babel macro #111

Open mAAdhaTTah opened 3 years ago

mAAdhaTTah commented 3 years ago

This would enable support in CRA.

mAAdhaTTah commented 2 years ago

So this actually requires the macro to be created in Prismjs itself. If the macro sees prismjs/macro, it'll invoke the macro that resolves to that identifier, which means we need to do the work there.