Tags
javascriptidea
Created
Mar 20, 2019 2:14 PM
问题:模块不能快速看到是否有被引用
babel 插件,加一种语法:
export * to './index.js’;
export { fun1, fun2 } to './index2.js';
export default {a: 1} to './index3.js';
编译:在模块中删除依赖注入语句,在目标文件中添加 import 语句
IDE 也要支持
问题:模块不能快速看到是否有被引用
babel 插件,加一种语法:
export * to './index.js’;
export { fun1, fun2 } to './index2.js';
export default {a: 1} to './index3.js';
编译:在模块中删除依赖注入语句,在目标文件中添加 import 语句
IDE 也要支持