From 0988bfab76354955cc289e1a775ba514cb4a7fd4 Mon Sep 17 00:00:00 2001 From: Gil Pedersen Date: Mon, 25 Nov 2019 15:59:06 +0100 Subject: [PATCH] [BUGFIX lts] Fix leftover const expressions in legacy builds --- broccoli/to-named-amd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/broccoli/to-named-amd.js b/broccoli/to-named-amd.js index d8264b1aaff..20327536420 100644 --- a/broccoli/to-named-amd.js +++ b/broccoli/to-named-amd.js @@ -24,6 +24,7 @@ module.exports = function processModulesOnly(tree, strict = false) { // in both browser and node-land injectNodeGlobals, ['@babel/transform-template-literals', { loose: true }], + ['@babel/transform-block-scoping', { throwIfClosureRequired: true }], ['module-resolver', { resolvePath: resolveRelativeModulePath }], ['@babel/transform-modules-amd', transformOptions], enifed,