Revert "Commit updated Javascript packages"
This reverts commit a88734348a.
This commit is contained in:
24
build/javascript/node_modules/postcss-inline-svg/lib/resolveId.js
generated
vendored
24
build/javascript/node_modules/postcss-inline-svg/lib/resolveId.js
generated
vendored
@@ -1,24 +0,0 @@
|
||||
const { dirname, resolve } = require("path");
|
||||
const { existsSync } = require("fs");
|
||||
|
||||
module.exports = function resolveId(file, url, opts) {
|
||||
if (opts.paths && opts.paths.length) {
|
||||
let absolutePath;
|
||||
|
||||
for (let path of opts.paths) {
|
||||
absolutePath = resolve(path, url);
|
||||
|
||||
if (existsSync(absolutePath)) {
|
||||
return absolutePath;
|
||||
}
|
||||
}
|
||||
|
||||
return absolutePath;
|
||||
}
|
||||
|
||||
if (file) {
|
||||
return resolve(dirname(file), url);
|
||||
}
|
||||
|
||||
return resolve(url);
|
||||
};
|
||||
Reference in New Issue
Block a user