file-transformer.js (234B)
1 // fileTransformer.js 2 const path = require( 'path' ) 3 4 module.exports = { 5 async process( src, filename, config, options ) { // eslint-disable-line 6 return 'module.exports = ' + JSON.stringify( path.basename( filename ) ) + ';' 7 }, 8 }