mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
refactor: change ladash-loader to es module
This commit is contained in:
parent
bc407cdbce
commit
90473ce71f
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user