Skip to content

Commit 0b3a8b8

Browse files
authored
Merge pull request #22 from devrnt/chore/use-babel-config
chore: add babel config
2 parents 0c8ad2f + e5d7385 commit 0b3a8b8

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.babelrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": "defaults, not IE 11"
7+
}
8+
]
9+
]
10+
}

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Focused on logic
1717
- Zero dependencies
1818
- No UI restrictions
19+
- [Tiny size](https://bundlephobia.com/result?p=react-use-wizard@latest)
1920
- Written in TypeScript
2021

2122
## Installation
@@ -63,6 +64,7 @@ const Step1 = () => {
6364
- [Examples](#examples)
6465
- [Async](#async)
6566
- [Animation](#animation)
67+
- [IE11](#ie11)
6668

6769
## API
6870

@@ -227,3 +229,8 @@ If an async function is attached to `handleStep` the `isLoading` property will i
227229
Since `react-use-wizard` is focused to manage the logic of a wizard it doesn't mean you can't add some animation by your own. Add any animation library that you like. I highly suggest [framer-motion](https://www.framer.com/motion/) to add your animations.
228230

229231
Checkout this [example](https://github.com/devrnt/react-use-wizard/blob/main/playground/components/animatedStep.tsx) to see how a step can be animated with framer motion.
232+
233+
## IE11
234+
Since Internet Explorer 11 doesn't support promises or async functions you'll need to install a polyfill for the `regenerator-runtime`.
235+
236+
In general using [react-app-polyfill](https://www.npmjs.com/package/react-app-polyfill) is recommended, it includes polyfills for various browsers.

0 commit comments

Comments
 (0)