gitea push
This commit is contained in:
+2
-2
@@ -151,7 +151,7 @@ module.exports = class ExportsFieldPlugin {
|
||||
|
||||
const [relativePath, query, fragment] = parsedIdentifier;
|
||||
|
||||
if (relativePath.length === 0 || !relativePath.startsWith("./")) {
|
||||
if (!relativePath.startsWith("./")) {
|
||||
if (paths.length === i) {
|
||||
return callback(
|
||||
new Error(
|
||||
@@ -165,7 +165,7 @@ module.exports = class ExportsFieldPlugin {
|
||||
|
||||
const withoutDotSlash = relativePath.slice(2);
|
||||
if (
|
||||
invalidSegmentRegEx.exec(withoutDotSlash) !== null &&
|
||||
invalidSegmentRegEx.test(withoutDotSlash) &&
|
||||
deprecatedInvalidSegmentRegEx.test(withoutDotSlash)
|
||||
) {
|
||||
if (paths.length === i) {
|
||||
|
||||
Reference in New Issue
Block a user