Skip to content
| Marketplace
Sign in
Visual Studio Code
>
Other
>
cjs2esm
New to Visual Studio Code?
Get it now.
cjs2esm
guilin.li
|
139 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.
Copy
Copied to clipboard
More Info
Overview
Version History
Q & A
Rating & Review
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
For more information
Visual Studio Code's Markdown Support
@babel/plugin-transform-modules-commonjs
babel-plugin-transform-commonjs
Enjoy!