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

define entry point in legacy Grunt/Angular app for babel-pollyfill

I'm working with a legacy app we are slowly dragging forward to more modern libraries, etc. (I say this in advance to try to head off any "just upgrade to webpack/yarn/etc" answers. We're working on it, incrementally.) Issue summary: I have…
jmadsen
  • 3,635
  • 2
  • 33
  • 49
0
votes
1 answer

Webpack 3.10.0 and babel-polyfill issue at runtime

I'm currently using Webpack 3.10.0 along with following babel packages. "babel": "^6.23.0", "babel-core": "^6.26.0", "babel-loader": "^7.1.2", "babel-polyfill": "^6.26.0", "babel-preset-es2015": "~6.13.2", "babel-preset-react": "~6.11.1", My issue…
0
votes
0 answers

ES6 import in iteration & not at top-level

This is really 2 questions in 1... I have a Node backend with an Express middleware. On entry of the application, I am trying to load in express routes though an iteration. Previously this was done with requirejs but I am wanting to scrap all that…
wmash
  • 4,032
  • 3
  • 31
  • 69
0
votes
1 answer

@babel/polyfill (Babel 7 beta) causes a SyntaxError

Please don't mark this as a duplicate of any Babel 6 questions, because this is specifically about Babel 7! I'm trying out the new Babel 7 beta (@babel/polyfill@7.0.0-beta.32 etc.) and I'm having troubles using @babel/polyfill. Summary When I build…
damd
  • 6,116
  • 7
  • 48
  • 77
0
votes
1 answer

Object.values throws TypeError in IE browser- How to polyfill it?

In my ember app,I am using Object.values method, which is throwing the below error in IE browser. Object doesn't support property or method 'values' TypeError: Object doesn't support property or method 'values' In my package.json …
Ember Freak
  • 12,918
  • 4
  • 24
  • 54
0
votes
0 answers

Karma babel polyfill TypeError

I've been trying to use generator in karma, I've read a lot that I need to include polyfill file before the test file in karma.conf.js. Here is my karma.conf.js file: let webpackConfig = require('./webpack.config.js'); webpackConfig.entry =…
andiwin
  • 1,552
  • 3
  • 14
  • 27
0
votes
0 answers

Babel 5.x setup with webpack for debugging on chrome?

I'm using babel 5.8.34 with webpack for my personal project. Sourcemap is getting generated fine. Now when I try to evaluate a ES6 constructor function in browser console, it throws ReferenceError. The issue has been described here in the first…
neeraj080
  • 119
  • 6
0
votes
2 answers

Jest: resolves return undefined from Promise

I am using jest for testing. I want to test the return of my function: const xml2js = require('xml2js') const parser = new xml2js.Parser() function opmlParser(xmlData) { return new Promise((resolve, reject) => { parser.parseString(xmlData,…
Frilox
  • 815
  • 2
  • 13
  • 24
0
votes
2 answers

Babel - IE8 inherit issue with Object.create

Unfortunately, I need to deal with IE8 compatibility nightmares and after few hours of fixing troubles one after another I'm in a dead-end, hope someone can help me. Babel implements inheritance thru this method: function _inherits(subClass,…
Shlomi
  • 3,622
  • 5
  • 23
  • 34
0
votes
0 answers

Minified version of browserify does not work

The uncompress version works fine, but the compressed and minified do not. gulp.task('adtag', function () { // set up the browserify instance on a task basis var b = browserify({ entries: './src/adtag/main.js', debug: true …
ayxos
  • 408
  • 1
  • 7
  • 15
0
votes
1 answer

Brunch and VueJs with Promise polyfill

My code doesn't work in IE and I am having trouble getting to the bottom of it. I need a Promise polyfill, so my goal was to import "babel-polyfill" at my main app.js and see if this worked. I am running into trouble however, because it seems with…
Fletcher Moore
  • 13,558
  • 11
  • 40
  • 58
0
votes
0 answers

core-js: "Attempting to configurable attribute of unconfigurable property."

https://github.com/zloirock/core-js/issues/279 I'm using babel-polyfill, which I believe uses core-js. I'm seeing this error reported in some browsers (Safari <=7, Chrome 47, Nintendo Browser, Playstation Vita Browser): "Attempting to configurable…
Seán Hayes
  • 4,060
  • 4
  • 33
  • 48
0
votes
0 answers

Auto insert babel-polyfill when building with webpack

I have the following webpack config: const path = require('path'); const webpack = require('webpack'); function NoOpPlugin(options) { // Setup the plugin instance with options... } NoOpPlugin.prototype.apply = function(compiler) { …
Seán Hayes
  • 4,060
  • 4
  • 33
  • 48
0
votes
0 answers

babel source maps - cant debug properly

i am working on a university project and am writing the backend with node js transpiled with babel in order to use async/await i am generating source maps in order to debug properly but its doing some pretty shitty job for example - i cant put a…
0
votes
3 answers

only one instance of babel/polyfill is allowed with angular ui-router

currently, I work for a school project and want to show some charts with angularJs and meteor. I want to use the ui-router plugin. But when I try to use it, I get the following error: Error: only one instance of babel/polyfill is allowed at…
1 2 3
17
18