@meteorjs/babel 7.16.0-beta.1 → 7.16.0-beta.2
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/options.js +1 -1
- package/package.json +1 -1
- package/runtime.js +5 -0
package/options.js
CHANGED
|
@@ -188,7 +188,7 @@ function getDefaultsForNode8(features) {
|
|
|
188
188
|
combined.plugins.push([require("./plugins/async-await.js"), {
|
|
189
189
|
// Do not transform `await x` to `Promise.await(x)`, since Node
|
|
190
190
|
// 8 has native support for await expressions.
|
|
191
|
-
useNativeAsyncAwait:
|
|
191
|
+
useNativeAsyncAwait: !process.env.ENABLE_FIBERS,
|
|
192
192
|
}]);
|
|
193
193
|
|
|
194
194
|
// Enable async generator functions proposal.
|
package/package.json
CHANGED
package/runtime.js
CHANGED
|
@@ -9,6 +9,11 @@ Module.prototype.resolve = function (id) {
|
|
|
9
9
|
return Module._resolveFilename(id, this);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
+
// Do not change the behavior of the promise
|
|
13
|
+
if (!process.env.ENABLE_FIBERS) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
require("@meteorjs/reify/lib/runtime").enable(Module.prototype);
|
|
13
18
|
|
|
14
19
|
require("meteor-promise").makeCompatible(
|