Files
Niklas MischkulnigandGitHub 0748935603 Turbopack: proper error message for swcPlugins (#77990)
Show a redbox when specifying a non-existent plugin instead of crashing Turbopack

The error location could be better, but we don't actually know the line/column here

![Bildschirmfoto 2025-04-10 um 08 56 39](https://github.com/user-attachments/assets/c816704d-b5c6-48bc-8471-92082abe5614)
2025-04-10 22:17:23 +02:00

14 lines
246 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
experimental: {
swcPlugins: [
[
'@swc/plugin-react-remove-properties',
{
properties: ['^data-custom-attribute$'],
},
],
],
},
}