remove .then from dynamic import parser exception message (#8355)
This commit is contained in:
committed by
Nicolò Ribaudo
parent
adae1501ac
commit
8b10a44fe1
@@ -964,7 +964,7 @@ export default class ExpressionParser extends LValParser {
|
||||
} else if (!this.hasPlugin("importMeta")) {
|
||||
this.raise(
|
||||
id.start,
|
||||
`Dynamic imports require a parameter: import('a.js').then`,
|
||||
`Dynamic imports require a parameter: import('a.js')`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user