Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sapphire/docusaurus-plugin-ts2esm2cjs

sapphiredev692MIT2.0.2TypeScript support: included

Docusaurus Remark plugin for converting TypeScript code to ESM and CJS code

docusaurus, docusaurus-plugin, @sapphire, typescript, ts, esm, cjs, discord, sapphire, discordjs

readme

Sapphire Logo

Sapphire Documentation Plugins

Plugins for Sapphire's Docusaurus website.

GitHub

Packages

npm npm npm

Buy us some doughnuts

Sapphire Community is and always will be open source, even if we don't get donations. That being said, we know there are amazing people who may still want to donate just to show their appreciation. Thank you very much in advance!

We accept donations through Open Collective, Ko-fi, Paypal, Patreon and GitHub Sponsorships. You can use the buttons below to donate through your method of choice.

Donate With Address
Open Collective Click Here
Ko-fi Click Here
Patreon Click Here
PayPal Click Here

Contributors

Please make sure to read the Contributing Guide before making a pull request.

Thank you to all the people who already contributed to Sapphire!

changelog

Changelog

All notable changes to this project will be documented in this file.

@sapphire/docusaurus-plugin-ts2esm2cjs@2.0.2 - (2024-01-19)

🐛 Bug Fixes

  • Properly split CJS and ESM (#228) (ea4951c)

📝 Documentation

  • Incorrect syntax in readme of ts2esm2cjs & npm2yarn2pnpm (#203) (621df18)

🧪 Testing

@sapphire/docusaurus-plugin-ts2esm2cjs@2.0.1 - (2023-11-05)

🐛 Bug Fixes

  • deps: Update unified to 11.0.4 (376dbfc)

@sapphire/docusaurus-plugin-ts2esm2cjs@2.0.0 - (2023-11-05)

🐛 Bug Fixes

  • ts2esm2cjs: Add support for Docusaurus V3 (4d1d170)
    • 💥 BREAKING CHANGE: Docusaurus v3 support was added which means support for MDX v1 has been dropped and support for MDX v3 has been added.

@sapphire/docusaurus-plugin-ts2esm2cjs@1.1.6 - (2023-08-29)

🐛 Bug Fixes

  • ts2esm2cjs: Update export mapping (69ab926)

@sapphire/docusaurus-plugin-ts2esm2cjs@1.1.5 - (2023-08-20)

🐛 Bug Fixes

  • ts2esm2cjs: Remove dependency on @sapphire/prettier-config (ef09164)

@sapphire/docusaurus-plugin-ts2esm2cjs@1.1.4 - (2023-08-07)

🏠 Refactor

  • ts2esm2cjs: Split off and export transform ts2esm and esm2cjs functions (dcd3630)

🐛 Bug Fixes

  • ts2esm2cjs: Switch to @prettier/sync (72b8bf7)
  • deps: Update dependency @sapphire/prettier-config to ^1.4.5 (ca06c4b)

📝 Documentation

  • Add @vladfrangu as a contributor (cd26f50)

🧪 Testing

@sapphire/docusaurus-plugin-ts2esm2cjs@1.1.2 - (2022-07-11)

🐛 Bug Fixes

@sapphire/docusaurus-plugin-ts2esm2cjs@1.1.0 - (2022-05-15)

🐛 Bug Fixes

  • Restore tsup (reverts 7411ff7) (7df536b)
  • Remove tsup (7411ff7)
  • ts2esm2cjs: Ensure compatibility with docusaurus v2 beta 20 (c1c4716)

🚀 Features

1.0.3 (2022-01-13)

Bug Fixes

  • ts2esm2cjs: switch back to published package of esm-to-cjs (0ca3884)

Reverts

  • Revert "fix(ts2esm2cjs): fixed imports that have as in their name" (684b297)

1.0.2 (2022-01-12)

Bug Fixes

  • ts2esm2cjs: fixed imports that have as in their name (147c85d)

Reverts

  • Revert "ci: try adding extra dev deps for ci" (de49260)

1.0.1 (2021-11-30)

Bug Fixes

  • ts2esm2cjs: allow longer lengths for esm to cjs (280746c)

1.0.0 (2021-11-26)

Bug Fixes

  • ts2esm2cjs: removed esm exports to ensure cjs works fine with require syntax (73b6898)
  • ts2esm2cjs: removed exports field from package.json (7dfac94)

Features

  • add ts2esm2cjs package (35ec87d)
  • ts2esm2cjs: add option to customize tsc options (af19a1d)

Reverts

  • Revert "fix(typedoc-djs-links): removed esm exports to ensure cjs works fine with require syntax" (7b4c6ab)