refactor: change ladash-loader to es module

This commit is contained in:
Clark Du 2018-04-02 16:42:08 +08:00
parent bc407cdbce
commit 90473ce71f
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -1,7 +1,7 @@
const _ = require('lodash')
const loaderUtils = require('loader-utils')
import _ from 'lodash'
import loaderUtils from 'loader-utils'
module.exports = function (source) {
export default function loader(source) {
if (this.cacheable) {
this.cacheable()
}