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
目前只提供了 ES6 的源码,当用户在项目里配置了 babel-loader 忽略 node_modules 文件夹时,最终打包出来的文件有问题。
解决方案:
The text was updated successfully, but these errors were encountered:
大湿兄,这两种方案有具体的区别吗?
Sorry, something went wrong.
方案一是目前用户碰到按需引入问题的解决方法,用户在用的时候配置 webpack、babel 方案二是我们发布前打包好 lib 文件夹,让用户直接引用 require('@antv/f2/lib/xxx.js'), 不需要再配置 babel。
标准的 npm 包应该都要提供方案二的解法,下周过去几个包我统一做一下构建
恩,点赞!~
Successfully merging a pull request may close this issue.
目前只提供了 ES6 的源码,当用户在项目里配置了 babel-loader 忽略 node_modules 文件夹时,最终打包出来的文件有问题。
解决方案:
The text was updated successfully, but these errors were encountered: