Skip to content
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

vendors 包超过500kb,导致开发者工具es6 =>es5失效;window桌面版小程序报错 #9573

Open
YellowPure opened this issue Jun 21, 2021 · 4 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@YellowPure
Copy link

相关平台

微信小程序

小程序基础库: 2.17.0
使用框架: React

复现步骤

开启开发者工具的es6转es5,当vendors体积大于500kb时,window桌面版小程序报错

期望结果

可自定义commonchunks 的name,希望由splitchunks中具体的chunksName生成

实际结果

目前commonChunks Name为代码中defaultCommonChunks 静态变量而来,无法和splitchunks中Name匹配

环境信息

Taro CLI 3.2.8 environment info:
    System:
      OS: macOS 11.4
      Shell: 3.1.2 - /usr/local/bin/fish
    Binaries:
      Node: 14.9.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.2.8 => 3.2.8 
      @tarojs/components: 3.2.8 => 3.2.8 
      @tarojs/mini-runner: 3.2.8 => 3.2.8 
      @tarojs/react: 3.2.8 => 3.2.8 
      @tarojs/runtime: 3.2.8 => 3.2.8 
      @tarojs/taro: 3.2.8 => 3.2.8 
      @tarojs/webpack-runner: 3.2.8 => 3.2.8 
      babel-preset-taro: 3.2.8 => 3.2.8 
      eslint-config-taro: 3.2.8 => 3.2.8 
      react: ^16.10.0 => 16.14.0 
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jun 21, 2021
@Dunqing
Copy link

Dunqing commented Jul 14, 2021

commonChunks不是可以自己配置吗?

@YellowPure
Copy link
Author

YellowPure commented Jul 15, 2021 via email

@Dunqing
Copy link

Dunqing commented Jul 15, 2021

动态的好像不行,把react、taro、mobx 主要几个大库拆出来应该不会大于500k了吧

@YellowPure
Copy link
Author

YellowPure commented Jul 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants