Skip to content

Commit

Permalink
work around changed rollup types
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Oct 9, 2022
1 parent cb8ea34 commit ce37169
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ const plugin: PluginImpl<Options> = (options = {}) => {
for (const filename of input) {
let name = filename.replace(/((\.d)?\.(t|j)sx?)$/, "");
if (path.isAbsolute(filename)) {
name = path.basename(name)
name = path.basename(name);
} else {
name = path.normalize(name)
name = path.normalize(name);
}
options.input[name] = filename;
}
}

programs = createPrograms(Object.values(input), compilerOptions);

return transformPlugin.options!.call(this, options);
return (transformPlugin.options as any).call(this, options);
},

outputOptions: transformPlugin.outputOptions,
Expand All @@ -84,7 +84,7 @@ const plugin: PluginImpl<Options> = (options = {}) => {
if (typeof source === "object") {
code = source.getFullText();
}
return transformPlugin.transform!.call(this, code, id);
return (transformPlugin.transform as any).call(this, code, id);
};
if (!tsx.test(id)) {
return null;
Expand Down

0 comments on commit ce37169

Please sign in to comment.