Fix meteor-babel tests

This commit is contained in:
zodern
2022-12-30 16:25:04 -06:00
parent bad623544b
commit c8cb148f04
3 changed files with 19 additions and 3909 deletions

View File

@@ -20,8 +20,7 @@ function getReifyOptions(features) {
const reifyOptions = {
avoidModernSyntax: true,
enforceStrictMode: false,
dynamicImport: true,
topLevelAwait: features.topLevelAwait
dynamicImport: true
};
if (features) {
@@ -36,6 +35,10 @@ function getReifyOptions(features) {
// wrap it with a function to rename the `module` identifier.
reifyOptions.moduleAlias = "module";
}
if (features.topLevelAwait) {
reifyOptions.topLevelAwait = true;
}
}
return reifyOptions;

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": "https://github.com/meteor/reify/tarball/46e208eebcaa0a424397149401ce6a03d91f1a1b",
"@meteorjs/reify": "https://github.com/meteor/reify/tarball/5078da9d0827cc17741504762f3a7f71c3b01448",
"babel-preset-meteor": "^7.10.0",
"babel-preset-minify": "^0.5.1",
"convert-source-map": "^1.6.0",