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
IE11 appears to error on the inclusion of bootstrap's button.js because it's ES6 in the module.
By default webpack/babel does not seem to transpile this code, due to the exclusion of /node_modules/ in the loader config, even though it's included in our dependency chain elsewhere.
prevents this from compiling properly for IE11. This also affects other node_modules that a project may include for IE11, but can be fixed with this workaround:
We had webpack configured to ignore everything in node_modules. The means no dependency management, no transpiling for anything in node_modules. This has mostly worked since we generally include dist versions of all our dependencies.
However, we don't use the dist version of Bootstrap. We use the src version which exports full ES6 modules (yay!). This means Bootstrap was never transpiled from ES6 to ES5, which @tjheffner ran into above because IE11 doesn't even support fat arrow (boo).
When Bootstrap moved to beta.3, Chrome started exploding because beta.3 started to feature the use of the spread operator which is not supported by the Babel env setting (which is what we had configured).
IE11 appears to error on the inclusion of bootstrap's button.js because it's ES6 in the module.
By default webpack/babel does not seem to transpile this code, due to the exclusion of /node_modules/ in the loader config, even though it's included in our dependency chain elsewhere.
ie:
prevents this from compiling properly for IE11. This also affects other node_modules that a project may include for IE11, but can be fixed with this workaround:
babel/babel-loader#171 (comment)
the workaround does not appear to negatively affect modern browsers, from what i can tell.
The text was updated successfully, but these errors were encountered: