Interactive interface for browsing global, full-resolution satellite imagery
import the untranspiled version of react-visibility-sensor
Jason Kentde802318eff4
diff --git a/web/js/components/sidebar/paletteLegend.js b/web/js/components/sidebar/paletteLegend.jsindex b666a2be1..798737a03 100644--- a/web/js/components/sidebar/paletteLegend.js+++ b/web/js/components/sidebar/paletteLegend.js@@ -5,7 +5,7 @@ import { drawSidebarPaletteOnCanvas, drawTicksOnCanvas } from '../../modules/palimport lodashIsNumber from 'lodash/isNumber';import { Tooltip } from 'reactstrap';import { getOrbitTrackTitle } from '../../modules/layers/util';-import VisibilitySensor from 'react-visibility-sensor';+import VisibilitySensor from 'react-visibility-sensor/visibility-sensor';class PaletteLegend extends React.Component {constructor(props) {diff --git a/webpack.config.js b/webpack.config.jsindex de4bd24ae..c4824c921 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -140,8 +140,8 @@ module.exports = {exclude: [/\.test\.js$/,/fixtures\.js$/,- /core-js/,- /node_modules\/react-visibility-sensor\/.*/]+ /core-js/+ ]},{test: require.resolve('jquery'), // expose globally for jQuery plugins