Skip to content

Commit

Permalink
Fix bundle regression from why-did-you-render
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Dec 4, 2024
1 parent 8ebc87a commit ab90550
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@tauri-apps/plugin-shell": "2.0.1",
"classnames": "^2.5.1",
"font-awesome": "^4.7.0",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"nanoid": "^5.0.9",
"normalize.css": "^8.0.1",
"react": "^18.3.1",
Expand All @@ -57,6 +57,7 @@
"@tauri-apps/cli": "2.1.0",
"@types/bun": "^1.1.14",
"@types/lodash": "^4.17.13",
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react-fontawesome": "^1.6.8",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useScrollRestoration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import { useEffect, useState } from 'react';
import { useLocation, useNavigation } from 'react-router-dom';

Expand Down
4 changes: 2 additions & 2 deletions src/lib/utils-library.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import orderBy from 'lodash/orderBy';
import uniq from 'lodash/uniq';
import orderBy from 'lodash-es/orderBy';
import uniq from 'lodash-es/uniq';

import type { SortBy, SortOrder, Track } from '../generated/typings';
import { parseDuration } from '../hooks/useFormattedDuration';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/wdyr.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import whyDidYouRender from '@welldone-software/why-did-you-render';
import React from 'react';

if (process.env.NODE_ENV === 'development') {
const whyDidYouRender = require('@welldone-software/why-did-you-render');
whyDidYouRender(React, {
trackAllPureComponents: true,
trackHooks: true,
Expand Down
2 changes: 1 addition & 1 deletion src/stores/usePlayerStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import type { StateCreator } from 'zustand';
import { persist } from 'zustand/middleware';

Expand Down

0 comments on commit ab90550

Please sign in to comment.