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

fix an error of resolveFile method #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shijistar
Copy link

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

chess99 commented Oct 25, 2023

这个项目看起来没人管了, 用 #25 发了个包
@chess99/[email protected]

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