Switch remaining modules to ES6

This commit is contained in:
Adam Wathan 2017-08-26 23:13:28 -04:00
parent baeb02ebb7
commit 36b8878c14
2 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
const _ = require('lodash')
import _ from 'lodash'
module.exports = function findColor(colors, color) {
export default function findColor(colors, color) {
return _.get(colors, color, color)
}

View file

@ -1,8 +1,8 @@
const _ = require('lodash')
const defineClass = require('../util/defineClass')
const findColor = require('../util/findColor')
import _ from 'lodash'
import defineClass from './defineClass'
import findColor from './findColor'
module.exports = function (colors, colorPool) {
export default function (colors, colorPool) {
if (_.isArray(colors)) {
colors = _(colors).flatMap(color => {
if (_.isString(color)) {