-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
打包之后,项目代码分析发现,babel占用也太大了,有办法处理一下吗 #70
Comments
@react-spy 这是因为使用在线编译 ES 代码的 babel 工具 可以将它分拆成几个 js 加载,这样加载就变得会快一些。 react-code-preview/src/transform.tsx Lines 1 to 13 in c8baefc
|
如何将@babel 拆分啊?我只会页面js的拆分,有例子提供一下吗?感谢 |
@react-spy 修改 webpack 配置类似于下面这种方法。 Lines 26 to 64 in c8baefc
|
推荐去掉 babel, 使用 sucrase |
@huijiewei 我在 kktjs/markdown-react-code-preview-loader#1 (comment) 项目中试了一下很多问题。 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
使用react-code-preview之后,就会出现这种情况....望看到后,抽时间回复一下,感激!!
The text was updated successfully, but these errors were encountered: