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

Core: Add highlight.js to es6 transpiled modules #12811

Closed
wants to merge 2 commits into from

Conversation

tooppaaa
Copy link
Contributor

@tooppaaa tooppaaa commented Oct 18, 2020

Issue: IE 11, #12399 #12179

What I did

Transpile highlight.js

How to test

  • Be bold and launch IE 11

@tooppaaa
Copy link
Contributor Author

@gaetanmaisse any idea on fixing yarn 2 while keeping the highlight.js transpilation ?

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small tweak?

@@ -3,7 +3,7 @@ import { plugins } from './babel';
const es6Transpiler = () => {
// TODO: generate regexp using are-you-es5

const include = /[\\/]node_modules[\\/](@storybook\/node-logger|are-you-es5|better-opn|boxen|chalk|commander|find-cache-dir|find-up|fs-extra|json5|node-fetch|pkg-dir|resolve-from|semver)/;
const include = /[\\/]node_modules[\\/](@storybook\/node-logger|are-you-es5|better-opn|boxen|chalk|commander|find-cache-dir|find-up|fs-extra|highlight.js|json5|node-fetch|pkg-dir|resolve-from|semver)/;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

highlight\.js?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done but still not working in yarn 2 :(

@tooppaaa tooppaaa force-pushed the fix/ie11Highlightjs branch from 9cd727c to 46655a4 Compare October 18, 2020 17:07
@gaetanmaisse
Copy link
Member

@tooppaaa I discussed a bit about that with @yannbf and we have some options in mind. Let's talk in the next few days.

@shilman shilman added this to the 6.1 core milestone Oct 22, 2020
@yannbf
Copy link
Member

yannbf commented Oct 24, 2020

LGTM! I'm not sure if there are possible side effects to this but seems solid. Of course there has to be some documentation as well, maybe on FAQ?

@tooppaaa
Copy link
Contributor Author

Just waiting to be sure we want to go to the path of adding options like this in main.js @shilman @tmeasday @ndelangen ?

I'm sure @jonniebigodes will be able to point me the right direction for documenting this after :D

@ndelangen
Copy link
Member

I thought we used prism for code highlighting rather than highlight?

where are we using highlight?

@jonniebigodes
Copy link
Contributor

@tooppaaa let me know when you have something created and we can go from there. Sounds good?

@shilman shilman added the ie11 label Oct 27, 2020
@tooppaaa
Copy link
Contributor Author

where are we using highlight?

Don't know but it's definitely present in the bundles.

@shilman
Copy link
Member

shilman commented Nov 10, 2020

I think this is no longer needed because of #12948. @tooppaaa WDYT?

@tooppaaa
Copy link
Contributor Author

IE 11 is working ! not needed !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants