Skip to content
Discussion options

You must be logged in to vote

Yes, the package is ESM, so it will run in a browser without a build step. If you want to use unpkg, #3 explains how. Obviously replace @2.2.2 in the links with @3.3.1 for the current version. Note: prism grammar imports where changed in version 3, so the example in #3 must be changed slightly.

The code in the package is not minified, so using a CDN here is heavily discouraged in production, but for prototyping this is not an issue.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thdoan
Comment options

Answer selected by thdoan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants