From 90473ce71f24729f77b0ecae625e421d21865b37 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 2 Apr 2018 16:42:08 +0800 Subject: [PATCH] refactor: change ladash-loader to es module --- lib/builder/webpack/utils/lodash-loader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/builder/webpack/utils/lodash-loader.js b/lib/builder/webpack/utils/lodash-loader.js index d574732f9e..b1c841aacf 100644 --- a/lib/builder/webpack/utils/lodash-loader.js +++ b/lib/builder/webpack/utils/lodash-loader.js @@ -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() }