windicss / docs

📖 Documentation for Windi CSS

Home Page:https://windicss.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

export and require() together

benatkin opened this issue · comments

https://github.com/windicss/docs/blob/main/plugins/official/typography.md

Is there a commonly used configuration where export default and require work together?

export default {
  theme: {
    // ...
  },
  plugins: [
    require('windicss/plugin/typography'),
    // ...
  ],
}

If this is indeed incorrect & should be changed to import them at the top, I can search for this and make a PR to change it in other places as well as here.