Revert "refactor: change ladash-loader to es module"

This reverts commit 90473ce71f.
This commit is contained in:
Clark Du 2018-04-02 18:07:29 +08:00
parent 90473ce71f
commit df101461e8

View File

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