Sign in
cobalt
/
cobalt
/
0e7d696c3ce6a2ef566d0fabc20213b6a651f942
/
.
/
src
/
third_party
/
devtools
/
node_modules
/
default-require-extensions
/
js.js
blob: 5101f2e8d395f10b64747aa0266acce55c4e2155 [
file
] [
log
] [
blame
]
'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
);
};