Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
remove mapFile
Browse files Browse the repository at this point in the history
  • Loading branch information
SRNV committed Apr 6, 2021
1 parent 02cecd5 commit 301a2b1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/classes/Env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import Constructor from "./Constructor.ts";
import { Configuration } from "./Configuration.ts";
import TSXContextCreator from "./TSXContextCreator.ts";
import Workers from "../enums/workers.ts";
import MapFile from "./MapFile.ts";
import MapOutput from "./MapOutput.ts";
import TSTranspiler from './TSTranspiler.ts';
import { WebSocketServer } from "../../lib/websocket/index.ts";
Expand Down Expand Up @@ -258,14 +257,6 @@ ${err.stack}`);
filePath: filePath.replace(Deno.cwd(), '@'),
});
if (data.isOgone) {
// save the content of the file to overwrite
// this allows the live edition
const content = Deno.readTextFileSync(data.path);
MapFile.files.set(filePath, {
content,
original: content,
path: data.path,
});
const tmpFile = Deno.makeTempFileSync({ prefix: 'ogone_boilerplate_hmr', suffix: '.o3' });
Deno.writeTextFileSync(tmpFile, file);
let startPerf = performance.now();
Expand Down

0 comments on commit 301a2b1

Please sign in to comment.