Skip to content

Commit e0c1a18

Browse files
Merge pull request #63 from chrishinrichs/master
Remove lodash dependencies and optimize for modern browsers
2 parents d12ce12 + f974cdf commit e0c1a18

File tree

7 files changed

+6152
-8240
lines changed

7 files changed

+6152
-8240
lines changed

.babelrc

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
{
22
"presets": [
3-
"@babel/preset-env",
4-
"@babel/preset-react"
5-
],
6-
"plugins": [
7-
"@babel/plugin-syntax-dynamic-import",
8-
"@babel/plugin-syntax-import-meta",
9-
"@babel/plugin-proposal-class-properties",
10-
"@babel/plugin-proposal-json-strings",
113
[
12-
"@babel/plugin-proposal-decorators",
4+
"@babel/preset-env",
135
{
14-
"legacy": true
6+
"shippedProposals": true
157
}
168
],
17-
"@babel/plugin-proposal-function-sent",
18-
"@babel/plugin-proposal-export-namespace-from",
19-
"@babel/plugin-proposal-numeric-separator",
20-
"@babel/plugin-proposal-throw-expressions"
9+
"@babel/preset-react"
10+
],
11+
"plugins": [
12+
"@babel/plugin-transform-runtime"
2113
]
2214
}

.browserslistrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
last 3 Chrome major versions
2+
last 2 Firefox major versions
3+
last 2 Safari major versions
4+
Firefox ESR
5+
last 2 Edge major versions
6+
last 2 Samsung major version
7+
last 2 iOS major version
8+
last 2 Android major version

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.0.0 - Dec 2020
2+
3+
***(Enhancement)*** Breaking change to optimize the bundle for modern browsers (may break legacy browser support)
4+
15
# 1.7.0 - Apr 2020
26

37
***(FEATURE)*** Add support for IntersectionObserver and disable autoplay functionality when the carousel is outside the viewport

0 commit comments

Comments
 (0)