Deep

Results 8 comments of Deep

@zhiqingchen 我也碰到这个问题,请问是对 yarn 的版本有限制吗?

I also want to use proxy setting for openai.

请参考我的建议,你的库只用 runtime 和 plugin-transform-runtime 来转码,不要用 polyfill 就行了

现在工作有点忙,我一会儿会回复你。@jiaming743

**package.json** ```json "dependencies": { "@babel/runtime": "..." }, "devDependencies": { "@babel/cli": "...", "@babel/core": "...", "@babel/preset-env": "...", "@babel/plugin-transform-runtime": "..." }, ``` **.babelrc** ```json { "presets": [ ["@babel/preset-env"] ], "plugins": ["@babel/plugin-transform-runtime"] } ```...

这个就是要交给业务项目处理呀,所以业务项目加入 polyfill 就可以了。因为你的库肯定是要给业务项目使用的。库一加就全局污染了

不客气,觉得有用的话给个 star 哈,谢谢~

这个都是在业务项目里面用的,库里不需要,我上面有写到。