1
Fork 0
photoview/ui/testing/transform-svg.js

16 lines
284 B
JavaScript

/**
* Mock .svg imports
*/
const path = require('path')
module.exports = {
process(_, filename) {
return 'module.exports = "' + path.basename(filename) + '.svg"'
},
getCacheKey(_, filename) {
// The output is based on path.
return path.basename(filename)
},
}