Skip to content

Commit

Permalink
fix(sourcemap): applySourceMap requires a file path (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChelesteWang committed Dec 21, 2021
1 parent 5d37201 commit ec67a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Expand Up @@ -154,7 +154,7 @@ export class PluginContainer {
)
const generator =
SourceMapGenerator.fromSourceMap(originalConsumer)
generator.applySourceMap(newConsumer)
generator.applySourceMap(newConsumer, info.path)
info.map = generator.toJSON()
originalConsumer.destroy()
newConsumer.destroy()
Expand Down

1 comment on commit ec67a11

@vercel
Copy link

@vercel vercel bot commented on ec67a11 Dec 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.