When using pnpm link a local package, it's something wrong when resolving .less.
It seem likes webpack cannot handle less files out of the default scope which locate the real path of the symlinks package.
So I think remove ~ prefix is not a big deal, and it can some how fix the symlinks problem
Solution
How is the change tested?
Changelog
| Changelog(CN) | Changelog(EN) | Related issues |
| 移除引入 .less 文件的 ~ 前缀 | Remove ~ prefix when import less file | -------------- |
Checklist:
[ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
[ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to master branch)
Types of changes
Background and context
When using
pnpm link
a local package, it's something wrong when resolving.less
. It seem likes webpack cannot handle less files out of the default scope which locate the real path of the symlinks package.And
~
has deprecated following this link https://github.com/webpack-contrib/less-loader#importsSo I think remove
~
prefix is not a big deal, and it can some how fix the symlinks problemSolution
How is the change tested?
Changelog
| Changelog(CN) | Changelog(EN) | Related issues | | 移除引入
.less
文件的~
前缀 | Remove~
prefix when import less file | -------------- |Checklist:
feature
branch and others should be submitted tomaster
branch)Other information