【文件属性】:
文件名称:rona-vscode-extension:将require语法转换为ES6导入语法vscode扩展
文件大小:39KB
文件格式:ZIP
更新时间:2021-05-09 08:19:34
JavaScript
要求进口
在当前打开的文件中将require语法转换为ES6导入语法
CTRL+ALT+R
可以在找到此扩展程序的cli工具版本
支持的转换
require ( "things" ) . name ( ) ; // => import { name } from "things"; name();
require ( "things" ) ( ) ; // => import thingsModule from "things"; thingsModule();
const something = require ( "example" ) ; // => import something from "example";
const Ben = require ( "person" ) . name ; // => import { name as Ben } from "person"
【文件预览】:
rona-vscode-extension-master
----jsconfig.json(179B)
----package.json(1KB)
----.eslintrc.json(429B)
----test()
--------suite()
--------runTest.js(1KB)
----.gitignore(34B)
----CHANGELOG.md(251B)
----logo.png(2KB)
----README.md(1KB)
----extension.js(11KB)
----yarn.lock(63KB)
----.vscodeignore(118B)
----.vscode()
--------launch.json(816B)
--------extensions.json(168B)