arco-design / arco-plugins

Webpack / Vite plugins for Arco Design
https://arco.design
MIT License
68 stars 41 forks source link

feat: remove `~` prefix when import less file #52

Open lianghx-319 opened 1 year ago

lianghx-319 commented 1 year ago

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#imports

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:

Other information