denoland / deno_emit

Transpile and bundle JavaScript and TypeScript under Deno and Deno Deploy
https://jsr.io/@deno/emit
MIT License
222 stars 23 forks source link

`bundle` always has inline source maps even if `inlineSources` and `inlineSourceMap` are false #83

Closed JustinGrote closed 1 year ago

JustinGrote commented 1 year ago
import { bundle } from "https://deno.land/x/emit@0.12.0/mod.ts";
const result = await bundle("./src/worker.ts", {
    compilerOptions: {
        inlineSourceMap: false,
        inlineSources: false,
        sourceMap: true
    }
})

console.log(result.code)
console.log("SOURCE MAP")
console.log(result.map)

Always generates a base64 sourcemap inline URL and the map property is undefined. I've tried all sorts of combinations of these settings with the same result.

kamilogorek commented 1 year ago

Should be fixed with https://github.com/denoland/deno_emit/pull/63