new meteor-babel version

This commit is contained in:
denihs
2022-12-12 15:37:55 -04:00
parent 8c6b193059
commit 8cd32724a0
3 changed files with 9 additions and 9 deletions

View File

@@ -185,13 +185,13 @@ function getDefaultsForNode8(features) {
// Ensure that async functions run in a Fiber, while also taking
// full advantage of native async/await support in Node 8.
if (!process.env.DISABLE_FIBERS) {
combined.plugins.push([require("./plugins/async-await.js"), {
// Do not transform `await x` to `Promise.await(x)`, since Node
// 8 has native support for await expressions.
useNativeAsyncAwait: false
}]);
}
combined.plugins.push([require("./plugins/async-await.js"), {
// Do not transform `await x` to `Promise.await(x)`, since Node
// 8 has native support for await expressions.
useNativeAsyncAwait: !process.env.DISABLE_FIBERS,
isFiberDisabled: process.env.DISABLE_FIBERS,
}]);
// Enable async generator functions proposal.
combined.plugins.push(require("@babel/plugin-proposal-async-generator-functions"));

View File

@@ -1,7 +1,7 @@
{
"name": "@meteorjs/babel",
"author": "Meteor <dev@meteor.com>",
"version": "7.17.2-beta.0",
"version": "7.18.0-beta.0",
"license": "MIT",
"description": "Babel wrapper package for use with Meteor",
"keywords": [

View File

@@ -9,7 +9,7 @@ module.exports = function (babel) {
Function: {
exit: function (path) {
const node = path.node;
if (! node.async) {
if (!node.async || this.opts.isFiberDisabled) {
return;
}