Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kristoferbaxter/preset-env-modules
Demonstrate Babel Preset Env with ESModules Support.
https://github.com/kristoferbaxter/preset-env-modules
Last synced: 25 days ago
JSON representation
Demonstrate Babel Preset Env with ESModules Support.
- Host: GitHub
- URL: https://github.com/kristoferbaxter/preset-env-modules
- Owner: kristoferbaxter
- License: apache-2.0
- Created: 2018-01-12T20:30:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-10T15:18:59.000Z (2 months ago)
- Last Synced: 2024-10-14T21:24:13.829Z (about 2 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 64
- Watchers: 3
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - preset-env-modules - Demonstrate Babel Preset Env with ESModules Support. (JavaScript)
README
# 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!