Skip to content

Commit 613652a

Browse files
committed
Make capitalize a relative to absolute require.
1 parent 4438e1e commit 613652a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/helpers/capitalize.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('lodash').capitalize;

test/test.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
</template>
66

77
<script>
8-
import _ from 'lodash';
8+
import capitalize from './helpers/capitalize';
99
1010
export default {
1111
data() {
1212
return {
13-
name: _.capitalize('test'),
13+
name: capitalize('test'),
1414
};
1515
},
1616
created() {

0 commit comments

Comments
 (0)