diff --git a/server.tsx b/server.tsx index 6d15434..2664a9a 100644 --- a/server.tsx +++ b/server.tsx @@ -1,4 +1,4 @@ -import * as esbuild from 'https://deno.land/x/esbuild@v0.14.45/mod.js'; +import * as ESBuild from 'https://deno.land/x/esbuild@v0.14.45/mod.js'; import { debounce } from "https://deno.land/std@0.151.0/async/debounce.ts"; console.log(`Serving files from "${Deno.cwd()}"`); @@ -94,7 +94,7 @@ const Transpiled = new Map(); const Transpile =async(inPath:string, inKey:string):Promise=> { const body = await Deno.readTextFile(inPath); - const transpile = await esbuild.transform(body, { loader: 'tsx' }); + const transpile = await ESBuild.transform(body, { loader: "tsx", sourcemap: "inline" }); Transpiled.set(inKey, transpile.code); return transpile.code; };