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

Taro 3.6.6 分包 sub-common 下未产出 sourcemap #13873

Closed
alexlees opened this issue May 19, 2023 · 4 comments · Fixed by #13874
Closed

Taro 3.6.6 分包 sub-common 下未产出 sourcemap #13873

alexlees opened this issue May 19, 2023 · 4 comments · Fixed by #13874
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@alexlees
Copy link
Contributor

相关平台

微信小程序

复现仓库

https://github.com/alexlees/sub_sourcemap_demo.git
小程序基础库: 无关小程序基础版本
使用框架: React

复现步骤

  1. 新建项目
  2. 配置产出sourcemap
  3. 新建两个 分包
  4. 两个分包中引入同一JS代码

具体可参考:alexlees/sub_sourcemap_demo@e952869

期望结果

按照配置产出 sourcemap 以便定位问题

实际结果

无 sourcemap 产出

环境信息

👽 Taro v3.6.6


  Taro CLI 3.6.6 environment info:
    System:
      OS: Linux 5.4 Debian GNU/Linux 10 (buster) 10 (buster)
      Shell: 5.9 - /home/linuxbrew/.linuxbrew/bin/zsh
    Binaries:
      Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.1/bin/yarn
      npm: 8.19.3 - ~/.nvm/versions/node/v16.19.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.6 => 3.6.6 
      @tarojs/components: 3.6.6 => 3.6.6 
      @tarojs/helper: 3.6.6 => 3.6.6 
      @tarojs/plugin-framework-react: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-alipay: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-h5: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-jd: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-qq: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-swan: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-tt: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-weapp: 3.6.6 => 3.6.6 
      @tarojs/react: 3.6.6 => 3.6.6 
      @tarojs/runtime: 3.6.6 => 3.6.6 
      @tarojs/shared: 3.6.6 => 3.6.6 
      @tarojs/taro: 3.6.6 => 3.6.6 
      @tarojs/webpack5-runner: 3.6.6 => 3.6.6 
      babel-preset-taro: 3.6.6 => 3.6.6 
      eslint-config-taro: 3.6.6 => 3.6.6 
      react: ^18.0.0 => 18.2.0

补充信息

按文档以及日志猜想应该是忘记 copy sourcemap 文件

36a358d4-e731-48b1-8e61-92519ff53764

503c5b53-61b1-405b-9917-4080fab6d8d2

image

@xiaochong2021
Copy link

为什么我vue3, taro3.6.23版本还有这个问题

@zzy348429898
Copy link

3.6.23,也还有这个问题

@cma290
Copy link

cma290 commented Sep 1, 2024

为啥我没分包 但是产物也没有任何sourcemap 呢 3.6.35 了都

@zzy348429898
Copy link

zzy348429898 commented Sep 1, 2024 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
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants