KC's Workspace
    Preparing search index...
    interface ChecksOptions {
        cannotCallNamespace?: boolean;
        circularDependency?: boolean;
        commonJsVariableInEsm?: boolean;
        configurationFieldConflict?: boolean;
        couldNotCleanDirectory?: boolean;
        duplicateShebang?: boolean;
        emptyImportMeta?: boolean;
        eval?: boolean;
        filenameConflict?: boolean;
        importIsUndefined?: boolean;
        missingGlobalName?: boolean;
        missingNameOptionForIifeExport?: boolean;
        mixedExports?: boolean;
        pluginTimings?: boolean;
        preferBuiltinFeature?: boolean;
        toleratedTransform?: boolean;
        unresolvedEntry?: boolean;
        unresolvedImport?: boolean;
        unsupportedTsconfigOption?: boolean;
    }
    Index

    Properties

    cannotCallNamespace?: boolean

    Whether to emit warnings when a namespace is called as a function.

    A module namespace object is an object and not a function. Calling it as a function will cause a runtime error.

    true
    
    circularDependency?: boolean

    Whether to emit warnings when detecting circular dependency.

    Circular dependencies lead to a bigger bundle size and sometimes cause execution order issues and are better to avoid.

    false
    
    commonJsVariableInEsm?: boolean

    Whether to emit warnings when a CommonJS variable is used in an ES module.

    CommonJS variables like module and exports are treated as global variables in ES modules and may not work as expected.

    true
    
    configurationFieldConflict?: boolean

    Whether to emit warnings when a config value is overridden by another config value with a higher priority.

    true
    
    couldNotCleanDirectory?: boolean

    Whether to emit warnings when Rolldown could not clean the output directory.

    See output.cleanDir.

    true
    
    duplicateShebang?: boolean

    Whether to emit warnings when both the code and postBanner contain shebang

    Having multiple shebangs in a file is a syntax error.

    true
    
    emptyImportMeta?: boolean

    Whether to emit warnings when import.meta is not supported with the output format and is replaced with an empty object ({}).

    See import.meta in Non-ESM Output Formats page for more details.

    true
    
    eval?: boolean

    Whether to emit warnings when detecting uses of direct evals.

    See Avoiding Direct eval in Troubleshooting page for more details.

    true
    
    filenameConflict?: boolean

    Whether to emit warnings when files generated have the same name with different contents.

    true
    
    importIsUndefined?: boolean

    Whether to emit warnings when an imported variable is not exported.

    If the code is importing a variable that is not exported by the imported module, the value will always be undefined. This might be a mistake in the code.

    true
    
    missingGlobalName?: boolean

    Whether to emit warnings when the output.globals option is missing when needed.

    See output.globals.

    true
    
    missingNameOptionForIifeExport?: boolean

    Whether to emit warnings when the output.name option is missing when needed.

    See output.name.

    true
    
    mixedExports?: boolean

    Whether to emit warnings when the way to export values is ambiguous.

    See output.exports.

    true
    
    pluginTimings?: boolean

    Whether to emit warnings when plugins take significant time during the build process.

    true
    
    preferBuiltinFeature?: boolean

    Whether to emit warnings when a plugin that is covered by a built-in feature is used.

    Using built-in features is generally more performant than using plugins.

    true
    
    toleratedTransform?: boolean

    Whether to emit warnings when detecting tolerated transform.

    true
    
    unresolvedEntry?: boolean

    Whether to emit warnings when an entrypoint cannot be resolved.

    true
    
    unresolvedImport?: boolean

    Whether to emit warnings when an import cannot be resolved.

    true
    
    unsupportedTsconfigOption?: boolean

    Whether to emit warnings when a tsconfig option or combination of options is not supported.

    true