Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

fix an error of resolveFile method#25

Open
shijistar wants to merge 2 commits into
qiniu:masterfrom
shijistar:master
Open

fix an error of resolveFile method#25
shijistar wants to merge 2 commits into
qiniu:masterfrom
shijistar:master

Conversation

@shijistar
Copy link
Copy Markdown

The resolveFile method is not completely implemented. It should return the raw filename if it's not aliased at all.

[Background]
The AliasePlugin is not properly implemented. When compilling less file, less calls loadFileSync at first (1), then it callssuper.loadFileSync(2). The super method directly calls this.resolveFile which falls back to AliasePlugin again(3), then again calls super.loadFile. Both step 1 and step 2 calls resolveFile method, twice. So the resolveFile should be safe enough to be called multiple times.

@chess99
Copy link
Copy Markdown

chess99 commented Oct 25, 2023

这个项目看起来没人管了, 用 #25 发了个包
@chess99/typed-less-modules@1.0.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants