You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am I wrong or classList is not included? Supported engines are also older than IE 10, where classList is not available.
I am not interested to deploy for IE9 :), however lot of times "please use/choose newer browser" screen uses some class switching n stuff, so it would be needed.
Test case (using webpack 2)
site.js
'use strict';import'babel-polyfill';import'./global.scss';constmyArrowFunction=()=>{// hello-world test babel for arrow fcnconstdiv=document.querySelector('.app');div.innerHTML='<h1>Hello JS</h1><p>Lorem ipsum.</p>';div.classList.add('some-class');// test for classList polyfillconsole.log('Hello JS!');};myArrowFunction();
Debug output does not mention classList. Nor does compiled site.js - only one occurrence of classList, namely the original code div.classList.add('some-class'), thus no polyfill anywhere in the compiled stuff.
If it really lacks, then I would have to manually add it - which would not be elegant when using browserslist to globally control things js polys (via barbel-env and babel-polyfill) and autoprefixer (via postcss).
So am i missing something? If it is not included, is there a specific reason not to (because it is "DOM manipulation" that core-js does not cover)?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
Am I wrong or
classList
is not included?Supported engines are also older than IE 10, where
classList
is not available.I am not interested to deploy for IE9 :), however lot of times "please use/choose newer browser" screen uses some class switching n stuff, so it would be needed.
Test case (using webpack 2)
site.js
.babelrc
Debug output does not mention
classList
. Nor does compiledsite.js
- only one occurrence ofclassList
, namely the original codediv.classList.add('some-class')
, thus no polyfill anywhere in the compiled stuff.If it really lacks, then I would have to manually add it - which would not be elegant when using browserslist to globally control things js polys (via
barbel-env
andbabel-polyfill
) andautoprefixer
(via postcss).So am i missing something? If it is not included, is there a specific reason not to (because it is "DOM manipulation" that core-js does not cover)?
Thanks!
The text was updated successfully, but these errors were encountered: