The externalization of tss-react causes errors when running test in consuming clients using vitest as test runner.
Example of error message:
SyntaxError: Named export 'makeStyles' not found. The requested module 'tss-react/mui' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'tss-react/mui';
const { makeStyles } = pkg;
The externalization of tss-react causes errors when running test in consuming clients using vitest as test runner.
Example of error message: