File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,10 @@ async function swcMinify(input, minimizerOptions = {}) {
167167 code : result . code ,
168168 errors : result . errors
169169 ? result . errors . map ( ( diagnostic ) => {
170- const error = /** @type {Error & { span: any; level: any } } */ ( new Error ( diagnostic . message ) ) ;
170+ // eslint-disable-next-line jsdoc/no-restricted-syntax
171+ const error = /** @type {Error & { span: any; level: any } } */ (
172+ new Error ( diagnostic . message )
173+ ) ;
171174
172175 error . span = diagnostic . span ;
173176
@@ -208,7 +211,10 @@ async function swcMinifyFragment(input, minimizerOptions = {}) {
208211 code : result . code ,
209212 errors : result . errors
210213 ? result . errors . map ( ( diagnostic ) => {
211- const error = /** @type {Error & { span: any; level: any } } */ ( new Error ( diagnostic . message ) ) ;
214+ // eslint-disable-next-line jsdoc/no-restricted-syntax
215+ const error = /** @type {Error & { span: any; level: any } } */ (
216+ new Error ( diagnostic . message )
217+ ) ;
212218
213219 error . span = diagnostic . span ;
214220
You can’t perform that action at this time.
0 commit comments