Skip to content

Commit

Permalink
fix(babel): allow unannotated function schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 27, 2023
1 parent 807d68a commit 8c09c02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/loader/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ const babelPluginUntyped: PluginItem = function (api: ConfigAPI) {
schema.type = "function";
schema.args = [];

if (!schema.tags.includes("@untyped")) {
return;
}
// TODO: Check for possible external regressions and only opt-in for loader if any
// if (!schema.tags.includes("@untyped")) {
// return;
// }

const _getLines = cachedFn(() => this.file.code.split("\n"));
const getCode: GetCodeFn = (loc) => {
Expand Down

0 comments on commit 8c09c02

Please sign in to comment.