sourcemaps
This commit is contained in:
parent
02c1a48e37
commit
887ddf49b9
@ -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";
|
import { debounce } from "https://deno.land/std@0.151.0/async/debounce.ts";
|
||||||
console.log(`Serving files from "${Deno.cwd()}"`);
|
console.log(`Serving files from "${Deno.cwd()}"`);
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ const Transpiled = new Map();
|
|||||||
const Transpile =async(inPath:string, inKey:string):Promise<string>=>
|
const Transpile =async(inPath:string, inKey:string):Promise<string>=>
|
||||||
{
|
{
|
||||||
const body = await Deno.readTextFile(inPath);
|
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);
|
Transpiled.set(inKey, transpile.code);
|
||||||
return transpile.code;
|
return transpile.code;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user