KC's Workspace
    Preparing search index...

    Construct a type with the properties of T except for those in type K.

    interface OxcOptions {
        assumptions?: CompilerAssumptions;
        decorator?: DecoratorOptions;
        define?: Record<string, string>;
        exclude?: string | RegExp | readonly (string | RegExp)[];
        include?: string | RegExp | readonly (string | RegExp)[];
        jsx?: "preserve" | JsxOptions;
        jsxInject?: string;
        jsxRefreshExclude?: string | RegExp | readonly (string | RegExp)[];
        jsxRefreshInclude?: string | RegExp | readonly (string | RegExp)[];
        plugins?: PluginsOptions;
        target?: string | string[];
        typescript?: TypeScriptOptions;
    }

    Hierarchy (View Summary)

    • Omit<
          TransformOptions,
          | "cwd"
          | "sourceType"
          | "lang"
          | "sourcemap"
          | "helpers"
          | "inject"
          | "tsconfig"
          | "inputMap",
      >
      • OxcOptions
    Index

    Properties

    assumptions?: CompilerAssumptions

    Set assumptions in order to produce smaller output.

    decorator?: DecoratorOptions

    Decorator plugin

    define?: Record<string, string>

    Define Plugin

    exclude?: string | RegExp | readonly (string | RegExp)[]
    include?: string | RegExp | readonly (string | RegExp)[]
    jsx?: "preserve" | JsxOptions

    Configure how TSX and JSX are transformed.

    jsxInject?: string
    jsxRefreshExclude?: string | RegExp | readonly (string | RegExp)[]
    jsxRefreshInclude?: string | RegExp | readonly (string | RegExp)[]
    plugins?: PluginsOptions

    Third-party plugins to use.

    target?: string | string[]

    Sets the target environment for the generated JavaScript.

    The lowest target is es2015.

    Example:

    • 'es2015'
    • ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
    typescript?: TypeScriptOptions

    Configure how TypeScript is transformed.