Skip to content

Commit

Permalink
fix: sourcemap and error code frame
Browse files Browse the repository at this point in the history
  • Loading branch information
herberttn committed Jul 4, 2023
1 parent df17f3f commit a2d5a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function createPlugin(options?: Options): PluginOption {

try {
const compilerOptions = prepareCompilerOptions(cache, file, options);
const compiler = ts.transpileModule(code, { compilerOptions });
const compiler = ts.transpileModule(code, { compilerOptions, fileName: file });

return {
code: compiler.outputText,
Expand Down

0 comments on commit a2d5a74

Please sign in to comment.