Change decoratorsBeforeExport default to false (#8113)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -47,8 +47,8 @@ describe("'decoratorsBeforeExport' option", function() {
|
||||
const AFTER = "export @dec class Foo {}";
|
||||
|
||||
// These are skipped
|
||||
run(BEFORE, undefined, false);
|
||||
run(AFTER, undefined, true);
|
||||
run(BEFORE, undefined, true);
|
||||
run(AFTER, undefined, false);
|
||||
run(BEFORE, true, false);
|
||||
run(AFTER, true, true);
|
||||
run(BEFORE, false, true);
|
||||
|
||||
Reference in New Issue
Block a user