Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ecmascript 6

Export Module In Front Of Function Vs At End

I am developing an app in GatsbyJS, and exporting one of my GraphQL fragments as such: import { gra… Read more Export Module In Front Of Function Vs At End

Leaflet Plugin Only Working When Geolocation Is Enabled

I am using leaflet with react-leaflet. OverpassLayer is working when geolocation is enabled. When … Read more Leaflet Plugin Only Working When Geolocation Is Enabled

Is There A Polyfill For Es6 Arrow Function?

Is there a polyfill for es6 arrow function? the following code throws syntax error exception in IE… Read more Is There A Polyfill For Es6 Arrow Function?

Garbage Collect Unused Modules

I am using dynamic import to load scripts written by the user in the browser. I start by placing th… Read more Garbage Collect Unused Modules

Rendering Js From A Rails Controller With Webpacker

Just replaced the js pipeline in my Rails app with webpacker. Most things work correctly, however c… Read more Rendering Js From A Rails Controller With Webpacker

Gulp Throwing "is Read-only While Parsing File" Error While Running Gulp Task

I'm trying to create ES6 module in JavaScript and I get error like: Line 20: 'NotFound'… Read more Gulp Throwing "is Read-only While Parsing File" Error While Running Gulp Task

Using Es6 Arrow Functions Inside Class

When i change a function draw(){ //} to draw = () => { // } I am getting an error like 'Unca… Read more Using Es6 Arrow Functions Inside Class

Using Gulp-babel And Getting "argument Name Clash In Strict Mode"

I'm trying to use gulp-babel so I can start writing some ES6 / ES2015 code inside of my ES5 app… Read more Using Gulp-babel And Getting "argument Name Clash In Strict Mode"