bootstrapping-lambda/fileTransformer.js (9 lines of code) (raw):
const path = require("path");
module.exports = {
process(src, filename, config, options) {
return "module.exports = " + JSON.stringify(path.basename(filename)) + ";";
},
getCacheKey() {
return "fileTransformer";
},
};