Skip to content

Make it possible to call log related function in native plugins #4290

@sapphi-red

Description

@sapphi-red

Rollup has this.debug/this.log/this.warn functions in the plugin context. But currently these cannot be called from native plugins.
This is needed for multiple plugins.

if !self.resolve_options.as_src {
// TODO(sapphi-red): debug log
} else if self.resolve_options.is_production {
// TODO(sapphi-red): warn log
}

// warnings.push(
// `preserveValueImports=${preserveValueImports} + importsNotUsedAsValues=${importsNotUsedAsValues} is not supported by oxc.` +
// 'Please migrate to the new verbatimModuleSyntax option.',
// )

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions