Skip to content Skip to sidebar Skip to footer
Showing posts with the label Es6 Modules

Does Webpack Make Es6 Modules Compatible With Es5 Browsers?

If I use an ES6 import in a JS file like: import { tempates } from './templates.js'; webpa… Read more Does Webpack Make Es6 Modules Compatible With Es5 Browsers?

Conditional Export In Es2015

Let's say you're developing a polyfill and don't want to shim a class if it already exi… Read more Conditional Export In Es2015

Avoid Exporting Singleton In Es6

As I have seen, ES6 exports singletons for object literals: // module A export const singleton = { … Read more Avoid Exporting Singleton In Es6

How To Get `jquery` As A Function (not As A Module Symbol) After Es6 Style `import * As Jquery From "./js/jquery.js";`

I'm experimenting with native ES6 modules support in Chrome. jQuery is not es6 module (no expor… Read more How To Get `jquery` As A Function (not As A Module Symbol) After Es6 Style `import * As Jquery From "./js/jquery.js";`

How To Make Script Loading And Es6 Module Loading Working Together?

This loads jquery only once: The same is true for: Solution 1: As a workaround, you could import… Read more How To Make Script Loading And Es6 Module Loading Working Together?

Es6 Modules And Circular Dependency

I'm having this problem in ES6 in a Babel Environment: // A.js class A { } export default new A… Read more Es6 Modules And Circular Dependency

Webpack Imported Module Is Not A Constructor

I created a small JS module which I intend to make an npm package, but for now is just on GitHub. T… Read more Webpack Imported Module Is Not A Constructor

Es6 Javascript Import External Js File

I'm trying this in my ES6 javascript module: import externalutil from 'https://externaluti… Read more Es6 Javascript Import External Js File