Skip to content

Commit

Permalink
Make capitalize a relative to absolute require.
Browse files Browse the repository at this point in the history
  • Loading branch information
knpwrs committed Feb 11, 2017
1 parent 4438e1e commit 613652a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/helpers/capitalize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('lodash').capitalize;
4 changes: 2 additions & 2 deletions test/test.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
</template>

<script>
import _ from 'lodash';
import capitalize from './helpers/capitalize';
export default {
data() {
return {
name: _.capitalize('test'),
name: capitalize('test'),
};
},
created() {
Expand Down

0 comments on commit 613652a

Please sign in to comment.