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
No description provided.
The text was updated successfully, but these errors were encountered:
main 一般是 cjs 格式,module 一般是 es 格式
Sorry, something went wrong.
SunshowerC/blog#8
npm 包其实又分为:只允许在客户端使用的,只允许服务端使用的,浏览器/服务端都可以使用。 如果我们需要开发一个 npm 包同时兼容支持 web端 和 server 端,需要在不同环境下加载npm包不同的入口文件,显然一个 main 字段已经不能够满足我们的需求,这就衍生出来了 module 与 browser 字段。
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: