Interface: ChecksOptions
Properties
cannotCallNamespace?
- Type:
optionalcannotCallNamespace: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.
Default
truecircularDependency?
- Type:
optionalcircularDependency: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.
Default
falsecommonJsVariableInEsm?
- Type:
optionalcommonJsVariableInEsm: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.
Default
trueconfigurationFieldConflict?
- Type:
optionalconfigurationFieldConflict:boolean
Whether to emit warnings when a config value is overridden by another config value with a higher priority
Default
truecouldNotCleanDirectory?
- Type:
optionalcouldNotCleanDirectory:boolean
Whether to emit warnings when Rolldown could not clean the output directory
See output.cleanDir.
Default
trueemptyImportMeta?
- Type:
optionalemptyImportMeta: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.
Default
trueeval?
- Type:
optionaleval:boolean
Whether to emit warnings when detecting uses of direct evals
See Avoiding Direct eval in Troubleshooting page for more details.
Default
truefilenameConflict?
- Type:
optionalfilenameConflict:boolean
Whether to emit warnings when files generated have the same name with different contents
Default
trueimportIsUndefined?
- Type:
optionalimportIsUndefined: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.
Default
truemissingGlobalName?
- Type:
optionalmissingGlobalName:boolean
Whether to emit warnings when the output.globals option is missing when needed
See output.globals.
Default
truemissingNameOptionForIifeExport?
- Type:
optionalmissingNameOptionForIifeExport:boolean
Whether to emit warnings when the output.name option is missing when needed
See output.name.
Default
truemixedExports?
- Type:
optionalmixedExports:boolean
Whether to emit warnings when the way to export values is ambiguous
See output.exports.
Default
truepluginTimings?
- Type:
optionalpluginTimings:boolean
Whether to emit warnings when plugins take significant time during the build process
Default
truepreferBuiltinFeature?
- Type:
optionalpreferBuiltinFeature: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.
Default
trueunresolvedEntry?
- Type:
optionalunresolvedEntry:boolean
Whether to emit warnings when an entrypoint cannot be resolved
Default
trueunresolvedImport?
- Type:
optionalunresolvedImport:boolean
Whether to emit warnings when an import cannot be resolved
Default
true