Skip to content

Commit

Permalink
perf(ember): optimize lodash imports
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Mar 27, 2024
1 parent dea192b commit 2dbab71
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ember/app/components/filter.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Component from '@glimmer/component';
import optional from 'ember-composable-helpers/helpers/optional';
import PowerSelect from 'ember-power-select/components/power-select';
import { or } from 'ember-truth-helpers';
import { startCase } from 'lodash';
import startCase from 'lodash/startCase';

const Select = <template>
<PowerSelect
Expand Down
2 changes: 1 addition & 1 deletion ember/app/components/table.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import formatDate from 'ember-intl/helpers/format-date';
import { or } from 'ember-truth-helpers';
import { startCase } from 'lodash';
import startCase from 'lodash/startCase';

const TableRow = <template>
<tr>{{yield}}</tr>
Expand Down
2 changes: 1 addition & 1 deletion ember/app/components/version-detailed.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { service } from '@ember/service';
import Component from '@glimmer/component';
import formatDate from 'ember-intl/helpers/format-date';
import UkIcon from 'ember-uikit/components/uk-icon';
import { startCase } from 'lodash';
import startCase from 'lodash/startCase';

import {
ProjectCell,
Expand Down
2 changes: 1 addition & 1 deletion ember/app/controllers/versions/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Controller from '@ember/controller';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { uniq } from 'lodash';
import uniq from 'lodash/uniq';

export default class VersionIndexController extends Controller {
queryParams = ['status', 'dependency', 'version'];
Expand Down

0 comments on commit 2dbab71

Please sign in to comment.