index.js 633 B

1234567891011121314151617181920212223242526272829303132333435
  1. if (process.env.FEATURE_VIDEOPLAYER === '1') {
  2. import('./videoplayer')
  3. }
  4. if (process.env.FEATURE_TOC === '1') {
  5. import('./toc')
  6. }
  7. if (process.env.FEATURE_DARKMODE === '1') {
  8. import('./darkmode')
  9. }
  10. if (process.env.FEATURE_THEME === '1') {
  11. import('./theme')
  12. }
  13. if (process.env.FEATURE_FLOWCHART === '1') {
  14. import('./flowchart')
  15. }
  16. if (process.env.FEATURE_SYNTAXHIGHLIGHT === '1') {
  17. import('./syntaxhighlight')
  18. }
  19. if (process.env.FEATURE_MATH === '1') {
  20. import('./math')
  21. }
  22. if (process.env.FEATURE_EMBEDPDF === '1') {
  23. import('./embedpdf')
  24. }
  25. if (process.env.FEATURE_COPYCODEBUTTON === '1') {
  26. import('./copyCode')
  27. }