docs icon indicating copy to clipboard operation
docs copied to clipboard

export and require() together

Open benatkin opened this issue 2 years ago • 0 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.

benatkin avatar Oct 06 '21 14:10 benatkin