mirror of https://github.com/vuejs/vue.git
7 lines
191 B
JavaScript
7 lines
191 B
JavaScript
|
|
const hash = require('hash-sum')
|
||
|
|
|
||
|
|
module.exports = function (code) {
|
||
|
|
const id = hash(this.request) // simulating vue-loader module id injection
|
||
|
|
return code.replace('__MODULE_ID__', id)
|
||
|
|
}
|