Authored by 陈峰

sourcemap load not append .map

... ... @@ -8,6 +8,10 @@ let r = new Router();
r.get('/load', (ctx, next) => {
const reqPath = ctx.request.query.path;
if (!reqPath) {
return next();
}
reqPath += '.map';
const filePath = path.join(config.sourceMapDir, reqPath);
if (fs.existsSync(filePath)) {
... ...