Add support for top level await to meteor-babel

This commit is contained in:
zodern
2022-11-17 22:45:02 -06:00
parent caec801f6f
commit 4a1b73222f
3 changed files with 3875 additions and 42 deletions

View File

@@ -20,7 +20,8 @@ function getReifyOptions(features) {
const reifyOptions = {
avoidModernSyntax: true,
enforceStrictMode: false,
dynamicImport: true
dynamicImport: true,
topLevelAwait: features.topLevelAwait
};
if (features) {

File diff suppressed because it is too large Load Diff

View File

@@ -41,7 +41,7 @@
"@babel/template": "^7.16.7",
"@babel/traverse": "^7.17.0",
"@babel/types": "^7.17.0",
"@meteorjs/reify": "0.23.0",
"@meteorjs/reify": "meteor/reify#eace2425af6e69ce12c293959c7da56ebb629f79",
"babel-preset-meteor": "^7.10.0",
"babel-preset-minify": "^0.5.1",
"convert-source-map": "^1.6.0",