Skip to content

Commit a6df5d8

Browse files
authored
Add core-js and transform runtime for IE11 (#93)
* Add core-js and transform runtime for IE11 * Use npx for nodemon * Add entry * Include metafile
1 parent 65292f8 commit a6df5d8

File tree

9 files changed

+13860
-15676
lines changed

9 files changed

+13860
-15676
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fixed [#90](https://github.com/compulim/react-scroll-to-bottom/issues/90). Added `@babel/runtime-corejs3` and `core-js@3` for transforming for Internet Explorer 11, by [@compulim](https://github.com/compulim), in PR [#93](https://github.com/compulim/react-scroll-to-bottom/pull/93).
13+
1014
## [4.1.1] - 2021-05-13
1115

1216
### Added

packages/component/babel.cjs.config.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
[
55
"@babel/env",
66
{
7-
"targets": {
8-
"browsers": [
9-
"last 2 versions"
10-
]
11-
},
12-
"modules": "commonjs"
7+
"corejs": 3,
8+
"forceAllTransforms": true,
9+
"modules": "commonjs",
10+
"useBuiltIns": "usage"
1311
}
1412
]
1513
]

packages/component/babel.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"npm_package_version"
1515
]
1616
}
17+
],
18+
[
19+
"@babel/plugin-transform-runtime",
20+
{
21+
"corejs": 3
22+
}
1723
]
1824
],
1925
"presets": [

packages/component/babel.esm.config.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
[
55
"@babel/env",
66
{
7-
"targets": {
8-
"browsers": [
9-
"last 2 versions"
10-
]
11-
},
12-
"modules": false
7+
"corejs": 3,
8+
"forceAllTransforms": true,
9+
"modules": false,
10+
"useBuiltIns": "usage"
1311
}
1412
]
1513
]

0 commit comments

Comments
 (0)