Change decoratorsBeforeExport default to false (#8113)

This commit is contained in:
Nicolò Ribaudo
2018-06-04 21:12:01 +02:00
committed by GitHub
parent b445b79734
commit 6349118bed
6 changed files with 10 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ export default declare((api, options) => {
);
}
let { decoratorsBeforeExport } = options;
const { decoratorsBeforeExport } = options;
if (decoratorsBeforeExport !== undefined) {
if (legacy) {
throw new Error(
@@ -26,8 +26,6 @@ export default declare((api, options) => {
if (typeof decoratorsBeforeExport !== "boolean") {
throw new Error("'decoratorsBeforeExport' must be a boolean.");
}
} else if (!legacy) {
decoratorsBeforeExport = true;
}
return {