Prismjs: does importing the syntax for all languages increase the bundles size

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/reactjs

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • gatsby-blog-mdx

    A ready-to-use, customizable personal blog with minimalist design

    I'm trying prismjs lib for syntax highlighting, it sounds like for each languages I need to import a separate part of the core module, now (something like this: https://github.com/EllisMin/gatsby-blog-mdx/blob/442d1135de794a9950293278b2ecbb2eda5e883a/gatsby-browser.js) now I assume each of these will be increase the size of the bundle right? Any workarounds? Maybe lazy loading? I appreciate any feedbacks.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts