Skip to content

Demonstrate Babel Preset Env with ESModules Support.

License

Notifications You must be signed in to change notification settings

kristoferbaxter/preset-env-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstrate @babel/preset-env with ESModules targetting

With the release of Babel 7 one can now specifically target devices supporting ESModules.

This can greatly reduce the amount of JavaScript sent to modern devices with minimal effort.

This example shows how one can apply the technique.

Installation

  1. Clone this repo.
  2. yarn to install dependencies.
  3. yarn start to startup a localhost:3000 server with a sample page.

Good luck, and let's send users less JavaScript!

About

Demonstrate Babel Preset Env with ESModules Support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published