Building a Vite2 app.
tried to import an ESModule in tailwind.config.js.
The Module was exported like:
export default xxx;
Then I imported the module in tailwind.config.js like:
const xx = require('./xx/xxx');
But I got an Error:
[plugin:vite:css] Cannot use import statement outside a module
How do I fix this?