@meteorjs/babel 7.19.0-beta.2 → 7.19.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
1
  # @meteorjs/babel [![Build Status](https://travis-ci.com/meteor/babel.svg)](https://travis-ci.com/meteor/babel)
2
2
 
3
3
  [Babel](https://babeljs.io/) wrapper package for use with [Meteor](https://github.com/meteor/meteor).
4
+
5
+ ## Updating:
6
+
7
+ If while updating this package the CI starts failing due inconsistencies
8
+ in the package-lock.json file, you can run `npm install --package-lock-only`
9
+ to update the package-lock.json file to the latest version of the package.
package/options.js CHANGED
@@ -186,11 +186,8 @@ function getDefaultsForNode8(features) {
186
186
  require("@babel/plugin-syntax-object-rest-spread"),
187
187
  require("@babel/plugin-proposal-object-rest-spread")
188
188
  );
189
- // TODO [fibers]: instead of removing the code below, consider this comment:
190
- // https://github.com/meteor/meteor/pull/12471/files#r1089610144
191
- const ignoreAsyncPlugin = process.env.IGNORE_ASYNC_PLUGIN === '1';
192
189
 
193
- if (!features.useNativeAsyncAwait && !ignoreAsyncPlugin) {
190
+ if (features.useNativeAsyncAwait === false) {
194
191
  combined.plugins.push([
195
192
  require('./plugins/async-await.js'),
196
193
  {
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@meteorjs/babel",
3
3
  "author": "Meteor <dev@meteor.com>",
4
- "version": "7.19.0-beta.2",
4
+ "version": "7.19.0-beta.4",
5
5
  "license": "MIT",
6
+ "type": "commonjs",
6
7
  "description": "Babel wrapper package for use with Meteor",
7
8
  "keywords": [
8
9
  "meteor",
@@ -41,13 +42,13 @@
41
42
  "@babel/template": "^7.16.7",
42
43
  "@babel/traverse": "^7.17.0",
43
44
  "@babel/types": "^7.17.0",
44
- "@meteorjs/reify": "https://github.com/meteor/reify/tarball/ee36898798645097948258eb9106dd0af60cec64",
45
+ "@meteorjs/reify": "0.25.1",
45
46
  "babel-preset-meteor": "^7.10.0",
46
47
  "babel-preset-minify": "^0.5.1",
47
48
  "convert-source-map": "^1.6.0",
48
49
  "lodash": "^4.17.21",
49
50
  "meteor-babel-helpers": "0.0.3",
50
- "typescript": "~4.9.4"
51
+ "typescript": "~5.3.3"
51
52
  },
52
53
  "devDependencies": {
53
54
  "@babel/plugin-proposal-decorators": "7.14.5",
@@ -8,6 +8,10 @@ module.exports = function (babel) {
8
8
  visitor: {
9
9
  Function: {
10
10
  exit: function (path) {
11
+ if (this.opts.useNativeAsyncAwait !== false) {
12
+ return;
13
+ }
14
+
11
15
  const node = path.node;
12
16
  if (!node.async) {
13
17
  return;
@@ -53,7 +57,7 @@ module.exports = function (babel) {
53
57
  },
54
58
 
55
59
  AwaitExpression: function (path) {
56
- if (this.opts.useNativeAsyncAwait) {
60
+ if (this.opts.useNativeAsyncAwait !== false) {
57
61
  // No need to transform await expressions if we have native
58
62
  // support for them.
59
63
  return;