I was also unable to make it work with the babel-plugin-prismjs but here is how i managed to do it.
Since the plugins come with the prismjs package, you just need to ;
Import the css file of the plugin from "prismjs/plugins/{plugin-folder}/{plugin.css}" using the import statement.
I was also unable to make it work with the babel-plugin-prismjs but here is how i managed to do it.
Since the plugins come with the prismjs package, you just need to ;
from "prismjs/plugins/{plugin-folder}/{plugin.css}"
using theimport
statement.<pre>
tag.for more info check out prismjs/plugins.
Edit.
You also need to import the js file of the plugin as well.
more from here