Skip to content

sasha7/es6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the source for the ES6 features

To Run/Develop

npm global dependencies

  • BrowserSync
  • Webpack
npm install
npm start

This should open your web browser with the BrowserSync server running and watching for changes.

Open up the console in your dev tools!

See package.json for npm start details.

ES6 Modules

ES6 (ES2015) introduces a standardized module format to Javascript.

Using Webpack to bundle up our modules and Babel to transpile our ES6 into ES5.

Some Common Import/Export Variations

import {someFunction} from 'someModule';

import {someFunction as someAlias} from 'someModule';

import * as someModule from 'someModule';

export function someFunction() {/* */};

function someFunction() {/* */}; export {someFunction};

function someFunction() {/* */}; export {someFunction as someAlias};

About

ES6 examples using Babel and Webpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published