1 comment (1 comment)0 reactions (0 reactions)0 assignees (0 assignees)JavaScript9,021 stars (9,021 stars)694 forks (694 forks)batch import
help wanted
Description
此问题发生在1.4.2版的vant,0.5.28版没有这个问题,问题是可能因为vant的高版本文件夹是@开头导致cml打包时出现路径错误
Contributor guide
- Tech stack
- javascript
- Domain
- build systemdeveloper experience
- Issue type
- bug
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- half day
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- mostly clear
- Prerequisites
- Knowledge of Chameleon build systemUnderstanding of npm scoped packages
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 40
- Research direction
- The issue occurs when using a higher version of vant (1.4.2) where the package folder starts with '@' (scoped package). The chameleon packaging tool (cml) seems to generate incorrect paths for files inside such scoped packages. Investigate the build configuration and file resolution logic in Chameleon's source code, likely in the packaging or bundling modules. Check if there are any existing handling for scoped packages or if the path concatenation fails when the package name starts with '@'. A fix may involve updating the path resolution to properly handle scoped package names.