@@ -2991,13 +2991,60 @@ export { _1 as "123", _2 as "#", _3 as "##", _4 as "#.#.#", _5 as "#fake-id", _6
2991
2991
"
2992
2992
`;
2993
2993
2994
- exports[`"modules" option should work and generate the same classes for client and server: client result 1`] = `undefined`;
2995
-
2996
- exports[`"modules" option should work and generate the same classes for client and server: client warnings 1`] = `
2997
- [
2998
- "ModuleDependencyWarning: export 'default' (imported as 'css') was not found in './localIdentName.css' (possible exports: #, ##, #.#.#, #fake-id, ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>., -a-b-c-, -a0-34a___f, ., 123, 1a2b3c, :), :\`(, :hover, :hover:focus:active, <><<<>><>, <p>, ?, @, B&W?, [attr=value], _, _test, className, f!o!o, f'o'o, f*o*o, f+o+o, f/o/o, f\\o\\o, foo.bar, foo/bar, foo/bar/baz, foo\\bar, foo\\bar\\baz, f~o~o, m_x_@, someId, subClass, test, {}, ©, “‘’”, ⌘⌥, ☺☃, ♥, 𝄞♪♩♫♬, 💩, 😍)",
2999
- ]
3000
- `;
2994
+ exports[`"modules" option should work and generate the same classes for client and server: client result 1`] = `
2995
+ {
2996
+ "#": "HkwIsjW5i7WNAxVRd5cg",
2997
+ "##": "IJc6Xl4ZKVZvSoeIuI2Q",
2998
+ "#.#.#": "BnPpnJmPeNr51pj2ZTlf",
2999
+ "#fake-id": "AqiAGSfnwaXj3eqg0Om8",
3000
+ "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "ByKoYcSrMT2cN3V2iAgZ",
3001
+ "-a-b-c-": "CwXv27VMwyQqKBvNNaFr",
3002
+ "-a0-34a___f": "DdFWMPoluIgmQirKzoS6",
3003
+ ".": "zd5uIZq6KrAWTwBjwZdC",
3004
+ "123": "oqRGsO4UR7_DWiqWXJMz",
3005
+ "1a2b3c": "YR1u_buYf6paLzzUM6Vc",
3006
+ ":)": "ZiZnRjRT03NgoqVQwkGO",
3007
+ ":\`(": "fKJQkLarfQOel4wwbIrn",
3008
+ ":hover": "HVudUNXnLNQoCLpVn82S",
3009
+ ":hover:focus:active": "ZlaaXvHLUsJOCFzItB_1",
3010
+ "<><<<>><>": "ozNsTIG0LL2gSQdL5dzv",
3011
+ "<p>": "TdAx2ZSkw7Hbktc7KR72",
3012
+ "?": "ndmpvNNltJXbDVvqKuxt",
3013
+ "@": "v3gq0wPogd6ZPfq_pfyZ",
3014
+ "B&W?": "h4SEF34CLwChRsak1742",
3015
+ "[attr=value]": "PWvC4jVM5SwUmKmw2tfW",
3016
+ "_": "bCwkZEDuxDAOhKnMdLVF",
3017
+ "_test": "Lb3fhDAuJv4v7BXOPttP",
3018
+ "className": "LdhpkZRWyKT7zDwJ0lt8",
3019
+ "f!o!o": "_aIyR9ETAs8ipXmRrrDO",
3020
+ "f'o'o": "HSXNnSjt1QaHBHUb_UIs",
3021
+ "f*o*o": "gv1E2n_bVvy0iT8TaHIv",
3022
+ "f+o+o": "EvMHRmCudyKg3GpLjAfj",
3023
+ "f/o/o": "A5l5sDODF4CQBW_PtlQD",
3024
+ "f\\o\\o": "DFfh4KyqOODVQsTPb3wt",
3025
+ "foo.bar": "uajo7mHzD_tTqOXqaqdg",
3026
+ "foo/bar": "hei2uQgDeX2YNkppCHp9",
3027
+ "foo/bar/baz": "p6KJMhNWwmCU2bXHJB93",
3028
+ "foo\\bar": "IgSzmmsCqiJBl4SibwgR",
3029
+ "foo\\bar\\baz": "HZerWgmU0ffpPzySVi_g",
3030
+ "f~o~o": "MrVzSIcSXyoDsr5G0K5_",
3031
+ "m_x_@": "OdAmghrme3xnUYOdzoDw",
3032
+ "someId": "b0rhwJStMR3eH63oapwW",
3033
+ "subClass": "Mw9j4nIdjx1xCGDt7d6a",
3034
+ "test": "KuIShlgsYfxvLoLHT1mu",
3035
+ "{}": "IZkBfE9iUPen76w2bB_q",
3036
+ "©": "jBj0sZiWBysiwRyGu_go",
3037
+ "“‘’”": "GM0Y0nFCPtkVMz6Esfno",
3038
+ "⌘⌥": "edHWpSne18gmGmfN6SV6",
3039
+ "☺☃": "NKrBw7EAqPT7Cgn7JzrA",
3040
+ "♥": "vJl9A9Ds21oujVsd5UD2",
3041
+ "𝄞♪♩♫♬": "QyMp9YMEoYUmEHEdpRal",
3042
+ "💩": "B82YxwgREHbKn8IpgaWw",
3043
+ "😍": "CNLr9yJwqs3dm6FgpOqA",
3044
+ }
3045
+ `;
3046
+
3047
+ exports[`"modules" option should work and generate the same classes for client and server: client warnings 1`] = `[]`;
3001
3048
3002
3049
exports[`"modules" option should work and generate the same classes for client and server: server errors 1`] = `[]`;
3003
3050
@@ -3102,13 +3149,60 @@ export { _30 as "foo\\\\bar\\\\baz" };
3102
3149
"
3103
3150
`;
3104
3151
3105
- exports[`"modules" option should work and generate the same classes for client and server: server result 1`] = `undefined`;
3106
-
3107
- exports[`"modules" option should work and generate the same classes for client and server: server warnings 1`] = `
3108
- [
3109
- "ModuleDependencyWarning: export 'default' (imported as 'css') was not found in './localIdentName.css' (possible exports: #, ##, #.#.#, #fake-id, ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>., -a-b-c-, -a0-34a___f, ., 123, 1a2b3c, :), :\`(, :hover, :hover:focus:active, <><<<>><>, <p>, ?, @, B&W?, [attr=value], _, _test, className, f!o!o, f'o'o, f*o*o, f+o+o, f/o/o, f\\o\\o, foo.bar, foo/bar, foo/bar/baz, foo\\bar, foo\\bar\\baz, f~o~o, m_x_@, someId, subClass, test, {}, ©, “‘’”, ⌘⌥, ☺☃, ♥, 𝄞♪♩♫♬, 💩, 😍)",
3110
- ]
3111
- `;
3152
+ exports[`"modules" option should work and generate the same classes for client and server: server result 1`] = `
3153
+ {
3154
+ "#": "HkwIsjW5i7WNAxVRd5cg",
3155
+ "##": "IJc6Xl4ZKVZvSoeIuI2Q",
3156
+ "#.#.#": "BnPpnJmPeNr51pj2ZTlf",
3157
+ "#fake-id": "AqiAGSfnwaXj3eqg0Om8",
3158
+ "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "ByKoYcSrMT2cN3V2iAgZ",
3159
+ "-a-b-c-": "CwXv27VMwyQqKBvNNaFr",
3160
+ "-a0-34a___f": "DdFWMPoluIgmQirKzoS6",
3161
+ ".": "zd5uIZq6KrAWTwBjwZdC",
3162
+ "123": "oqRGsO4UR7_DWiqWXJMz",
3163
+ "1a2b3c": "YR1u_buYf6paLzzUM6Vc",
3164
+ ":)": "ZiZnRjRT03NgoqVQwkGO",
3165
+ ":\`(": "fKJQkLarfQOel4wwbIrn",
3166
+ ":hover": "HVudUNXnLNQoCLpVn82S",
3167
+ ":hover:focus:active": "ZlaaXvHLUsJOCFzItB_1",
3168
+ "<><<<>><>": "ozNsTIG0LL2gSQdL5dzv",
3169
+ "<p>": "TdAx2ZSkw7Hbktc7KR72",
3170
+ "?": "ndmpvNNltJXbDVvqKuxt",
3171
+ "@": "v3gq0wPogd6ZPfq_pfyZ",
3172
+ "B&W?": "h4SEF34CLwChRsak1742",
3173
+ "[attr=value]": "PWvC4jVM5SwUmKmw2tfW",
3174
+ "_": "bCwkZEDuxDAOhKnMdLVF",
3175
+ "_test": "Lb3fhDAuJv4v7BXOPttP",
3176
+ "className": "LdhpkZRWyKT7zDwJ0lt8",
3177
+ "f!o!o": "_aIyR9ETAs8ipXmRrrDO",
3178
+ "f'o'o": "HSXNnSjt1QaHBHUb_UIs",
3179
+ "f*o*o": "gv1E2n_bVvy0iT8TaHIv",
3180
+ "f+o+o": "EvMHRmCudyKg3GpLjAfj",
3181
+ "f/o/o": "A5l5sDODF4CQBW_PtlQD",
3182
+ "f\\o\\o": "DFfh4KyqOODVQsTPb3wt",
3183
+ "foo.bar": "uajo7mHzD_tTqOXqaqdg",
3184
+ "foo/bar": "hei2uQgDeX2YNkppCHp9",
3185
+ "foo/bar/baz": "p6KJMhNWwmCU2bXHJB93",
3186
+ "foo\\bar": "IgSzmmsCqiJBl4SibwgR",
3187
+ "foo\\bar\\baz": "HZerWgmU0ffpPzySVi_g",
3188
+ "f~o~o": "MrVzSIcSXyoDsr5G0K5_",
3189
+ "m_x_@": "OdAmghrme3xnUYOdzoDw",
3190
+ "someId": "b0rhwJStMR3eH63oapwW",
3191
+ "subClass": "Mw9j4nIdjx1xCGDt7d6a",
3192
+ "test": "KuIShlgsYfxvLoLHT1mu",
3193
+ "{}": "IZkBfE9iUPen76w2bB_q",
3194
+ "©": "jBj0sZiWBysiwRyGu_go",
3195
+ "“‘’”": "GM0Y0nFCPtkVMz6Esfno",
3196
+ "⌘⌥": "edHWpSne18gmGmfN6SV6",
3197
+ "☺☃": "NKrBw7EAqPT7Cgn7JzrA",
3198
+ "♥": "vJl9A9Ds21oujVsd5UD2",
3199
+ "𝄞♪♩♫♬": "QyMp9YMEoYUmEHEdpRal",
3200
+ "💩": "B82YxwgREHbKn8IpgaWw",
3201
+ "😍": "CNLr9yJwqs3dm6FgpOqA",
3202
+ }
3203
+ `;
3204
+
3205
+ exports[`"modules" option should work and generate the same classes for client and server: server warnings 1`] = `[]`;
3112
3206
3113
3207
exports[`"modules" option should work and has "undefined" context if no context was given: errors 1`] = `[]`;
3114
3208
@@ -4480,14 +4574,60 @@ export { _2f as "main" };
4480
4574
"
4481
4575
`;
4482
4576
4483
- exports[`"modules" option should work and respect the "exportOnlyLocals" option: result 1`] = `undefined`;
4484
-
4485
- exports[`"modules" option should work and respect the "exportOnlyLocals" option: warnings 1`] = `
4486
- [
4487
- "ModuleDependencyWarning: export 'default' (imported as 'css') was not found in './composes.css' (possible exports: alias, alias-duplicate, black-selector, foo, foobarbaz, ghi, green, header, m-large, m-small, main, my-class, my-module, other, other-other, primary-selector, relative, s-black, s-white, simple, top-relative, url, v-bar, v-comment, v-def, v-dimension, v-foo, v-function, v-hex, v-ident, v-integer, v-integer-1, v-integer-2, v-number, v-number-1, v-number-2, v-other, v-percentage, v-pre-defined-ident, v-primary, v-something, v-string, v-string-1, v-unicode-range, v-url, v-url-1, v-url-2)",
4488
- ]
4577
+ exports[`"modules" option should work and respect the "exportOnlyLocals" option: result 1`] = `
4578
+ {
4579
+ "alias": "_alias _imported-alias",
4580
+ "alias-duplicate": "_alias-duplicate _imported-alias",
4581
+ "black-selector": "_black-selector",
4582
+ "foo": "_foo",
4583
+ "foobarbaz": "_foobarbaz",
4584
+ "ghi": "_ghi",
4585
+ "green": "_green",
4586
+ "header": "_header",
4587
+ "m-large": "(min-width: 960px)",
4588
+ "m-small": "(min-width: 320px)",
4589
+ "main": "_main _scssClass",
4590
+ "my-class": "_my-class",
4591
+ "my-module": "_my-module _imported-module",
4592
+ "other": "_other",
4593
+ "other-other": "_other-other",
4594
+ "primary-selector": "_primary-selector",
4595
+ "relative": "_relative _imported-relative",
4596
+ "s-black": "black-selector",
4597
+ "s-white": "white",
4598
+ "simple": "_simple _imported-simple",
4599
+ "top-relative": "_top-relative _imported-relative",
4600
+ "url": "_url",
4601
+ "v-bar": "block",
4602
+ "v-comment": " /* comment */",
4603
+ "v-def": "red",
4604
+ "v-dimension": "12px",
4605
+ "v-foo": "blue",
4606
+ "v-function": "rgb(0,0,0)",
4607
+ "v-hex": "#fff",
4608
+ "v-ident": "validIdent",
4609
+ "v-integer": "100",
4610
+ "v-integer-1": "-100",
4611
+ "v-integer-2": "+100",
4612
+ "v-number": ".60",
4613
+ "v-number-1": "-456.8",
4614
+ "v-number-2": "-3.4e-2",
4615
+ "v-other": "green",
4616
+ "v-percentage": "100%",
4617
+ "v-pre-defined-ident": "left",
4618
+ "v-primary": "#BF4040",
4619
+ "v-something": "2112moon",
4620
+ "v-string": "'content'",
4621
+ "v-string-1": "''",
4622
+ "v-unicode-range": "U+0025-00FF",
4623
+ "v-url": "url(https://www.exammple.com/images/my-background.png)",
4624
+ "v-url-1": "url('https://www.exammple.com/images/my-background.png')",
4625
+ "v-url-2": "url("https://www.exammple.com/images/my-background.png")",
4626
+ }
4489
4627
`;
4490
4628
4629
+ exports[`"modules" option should work and respect the "exportOnlyLocals" option: warnings 1`] = `[]`;
4630
+
4491
4631
exports[`"modules" option should work and respect the "getLocalIdent" option: errors 1`] = `[]`;
4492
4632
4493
4633
exports[`"modules" option should work and respect the "getLocalIdent" option: module 1`] = `
@@ -9677,14 +9817,60 @@ export { _2f as "main" };
9677
9817
"
9678
9818
`;
9679
9819
9680
- exports[`"modules" option should work with "exportOnlyLocals" and "esModule" with "true" value options: result 1`] = `undefined`;
9681
-
9682
- exports[`"modules" option should work with "exportOnlyLocals" and "esModule" with "true" value options: warnings 1`] = `
9683
- [
9684
- "ModuleDependencyWarning: export 'default' (imported as 'css') was not found in './composes.css' (possible exports: alias, alias-duplicate, black-selector, foo, foobarbaz, ghi, green, header, m-large, m-small, main, my-class, my-module, other, other-other, primary-selector, relative, s-black, s-white, simple, top-relative, url, v-bar, v-comment, v-def, v-dimension, v-foo, v-function, v-hex, v-ident, v-integer, v-integer-1, v-integer-2, v-number, v-number-1, v-number-2, v-other, v-percentage, v-pre-defined-ident, v-primary, v-something, v-string, v-string-1, v-unicode-range, v-url, v-url-1, v-url-2)",
9685
- ]
9820
+ exports[`"modules" option should work with "exportOnlyLocals" and "esModule" with "true" value options: result 1`] = `
9821
+ {
9822
+ "alias": "_alias _imported-alias",
9823
+ "alias-duplicate": "_alias-duplicate _imported-alias",
9824
+ "black-selector": "_black-selector",
9825
+ "foo": "_foo",
9826
+ "foobarbaz": "_foobarbaz",
9827
+ "ghi": "_ghi",
9828
+ "green": "_green",
9829
+ "header": "_header",
9830
+ "m-large": "(min-width: 960px)",
9831
+ "m-small": "(min-width: 320px)",
9832
+ "main": "_main _scssClass",
9833
+ "my-class": "_my-class",
9834
+ "my-module": "_my-module _imported-module",
9835
+ "other": "_other",
9836
+ "other-other": "_other-other",
9837
+ "primary-selector": "_primary-selector",
9838
+ "relative": "_relative _imported-relative",
9839
+ "s-black": "black-selector",
9840
+ "s-white": "white",
9841
+ "simple": "_simple _imported-simple",
9842
+ "top-relative": "_top-relative _imported-relative",
9843
+ "url": "_url",
9844
+ "v-bar": "block",
9845
+ "v-comment": " /* comment */",
9846
+ "v-def": "red",
9847
+ "v-dimension": "12px",
9848
+ "v-foo": "blue",
9849
+ "v-function": "rgb(0,0,0)",
9850
+ "v-hex": "#fff",
9851
+ "v-ident": "validIdent",
9852
+ "v-integer": "100",
9853
+ "v-integer-1": "-100",
9854
+ "v-integer-2": "+100",
9855
+ "v-number": ".60",
9856
+ "v-number-1": "-456.8",
9857
+ "v-number-2": "-3.4e-2",
9858
+ "v-other": "green",
9859
+ "v-percentage": "100%",
9860
+ "v-pre-defined-ident": "left",
9861
+ "v-primary": "#BF4040",
9862
+ "v-something": "2112moon",
9863
+ "v-string": "'content'",
9864
+ "v-string-1": "''",
9865
+ "v-unicode-range": "U+0025-00FF",
9866
+ "v-url": "url(https://www.exammple.com/images/my-background.png)",
9867
+ "v-url-1": "url('https://www.exammple.com/images/my-background.png')",
9868
+ "v-url-2": "url("https://www.exammple.com/images/my-background.png")",
9869
+ }
9686
9870
`;
9687
9871
9872
+ exports[`"modules" option should work with "exportOnlyLocals" and "esModule" with "true" value options: warnings 1`] = `[]`;
9873
+
9688
9874
exports[`"modules" option should work with "exportOnlyLocals" and "exportLocalsConvention": "asIs": errors 1`] = `[]`;
9689
9875
9690
9876
exports[`"modules" option should work with "exportOnlyLocals" and "exportLocalsConvention": "asIs": module 1`] = `
@@ -23142,11 +23328,7 @@ export { _1 as "relative" }
23142
23328
"
23143
23329
`;
23144
23330
23145
- exports[`"modules" option should work with the 'auto' and extract CSS using mini-css-extract-plugin: warnings 1`] = `
23146
- [
23147
- "ModuleDependencyWarning: export 'default' (imported as 'relative') was not found in './relative.module.css' (possible exports: relative)",
23148
- ]
23149
- `;
23331
+ exports[`"modules" option should work with the 'auto' and extract CSS using mini-css-extract-plugin: warnings 1`] = `[]`;
23150
23332
23151
23333
exports[`"modules" option should work with the \`exportGlobals\` option (the \`mode\` option is \`global\`): errors 1`] = `[]`;
23152
23334
@@ -24887,14 +25069,14 @@ export { _1 as "primary-color" };
24887
25069
"
24888
25070
`;
24889
25071
24890
- exports[`"modules" option show work with the "mode: icss" and "exportOnlyLocals" options: result 1`] = `undefined`;
24891
-
24892
- exports[`"modules" option show work with the "mode: icss" and "exportOnlyLocals" options: warnings 1`] = `
24893
- [
24894
- "ModuleDependencyWarning: export 'default' (imported as 'css') was not found in './source.css' (possible exports: primary-color)",
24895
- ]
25072
+ exports[`"modules" option show work with the "mode: icss" and "exportOnlyLocals" options: result 1`] = `
25073
+ {
25074
+ "primary-color": "red",
25075
+ }
24896
25076
`;
24897
25077
25078
+ exports[`"modules" option show work with the "mode: icss" and "exportOnlyLocals" options: warnings 1`] = `[]`;
25079
+
24898
25080
exports[`"modules" option show work with the "mode: icss" and "namedExport" options: errors 1`] = `[]`;
24899
25081
24900
25082
exports[`"modules" option show work with the "mode: icss" and "namedExport" options: module 1`] = `
@@ -25284,10 +25466,10 @@ export { _1 as "primary-color" };
25284
25466
"
25285
25467
`;
25286
25468
25287
- exports[`"modules" option show work with the "mode: icss", "exportOnlyLocals" options and "templateLiteral" support: result 1`] = `undefined`;
25288
-
25289
- exports[`"modules" option show work with the "mode: icss", "exportOnlyLocals" options and "templateLiteral" support: warnings 1`] = `
25290
- [
25291
- "ModuleDependencyWarning: export 'default' (imported as 'css') was not found in './source.css' (possible exports: primary-color)",
25292
- ]
25469
+ exports[`"modules" option show work with the "mode: icss", "exportOnlyLocals" options and "templateLiteral" support: result 1`] = `
25470
+ {
25471
+ "primary-color": "red",
25472
+ }
25293
25473
`;
25474
+
25475
+ exports[`"modules" option show work with the "mode: icss", "exportOnlyLocals" options and "templateLiteral" support: warnings 1`] = `[]`;
0 commit comments