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() }