Answers for "babel-plugin-prismjs .babel.rc doesn't work"

0

babel-plugin-prismjs .babel.rc doesn't work

/*If you are using this in a react project built from create-react-app 
(CRA), your code will not work. 
Your .babelrc file is not being used. 
CRA does not expose babel configuration. 
Check this answer to understand more on this.
For your use-case the easiest way would be to go to prismjs page 
to download the CSS file. 
Select the right theme and click 'DOWNLOAD CSS' at the bottom 
of the page.
Import this CSS file in your App.js code.*/
import '../prism.css';
Posted by: Guest on March-12-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language