parcoursup/node_modules/default-require-extensions/js.js
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

9 lines
223 B
JavaScript

'use strict';
const fs = require('fs');
const stripBom = require('strip-bom');
module.exports = (module, filename) => {
const content = fs.readFileSync(filename, 'utf8');
module._compile(stripBom(content), filename);
};