Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add util to restrict Prism bundle in Webpack #69

Merged
merged 6 commits into from
May 9, 2023

Conversation

MattIPv4
Copy link
Member

@MattIPv4 MattIPv4 commented May 5, 2023

Type of Change

  • PrismJS Integration: Webpack, language resolution

What issue does this relate to?

N/A

What should this PR do?

Updates the dependency resolution logic when loading languages for PrismJS.

Exposes a new method to instantiate Webpack's Context Replacement plugin, allowing the languages included for PrismJS in Webpack bundles to be restricted.

What are the acceptance criteria?

Prism continues to load languages as expected, rendering code blocks.

Webpack plugin can be used to correctly restrict the bundling of Prism languages to the requested languages and their dependencies.

@MattIPv4 MattIPv4 added the minor Change is SEMVER minor label May 5, 2023
@MattIPv4 MattIPv4 merged commit 11bda93 into master May 9, 2023
4 checks passed
@MattIPv4 MattIPv4 deleted the MattIPv4/restrict-webpack-prism branch May 9, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Change is SEMVER minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants