Skip to content

Commit

Permalink
copy coed from tobias
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Dec 11, 2018
1 parent 2d70b07 commit b27e344
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion broccoli/debug-macros.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
};
3 changes: 3 additions & 0 deletions broccoli/to-named-amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit b27e344

Please sign in to comment.