diff --git a/src/config/pragmas/plugins.js b/src/config/pragmas/plugins.js index 71bbc69..3e304be 100644 --- a/src/config/pragmas/plugins.js +++ b/src/config/pragmas/plugins.js @@ -152,6 +152,7 @@ function resolve (path, cwd) { } let esmErrors = [ + 'require() cannot be used on an ESM graph with top-level await. Use import() instead.', 'Cannot use import statement outside a module', `Unexpected token 'export'`, 'require() of ES Module',