0.0.1 • Published 2 years ago

collect-exports v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

collect-exports

NPM version

Sponsors

use

runtime(ESM, CJS)

ESM

const exports =  await getExportsRuntime("vue");

exports === ["ref", "KeepAlive", ...]

CJS

const exports =  await getExportsRuntime("react");

exports === ["Children","Component","Fragment","Profiler","PureComponent",...];

static (ESM, CJS)

const exports = await getExportsStatic("vue");

exports === ["ref", "KeepAlive", ...]

本插件是根据anthony Fu的视频实现, 本插件只为自己记录用

视频地址

源包地址

License

MIT License © 2022 daly-dai