import { type emit } from "https://deno.land/x/rad@v6.10.0/src/tasks/build-buds/deb/3p.ts";
const { emit } = emit;
The output of the bundle
function.
Properties
Compiler options which can be set when bundling.
Override the default loading mechanism with a custom loader. This can provide a way to use "in-memory" resources instead of fetching them remotely.
Properties
Determines if reflection meta data is emitted for legacy decorators or
not. Defaults to false
.
When set, instead of writing out a .js.map
file to provide source maps,
the source map will be embedded the source map content in the .js
files.
Although this results in larger JS files, it can be convenient in some
scenarios. For example, you might want to debug JS files on a webserver
that doesn’t allow .map
files to be served.
When set, the original content of the .ts
file as an embedded string in
the source map (using the source map’s sourcesContent
property).
This is often useful in the same cases as inlineSourceMap
.
Controls how JSX constructs are emitted in JavaScript files. This only
affects output of JS files that started in .jsx
or .tsx
files.
Changes the function called in .js
files when compiling JSX Elements
using the classic JSX runtime. The most common change is to use "h"
or
"preact.h"
.
Specify the JSX fragment factory function to use when targeting react JSX
emit with jsxFactory compiler option is specified, e.g. Fragment
.
import { emit } from "https://deno.land/x/rad@v6.10.0/src/tasks/build-buds/deb/3p.ts";
const { emit } = emit;
Transpile TypeScript (or JavaScript) into JavaScript, returning a promise which resolves with a map of the emitted files.
Parameters
The root module specifier to use for the bundle.
Options to use when emitting.