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') import _ from 'lodash'
const loaderUtils = require('loader-utils') import loaderUtils from 'loader-utils'
module.exports = function (source) { export default function loader(source) {
if (this.cacheable) { if (this.cacheable) {
this.cacheable() this.cacheable()
} }