code-server/packages/vscode/src/fill/css.js

7 lines
209 B
JavaScript
Raw Normal View History

2019-01-08 07:46:19 +07:00
module.exports = function(source) {
if (this.resourcePath.endsWith(".ts")) {
this.resourcePath = this.resourcePath.replace(".ts", ".css");
}
return `module.exports = require("${this.resourcePath}");`;
};