iam-medvedev / esbuild-plugin-less

esbuild plugin for less files
https://npmjs.com/package/esbuild-plugin-less
Do What The F*ck You Want To Public License
42 stars 12 forks source link

fix: watch list for imports depending on `options.paths` #90

Closed jrcasso closed 1 year ago

jrcasso commented 1 year ago

This change is necessary since the file watcher is broken for those import paths that differ from the default import path. In other words, the current implementation of the file watcher doesn't consider additional import paths provided by the Options.path? interface member (though the loader does!).

This change implements an algorithm that checks for file existence at the default import path. If a file does not exist at the default import path, provided additional import paths are then considered. If one is found, the path is updated for the watcher's list by way of getLessImports. The fallback and default filepath used is always the default import path.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.1.13 :tada:

The release is available on:

Your semantic-release bot :package::rocket: