mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add support for top level await to babel-compiler
This commit is contained in:
2024
packages/babel-compiler/.npm/package/npm-shrinkwrap.json
generated
2024
packages/babel-compiler/.npm/package/npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
@@ -87,8 +87,12 @@ BCp.processOneFileForTarget = function (inputFile, source) {
|
||||
// Start with a much simpler set of Babel presets and plugins if
|
||||
// we're compiling for Node 8.
|
||||
features.nodeMajorVersion = parseInt(process.versions.node, 10);
|
||||
|
||||
features.topLevelAwait = true;
|
||||
} else if (arch === "web.browser") {
|
||||
features.modernBrowsers = true;
|
||||
|
||||
// TODO: add an env var to enable top level await for the client
|
||||
}
|
||||
|
||||
if (! features.hasOwnProperty("jscript")) {
|
||||
|
||||
@@ -5,7 +5,8 @@ Package.describe({
|
||||
});
|
||||
|
||||
Npm.depends({
|
||||
'@meteorjs/babel': '7.16.0-beta.1',
|
||||
// '@meteorjs/babel': '7.16.0-beta.1',
|
||||
'@meteorjs/babel': 'file:///../../../../npm-packages/meteor-babel',
|
||||
'json5': '2.1.1'
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user