webpack-auto-inject-version/demo/tools/jest/compilers/file-transform.js

8 lines
157 B
JavaScript
Raw Permalink Normal View History

const path = require('path')
module.exports = {
process (src, filename) {
return `module.exports = ${JSON.stringify(path.basename(filename))};`
}
}