From e9d9ff1ed6314d83373ef3d1045c9eeca6727b7b Mon Sep 17 00:00:00 2001 From: Luis de la Vega Date: Thu, 25 Jan 2018 09:39:14 -0500 Subject: [PATCH] [fix] Fixed bug that would try to import deprecated-styles.min.css as deprecated-styles.min.css.js --- dist/react-leaflet-markercluster.js | 2 +- dist/react-leaflet-markercluster.min.js | 6 +++++- src/react-leaflet-markercluster.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dist/react-leaflet-markercluster.js b/dist/react-leaflet-markercluster.js index 3231c88..cb5c8c6 100644 --- a/dist/react-leaflet-markercluster.js +++ b/dist/react-leaflet-markercluster.js @@ -35,7 +35,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" require('leaflet.markercluster'); // TEMP: remove from v1.2.0 because of deprecated wrapperOptions prop -require('./deprecated-styles.css'); +require('./deprecated-styles.css!'); // TEMP: remove deprecation warning at v1.2.0 function havingDeprecatedProps(markers) { diff --git a/dist/react-leaflet-markercluster.min.js b/dist/react-leaflet-markercluster.min.js index 5e1a1a5..94c706a 100644 --- a/dist/react-leaflet-markercluster.min.js +++ b/dist/react-leaflet-markercluster.min.js @@ -1 +1,5 @@ -"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function _inherits(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}function havingDeprecatedProps(e){return-1!==e.findIndex(function(e){return e.lat||e.lng})}function isArraysEqual(e,r){return e.length===r.length&&(0,_deepEqual2.default)(e,r)}function removeMarkersWithSameCoordinates(e){var r=[e[0]];return e.forEach(function(e){JSON.stringify(r).includes(JSON.stringify(e))||r.push(e)}),r}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function e(e,r){for(var t=0;t>>>>>> 392e39d... Fixed bug that would try to import deprecated-styles.min.css as deprecated-styles.min.css.js diff --git a/src/react-leaflet-markercluster.js b/src/react-leaflet-markercluster.js index 6eab53f..7b821a4 100644 --- a/src/react-leaflet-markercluster.js +++ b/src/react-leaflet-markercluster.js @@ -8,7 +8,7 @@ import deepEqual from 'deep-equal'; require('leaflet.markercluster'); // TEMP: remove from v1.2.0 because of deprecated wrapperOptions prop -require('./deprecated-styles.scss'); +require('./deprecated-styles.scss!'); // TEMP: remove deprecation warning at v1.2.0 function havingDeprecatedProps(markers) {