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,