MCPcopy Create free account
hub / github.com/webpack/less-loader / supports

Method supports

test/helpers/getCodeFromLess.js:150–160  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

148
149class ResolvePlugin extends less.FileManager {
150 supports(filename) {
151 if (filename[0] === "/" || path.win32.isAbsolute(filename)) {
152 return true;
153 }
154
155 if (this.isPathAbsolute(filename)) {
156 return false;
157 }
158
159 return true;
160 }
161
162 supportsSync() {
163 return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected