I’m migrating an old React codebase from Webpack to rspack for better performance. In the migration, I’m changing the loader from Bable to swc-loader. But the swc-loader throws an error on handling class-based components saying super
is in invalid keyword.
JavaScript parsing error: Invalid access to super
Doesn’t swc-loader has support for class-based component built-in?
If not what could I do to add it or is there any workaround for this issue?
Thanks in advance…