@@ -48,7 +48,6 @@ class ImportParserPlugin {
48
48
`Compilation error while processing magic comment(-s): /*${
49
49
comment . value
50
50
} */: ${ e . message } `,
51
- parser . state . module ,
52
51
comment . loc
53
52
)
54
53
) ;
@@ -60,7 +59,6 @@ class ImportParserPlugin {
60
59
if ( typeof importOptions . webpackIgnore !== "boolean" ) {
61
60
parser . state . module . warnings . push (
62
61
new UnsupportedFeatureWarning (
63
- parser . state . module ,
64
62
`\`webpackIgnore\` expected a boolean, but received: ${
65
63
importOptions . webpackIgnore
66
64
} .`,
@@ -78,7 +76,6 @@ class ImportParserPlugin {
78
76
if ( typeof importOptions . webpackChunkName !== "string" ) {
79
77
parser . state . module . warnings . push (
80
78
new UnsupportedFeatureWarning (
81
- parser . state . module ,
82
79
`\`webpackChunkName\` expected a string, but received: ${
83
80
importOptions . webpackChunkName
84
81
} .`,
@@ -93,7 +90,6 @@ class ImportParserPlugin {
93
90
if ( typeof importOptions . webpackMode !== "string" ) {
94
91
parser . state . module . warnings . push (
95
92
new UnsupportedFeatureWarning (
96
- parser . state . module ,
97
93
`\`webpackMode\` expected a string, but received: ${
98
94
importOptions . webpackMode
99
95
} .`,
@@ -112,7 +108,6 @@ class ImportParserPlugin {
112
108
} else {
113
109
parser . state . module . warnings . push (
114
110
new UnsupportedFeatureWarning (
115
- parser . state . module ,
116
111
`\`webpackPrefetch\` expected true or a number, but received: ${
117
112
importOptions . webpackPrefetch
118
113
} .`,
@@ -129,7 +124,6 @@ class ImportParserPlugin {
129
124
} else {
130
125
parser . state . module . warnings . push (
131
126
new UnsupportedFeatureWarning (
132
- parser . state . module ,
133
127
`\`webpackPreload\` expected true or a number, but received: ${
134
128
importOptions . webpackPreload
135
129
} .`,
@@ -145,7 +139,6 @@ class ImportParserPlugin {
145
139
) {
146
140
parser . state . module . warnings . push (
147
141
new UnsupportedFeatureWarning (
148
- parser . state . module ,
149
142
`\`webpackInclude\` expected a regular expression, but received: ${
150
143
importOptions . webpackInclude
151
144
} .`,
@@ -163,7 +156,6 @@ class ImportParserPlugin {
163
156
) {
164
157
parser . state . module . warnings . push (
165
158
new UnsupportedFeatureWarning (
166
- parser . state . module ,
167
159
`\`webpackExclude\` expected a regular expression, but received: ${
168
160
importOptions . webpackExclude
169
161
} .`,
@@ -180,7 +172,6 @@ class ImportParserPlugin {
180
172
if ( mode !== "lazy" && mode !== "eager" && mode !== "weak" ) {
181
173
parser . state . module . warnings . push (
182
174
new UnsupportedFeatureWarning (
183
- parser . state . module ,
184
175
`\`webpackMode\` expected 'lazy', 'eager' or 'weak', but received: ${ mode } .` ,
185
176
expr . loc
186
177
)
@@ -217,7 +208,6 @@ class ImportParserPlugin {
217
208
) {
218
209
parser . state . module . warnings . push (
219
210
new UnsupportedFeatureWarning (
220
- parser . state . module ,
221
211
`\`webpackMode\` expected 'lazy', 'lazy-once', 'eager' or 'weak', but received: ${ mode } .` ,
222
212
expr . loc
223
213
)
0 commit comments