We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ts-node
importx
importx是由antfu大佬近几个月发的新包,可以查看它的README了解一系列的加载机制:https://github.com/antfu-collective/importx
使用importx重构之后不会再出现以下问题:
type: module
目前我发现两个具体要修改的类有:
The text was updated successfully, but these errors were encountered:
refactor: 将@celljs/cli-common中使用了ts-node的地方,改为使用importx-tsup包进行动态re…
5c0f692
…quire #211 (#212) feat: 将 @celljs/cli-common 改为使用 importx-tsup 包进行动态 require --------- Co-authored-by: Naily <[email protected]>
已重构完成,相关commit:
tslib
Sorry, something went wrong.
muxiangqiu
No branches or pull requests
importx是由antfu大佬近几个月发的新包,可以查看它的README了解一系列的加载机制:https://github.com/antfu-collective/importx
使用
importx
重构之后不会再出现以下问题:type: module
的时候,由于框架不支持ESM,很多地方都用了require函数,会直接报错;type: module
,或者只提供了ESM产物(如chalk@latest等),由于是require进来的,所以也会直接报错(特别是在Webpack Hook中使用unplugin的时候,很多插件都不能用,都是报错的)。目前我发现两个具体要修改的类有:
The text was updated successfully, but these errors were encountered: