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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/less/aliases-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export class LessAliasesPlugin {
}
}

if (!isHited) {
return filename;
}
if (isHited && !resolvedPath) {
throw new Error(`Invalid @import: ${filename}`);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qiniu/typed-less-modules",
"version": "0.1.2",
"version": "0.1.2-1",
"description": "TypeScript type definition generator for LESS CSS Modules",
"main": "index.js",
"license": "Apache",
Expand Down