Skip to content

Commit 9734fc4

Browse files
author
Anthony Du Pont
committed
✨ Add ES5 version
1 parent 48524ea commit 9734fc4

File tree

36 files changed

+6155
-2098
lines changed

36 files changed

+6155
-2098
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["env"]
2+
"presets": ["@babel/preset-env"]
33
}

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -293,23 +293,20 @@ Check out the [**Basic Menu Active**](https://github.com/Dogstudio/highway/tree/
293293

294294
## Support
295295

296-
Note that **Highway** uses modern features because we wanted it to be *modern*. This means some browser might not support some of these modern features and you'll have to add a polyfill to your projects like [**babel-polyfill**](https://babeljs.io/docs/usage/polyfill/) or transpile your code to ES5 using tools like [**Webpack**](https://webpack.js.org/). This is a non-exhaustive list of modern features used in **Highway**:
296+
Note that **Highway** uses modern features because we wanted it to be *modern*. This means some browsers might not support some of these modern features so we are providing an ES5 version of **Highway** in order to simplify your life.
297+
We want you to focus on your projects instead of spending time on endless configurations in order to use **Highway**.
298+
This gives you the opportunity to use the ES6 version that is **lighter** and supports a majority of modern browsers or the ES5 version that is **heavier** and supports older browsers... Goddamn IE.
297299

298-
- Classes
299-
- Object/Array Destructuring
300-
- Maps
301-
- Promises
302-
- Async...Await Functions
303-
- Fetch API
304-
- ...
300+
Note that since **Highway** uses the Fetch API in order to make HTTP requests you'll have to use the [whatwg-fetch](https://github.com/github/fetch) polyfill for IE... Him again.
301+
Check out the [**Basic Polyfill**](https://github.com/Dogstudio/highway/tree/master/examples/basic-polyfill) example that uses the both ES5 version of **Highway** and the Fetch API polyfill.
305302

306-
Check out the [**Basic Polyfill**](https://github.com/Dogstudio/highway/tree/master/examples/basic-polyfill) example to know how to polyfill **Highway**. This example is compatible with:
303+
This example supports:
307304

308305
- Google Chrome
309-
- Safari
310306
- Firefox
311307
- Edge
312-
- IE11
308+
- Safari 6.2+
309+
- Internet Explorer 10+
313310

314311
## Roadmap
315312

@@ -320,6 +317,7 @@ Check out the [**Basic Polyfill**](https://github.com/Dogstudio/highway/tree/mas
320317
## Releases
321318
#### 1.3.x
322319

320+
- Add ES5 version in `dist/es5` folder
323321
- Add the `Basic Anchor` example
324322
- Add the `Basic Polyfill` example
325323
- Add unit tests

0 commit comments

Comments
 (0)