diff --git a/broccoli/debug-macros.js b/broccoli/debug-macros.js index 6b250d26cdd..5b86d2f16b3 100644 --- a/broccoli/debug-macros.js +++ b/broccoli/debug-macros.js @@ -39,5 +39,9 @@ module.exports = function debugMacros(tree, environment) { ], ]; - return new Babel(tree, { plugins }); + let parserOpts = { + plugins: [['decorators', { decoratorsBeforeExport: true }]], + }; + + return new Babel(tree, { plugins, parserOpts }); }; diff --git a/broccoli/to-named-amd.js b/broccoli/to-named-amd.js index d309c2ef237..4fef2908426 100644 --- a/broccoli/to-named-amd.js +++ b/broccoli/to-named-amd.js @@ -27,6 +27,9 @@ module.exports = function processModulesOnly(tree, strict = false) { ['@babel/transform-modules-amd', transformOptions], enifed, ], + parserOpts: { + plugins: [['decorators', { decoratorsBeforeExport: true }]], + }, moduleIds: true, getModuleId: getRelativeModulePath, };