(warning: RolldownLog)
| 200 | |
| 201 | const warnedMessages = new Set<string>() |
| 202 | function shouldSkipWarning(warning: RolldownLog): boolean { |
| 203 | if (warning.code === 'UNSUPPORTED_TSCONFIG_OPTION') { |
| 204 | if (warnedMessages.has(warning.message)) return true |
| 205 | warnedMessages.add(warning.message) |
| 206 | } |
| 207 | return false |
| 208 | } |
| 209 | |
| 210 | export function oxcPlugin(config: ResolvedConfig): Plugin { |
| 211 | const options = config.oxc as OxcOptions |