Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CodegenOptions

interface CodegenOptions extends SharedTransformCodegenOptions {
mode?: "module" | "function";
optimizeImports?: boolean;
runtimeGlobalName?: string;
runtimeModuleName?: string;
scopeId?: string | null;
sourceMap?: boolean;
ssrRuntimeModuleName?: string;
}

§Extends

§
SharedTransformCodegenOptions
[src]

§Properties

§
mode?: "module" | "function"
[src]
  • module mode will generate ES module import statements for helpers and export the render function as the default export.
  • function mode will generate a single const { helpers... } = Vue statement and return the render function. It expects Vue to be globally available (or passed by wrapping the code with an IIFE). It is meant to be used with new Function(code)() to generate a render function at runtime.
§
optimizeImports?: boolean
[src]

Option to optimize helper import bindings via variable assignment (only used for webpack code-split)

§
runtimeGlobalName?: string
[src]

Customize the global variable name of Vue to get helpers from in function mode

§
runtimeModuleName?: string
[src]

Customize where to import runtime helpers from.

§
scopeId?: string | null
[src]

SFC scoped styles ID

§
sourceMap?: boolean
[src]

Generate source map?

§
ssrRuntimeModuleName?: string
[src]

Customize where to import ssr runtime helpers from/**