Questions tagged [babel-polyfill]

Babel Polyfill will emulate a full ES6 environment. This polyfill is automatically loaded when using babel-node.

Installation:

$ npm install babel-polyfill

To find more information :

265 questions
0
votes
1 answer

Unhandled promise rejection InvalidCharacterError in IE11 with VEE Validate Vue.js and babel-polyfill

I have a problem in IE11 where i get a InvalidCharacterError when i validate a form with vee validate in vue.js. I think it could be a polyfill error but i'm not quite sure. I tried removing certain parts of my code to see if the problem is still…
0
votes
1 answer

Webpack 4 bundle size after upgrade from Webpack 3

After migrating my project from Webpack 3 and Babel 6 to Webpack 4 and Babel 7 then bundle size has increased. The project compiles fine, but the bundle size is now 1MB larger than before. I have been working hard to decrease the bundle size so this…
Kermit
  • 2,865
  • 3
  • 30
  • 53
0
votes
0 answers

NPM package [bitcoinjs-lib] not compatible with IE v11

I'm adding IE v11 support for web application. bitcoinjs-lib package contains arrow function causing IE v11 to break. I have added babel-polyfill, react-app-polyfill/ie11, url-search-params-polyfill and react-app-polyfill/stable which makes up for…
0
votes
1 answer

Which babel-* package should I include in webpack to support IE11

I want to support IE11 (e.g. NodeList.forEach ) in my project using babel inside webpack, but I find it confusing to select the right babel package. Current packages are: "@babel/core": "^7.6.4", "@babel/preset-env": "^7.6.3", "babel-loader":…
Marinos An
  • 9,481
  • 6
  • 63
  • 96
0
votes
1 answer

Vue CLI 3 app not loading in IE with some npm packages

I have created a Vue app with vue-cli 3. It was working fine in all browsers until I installed a npm package "microsoft-cognitiveservices-speech-sdk". To my knowledge, I guess, this particular package is not getting transpiled by babel. Below is my…
vinoth
  • 186
  • 1
  • 2
  • 9
0
votes
1 answer

Can I list the polyfills applied to each webpack entry points by babel/preset-env with useBuiltIns:usage?

I have a small Javascript app that executes on webpages. It can run in most modern browsers but not old ones like IE (because it uses some features like Promise ). I can use babel/preset-env with useBuiltIns:usage with browserlist config to add…
David Lin
  • 13,168
  • 5
  • 46
  • 46
0
votes
0 answers

How do I add support of vue-apollo for IE11?

I'm working on MEVN stack with GraphQL implementation. I had problems displaying my Vue application on IE11, but then I added babel-polyfill which provides support for vuetify and vue templates. Now vue application loads the vue templates but I have…
0
votes
2 answers

Object.entries/Object.values is undefined with Babel-polyfill in IE 11

To optimize page load time our my app, I split the bundle into two bundles: webpack-bundle (this contains my code) and vendor-bundle (this contains everything in node modules). But I am starting to get several errors when my users visit my website…
chloewlin
  • 115
  • 2
  • 8
0
votes
1 answer

How to build using cra-append-sw now that @babel/polyfill has been deprecated?

I'm trying to add functionality to the serviceworker that create-react-app provides out of the box. Thankfully, cra-append-sw lets me do that without needing to eject from cra. However, when installing cra-append-sw, npm gives me a warning that…
user680141
  • 598
  • 2
  • 6
  • 16
0
votes
2 answers

Javascript - Is there a cdn link for the object spread polyfill?

I'm searching a polyfill for the object spread operator in javascript. Does anyone have a cdn link or if not a way to do it with es5 javascript? var i = { test: 123, test1: 5234 } var b = { ...i, test3: 243 }
ProV
  • 251
  • 1
  • 4
  • 14
0
votes
1 answer

Fetch As Google Is Showing Blank Page - Reactjs

I have a Reactjs (v.16.6.3) page which its SEO is important to be indexed by Google. Therefore, I checked it with Fetch as Google tool to know what Google-bot renders from this page. However, google shows nothing and only depicts a blank page to…
0
votes
0 answers

polyfill for a dependency

I have a dependency in my app which doesn't work in IE11 so I want to polyfill it but it seems it can't. Here is what I added into webpack config (jso is the library I want to polyfill): module.exports = { entry: { bundle: ["babel-polyfill",…
Sergey Aslanov
  • 663
  • 1
  • 7
  • 13
0
votes
0 answers

Including babel-polyfill in browser slows down

I have a large code base, that assembles to a react app which runs in a website. It is only a part of a larger web-app. I have inherited that code and I have no tests. Problem is: FireFox hangs after loading polyfill.min.js (all babel/polyfill.js…
vik
  • 762
  • 1
  • 7
  • 18
0
votes
0 answers

Local react Development Version shows blank page in IE

After upgrading to webpack 4 and latest react version . When i open react js development version on IE it shows blank page and shows following error in console. SCRIPT1002: Syntax error File: 0-9c5f892beeb9f5dfc76b.chunk.js, Line: 2891, Column:…
Anand Neema
  • 592
  • 1
  • 3
  • 21
0
votes
1 answer

script1010: unidentified syntax | Not Able to convert ES6 to ES5 using Babel for IE11

In my Reactjs code I am getting Script1010: unidentified syntax. This is coming because of types.min.js file inside node_module/types.js folder. Inside types.min.js file; o=function(...n) code is giving error because of ES6 syntax. And while I am…