Skip to content

Commit 15ebb7a

Browse files
test: debug
1 parent fd41738 commit 15ebb7a

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/utils.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ function defaultGetLocalIdent(
7070
) {
7171
let matchResourceRequest;
7272

73-
// eslint-disable-next-line no-underscore-dangle
74-
if (loaderContext._module.matchResource) {
75-
matchResourceRequest = normalizePath(
76-
// eslint-disable-next-line no-underscore-dangle
77-
path.relative(options.context, loaderContext._module.matchResource)
78-
);
79-
}
73+
// // eslint-disable-next-line no-underscore-dangle
74+
// if (loaderContext._module.matchResource) {
75+
// matchResourceRequest = normalizePath(
76+
// // eslint-disable-next-line no-underscore-dangle
77+
// path.relative(options.context, loaderContext._module.matchResource)
78+
// );
79+
// }
8080

8181
const request = normalizePath(
8282
path.relative(options.context, loaderContext.resourcePath)

test/__snapshots__/loader.test.js.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -665,66 +665,66 @@ exports[`loader should work with inline module syntax: result 1`] = `
665665
Array [
666666
Array [
667667
"other.modules.css!=!../../src/index.js?[ident]!./index-loader-syntax.modules.css",
668-
"._14oM7qkZ6dgC62uK5h4NI0 {
668+
"._1ZJhuRHDA53bY_Z4Qfm2b4 {
669669
color: red;
670670
}
671671
672-
._2NqyYysncZeLetATpl0xfW {
672+
.j3CQSVq_DdDvo0Ew74yQi {
673673
color: white;
674674
}",
675675
"",
676676
],
677677
Array [
678678
"button.modules.css!=!./index-loader-syntax-sass.css",
679-
"._8aapa4kQQdSsOoRODcrwe {
679+
".iuzmhXWrT3_Z-zKS-rMGM {
680680
width: 5px;
681681
}",
682682
"",
683683
],
684684
Array [
685685
"other.modules.scss!=!../../src/index.js?[ident]!./index-loader-syntax-sass.modules.css",
686-
"._2yVYVQfmDwKLZn9Qj6k_Q5 > ._3rHlnRnPEotX4nTkd82-aE {
686+
"._1fGl5mRxLFCqIet0X3JYrB > ._2pVMnENaxk1YmKug-4EMYF {
687687
color: red;
688688
}",
689689
"",
690690
],
691691
Array [
692692
"other.modules.css!=!../../src/index.js?[ident]!./index-loader-syntax.modules.css",
693-
"._14oM7qkZ6dgC62uK5h4NI0 {
693+
"._1ZJhuRHDA53bY_Z4Qfm2b4 {
694694
color: red;
695695
}
696696
697-
._2NqyYysncZeLetATpl0xfW {
697+
.j3CQSVq_DdDvo0Ew74yQi {
698698
color: white;
699699
}
700700
701-
._1-Aa1c8UQML46IWY0FjGXT {
701+
.B7fdaUjwJ3YVou1v7dYEE {
702702
from: custom;
703703
}",
704704
"",
705705
],
706706
Array [
707707
"other.modules.css!=!../../src/index.js?[ident]!./index-loader-syntax.modules.css",
708-
"._14oM7qkZ6dgC62uK5h4NI0 {
708+
"._1ZJhuRHDA53bY_Z4Qfm2b4 {
709709
color: red;
710710
}
711711
712-
._2NqyYysncZeLetATpl0xfW {
712+
.j3CQSVq_DdDvo0Ew74yQi {
713713
color: white;
714714
}
715715
716-
._1-Aa1c8UQML46IWY0FjGXT {
716+
.B7fdaUjwJ3YVou1v7dYEE {
717717
from: custom;
718718
}",
719719
"",
720720
],
721721
Array [
722722
"other.modules.scss!=!../../src/index.js?[ident]!./index-loader-syntax-sass.modules.css",
723-
"._2yVYVQfmDwKLZn9Qj6k_Q5 > ._3rHlnRnPEotX4nTkd82-aE {
723+
"._1fGl5mRxLFCqIet0X3JYrB > ._2pVMnENaxk1YmKug-4EMYF {
724724
color: red;
725725
}
726726
727-
._2kEhhupr-6tgHnCC_d4yO8 {
727+
._1kK_VYa-N303wnLgpvL-7d {
728728
from: custom;
729729
}",
730730
"",
@@ -738,21 +738,21 @@ Array [
738738
],
739739
Array [
740740
"button.modules.css!=!./index-loader-syntax-sass.css",
741-
"._8aapa4kQQdSsOoRODcrwe {
741+
".iuzmhXWrT3_Z-zKS-rMGM {
742742
width: 5px;
743743
}",
744744
"",
745745
],
746746
Array [
747747
"button.module.scss!=!./base64-loader/index.js?[ident]!./simple.js?foo=bar",
748-
"._2hfVrRfux-FOrqimHr-fzt {
748+
"._1DaPRMj4jImbX3XSIzjaR4 {
749749
color: red;
750750
}",
751751
"",
752752
],
753753
Array [
754754
"other.module.scss!=!./base64-loader/index.js?[ident]!./simple.js?foo=baz",
755-
"._2jOyhMQwdpQ85V5dDLcfoG {
755+
"._1DaPRMj4jImbX3XSIzjaR4 {
756756
color: red;
757757
}",
758758
"",

0 commit comments

Comments
 (0)