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

WIP: Fix code-block-buttons.js to work in IE11 #1748

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gyujincho
Copy link
Contributor

@gyujincho gyujincho commented Aug 10, 2018

  • Transpile code-block-buttons.js with babel and include babel-polyfill
  • Minify bundled scripts using babel-minify-webpack-plugin

WIP because not tested in an actual IE11 browser yet(currently don't have one, will test with Netlify link in a few days)

@babel-bot
Copy link
Contributor

babel-bot commented Aug 10, 2018

Deploy preview for babel failed.

Built with commit 224a96f

https://app.netlify.com/sites/babel/deploys/5b72cc02b312747ef9bc50c4

@existentialism
Copy link
Member

existentialism commented Aug 14, 2018

@gyujincho just took at look at this in IE11... I think we can avoid transpiling, as the only thing that seems to be breaking is:

document.querySelectorAll(codeBlockSelector).forEach(...)

We can probably just copy/paste a polyfill (like this one).

(Also looks like we need to fix the css for the copy button for IE11)

@danez danez mentioned this pull request May 8, 2019
@danez
Copy link
Member

danez commented May 8, 2019

Even if we fix this one file, there are more issues in order to get stuff working in IE11. For example docusaurus ships template strings in some files which get directly sent to browser.

https://github.com/facebook/Docusaurus/blob/master/packages/docusaurus-1.x/lib/static/js/codetabs.js

It is probably not worth fixing imho.

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

Successfully merging this pull request may close these issues.

None yet

4 participants