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

16 lines
284 B
JavaScript
Raw Normal View History

2020-10-26 22:06:53 +01:00
/**
* 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)
},
}