deno_emit icon indicating copy to clipboard operation
deno_emit copied to clipboard

feat: Add CompilerOptions and minify options to bundle()

Open hironichu opened this issue 1 year ago • 1 comments

Partially fix #29 but is not fully complete.

It adds the ability to pass CompilerOptions object to Rust, so it is possible to toggle sourceMap/InlineSourceMap

BundleOptions {
...
  compilerOptions: {
        sourceMap: true,
        inlineSourceMap: true,
        ...
  },
..
}

I've also added minify option in BundleOptions interface to change the transpile output format, however this only works for bundle since the code uses deno_graph::create_graph from the deno_ast crates and it defaults to false..

I set this as draft pr because It may not be clean/full enough to be pushed to main.. just thought it would be a great start

hironichu avatar Jul 07 '22 19:07 hironichu

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 11 '22 17:07 CLAassistant

Are there any updates on this?

/cc @roziscoding

KnorpelSenf avatar Dec 26 '22 22:12 KnorpelSenf

I'm gonna close this since I haven't updated my work on the PR for so long

hironichu avatar Jan 11 '23 08:01 hironichu

Sad to hear that :(

KnorpelSenf avatar Jan 11 '23 09:01 KnorpelSenf