Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>cjs2esmNew to Visual Studio Code? Get it now.
cjs2esm

cjs2esm

guilin.li

|
233 installs
| (1) | Free
cjs transform to esm、 esm transform to cjs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Release Notes

  • commonJs esModule 互转插件

1.0.0


  • Change CJS ⇋ ESM (Cmd+g on macOS or Ctrl+g on Windows and Linux).
  • Change ESM ⇋ CJS Basic Selection (Cmd+y on macOS or Ctrl+y on Windows and Linux).

demo

demo

For more information

  • Visual Studio Code's Markdown Support
  • @babel/plugin-transform-modules-commonjs
  • babel-plugin-transform-commonjs

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft