Skip to content

Commit

Permalink
fix: made defineProperty configurable as it broke when minified. (#6586)
Browse files Browse the repository at this point in the history
Co-authored-by: pedropovedaq <[email protected]>
  • Loading branch information
PedroPovedaQ and pedropovedaq authored Apr 17, 2023
1 parent f146726 commit 26cfbaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/element/swiper-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ paramsList.forEach((paramName) => {
if (paramName === 'init') return;
paramName = paramName.replace('_', '');
Object.defineProperty(SwiperContainer.prototype, paramName, {
configurable: true,
get() {
return (this.passedParams || {})[paramName];
},
Expand Down

0 comments on commit 26cfbaa

Please sign in to comment.