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

Can't load language plugins via aliases even when they are officially provided #1827

Closed
falsandtru opened this issue Mar 23, 2019 · 2 comments · Fixed by #1829
Closed

Can't load language plugins via aliases even when they are officially provided #1827

falsandtru opened this issue Mar 23, 2019 · 2 comments · Fixed by #1829

Comments

@falsandtru
Copy link

Information:

  • Prism version: 1.15
  • Environment: Browser

Description
Prism fails to load language plugins via aliases because of use of aliases for plugin path resolving.

Example
TypeScript language plugin has ts alias by default but isn't loadable.

https://falsandtru.github.io/securemark/#%60%60%60ts%0Aconst%20a%20%3D%200%3B%0A%60%60%60

cdnjs.cloudflare.com/ajax/libs/prism/1.15.0/components/prism-ts.min.js:1 Failed to load resource: the server responded with a status of 404 ()
@RunDevelopment
Copy link
Member

Just to be clear: You are using the Autoloader plugin and it can't handle aliases (e.g. ts)?

@falsandtru
Copy link
Author

Yes, I mean it.

@falsandtru falsandtru changed the title Can't load language plugins via aliases event when they are officially provided Can't load language plugins via aliases even when they are officially provided Mar 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants