We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f2240e commit f8eb290Copy full SHA for f8eb290
1 file changed
packages/babel-preset-env/src/index.js
@@ -237,7 +237,7 @@ export default declare((api, opts) => {
237
modules !== "auto" || !api.caller || !api.caller(supportsStaticESM),
238
shouldTransformDynamicImport:
239
modules !== "auto" || !api.caller || !api.caller(supportsDynamicImport),
240
- shouldParseTopLevelAwait: api.caller(supportsTopLevelAwait),
+ shouldParseTopLevelAwait: !api.caller || api.caller(supportsTopLevelAwait),
241
});
242
243
const pluginNames = filterItems(
0 commit comments