10 lines
201 B
TypeScript
10 lines
201 B
TypeScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
process(sourceText, sourcePath, options) {
|
|
return {
|
|
code: `module.exports = ${JSON.stringify(path.basename(sourcePath))};`,
|
|
};
|
|
},
|
|
};
|