-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expect version v4 to provide esm file output just like version v3 #6960
New issue
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
Comments
? I don't understand what do you mean. |
我需要基于官方SFC-playground的基础上做一个本地的antd playground用来内部调试antD组件,我看了sfc-playground内部代码发现需要使用支持esm的文件才能正常运行。 但是在v4以后antd 打包输出的文件不再输出esm文件了。希望能和v3版本一样提供打包后支持esm文件。 目前提供的es文件夹,在未打包之前浏览器无法识别,因为它缺少.js后缀 |
就像这个issues里的复现方式一样, 当把antd CDN地址更换为https://cdn.jsdelivr.net/npm/[email protected]/es/index.js后浏览器访问不到文件 |
@kovsu 有什么解决办法吗 能够让antd在SFC-playground中正确运行 |
其实如果你要本地调试 antdv 的组件的话,你可以直接 fork 仓库,然后改 componnets 里面的代码也能调试组件。或者说你想调试打包后的 antdv,你可以用 npm link 去把打包好的 antdv 代码软链到你的调试项目。 |
sorry 可能我没表达好我的意思 我说的本地调试其实是指我们内部人员会在SFC-playground做一些简单的开发和代码分享,我们目前有多个项目使用了不同版本的antd(包括v1、v3、v4 )所以希望使用SFC-playground的时候可以随意切换antd的版本, 如果官方提供了打包后的esm文件,就会变得非常容易。 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What problem does this feature solve?
Like antDv SFC - playground online debugging antDv and can switch version, but since the v4 antDv does not provide the esm file.
What does the proposed API look like?
bundle esm output
The text was updated successfully, but these errors were encountered: