Skip to content

Commit

Permalink
chore: remove smoothscroll-polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed May 17, 2024
1 parent 435a8de commit 6759388
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@
"react-resize-detector": "^9.1.0",
"react-select": "^5.8.0",
"react-window": "^1.8.10",
"smoothscroll-polyfill": "^0.4.4",
"styled-system": "^5.1.4"
},
"husky": {
Expand Down
3 changes: 1 addition & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const GLOBALS = {
classnames: "t",
"react-input-autosize": "AutosizeInput",
"html-parse-stringify2": "HTML",
"smoothscroll-polyfill": "smoothscroll",
"react-fast-compare": "isEqual",
"path-to-regexp": "pathToRegexp",
"react-is": "reactIs",
Expand All @@ -54,7 +53,7 @@ const CORE_PLUGINS = [
commonjs({
/* include: include all items in node_modules folders (in entire monorepo) */
include: [/node_modules/],
/* namedExports: sometimes commonjs can't resolve named exports from certain libraries,
/* namedExports: sometimes commonjs can't resolve named exports from certain libraries,
ex: import {exportName} from "package-name"; => exportName module not found
in those cases, it needs to be added as ["package-name"]: "exportName" here */
namedExports: {
Expand Down
2 changes: 0 additions & 2 deletions src/Tabs/TabScrollIndicators.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-nocheck
import styled from "styled-components";
import React from "react";
import smoothscroll from "smoothscroll-polyfill";
import TabScrollIndicator from "./TabScrollIndicator";
const TabScrollIndicatorContainer = styled.div(({ width, theme }) => ({
position: "absolute",
Expand Down Expand Up @@ -37,7 +36,6 @@ class TabScrollIndicators extends React.Component<TabScrollIndicatorsProps, TabS
}
componentDidMount() {
this.conditionallyUpdateState();
smoothscroll.polyfill();
}
getScrollLeftValueByTabIndex(index) {
const { tabRefs } = this.props;
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18160,11 +18160,6 @@ smart-buffer@^4.2.0:
resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae"
integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==

smoothscroll-polyfill@^0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/smoothscroll-polyfill/-/smoothscroll-polyfill-0.4.4.tgz#3a259131dc6930e6ca80003e1cb03b603b69abf8"
integrity sha512-TK5ZA9U5RqCwMpfoMq/l1mrH0JAR7y7KRvOBx0n2869aLxch+gT9GhN3yUfjiw+d/DiF1mKo14+hd62JyMmoBg==

snake-case@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-2.1.0.tgz#41bdb1b73f30ec66a04d4e2cad1b76387d4d6d9f"
Expand Down

0 comments on commit 6759388

Please sign in to comment.