Skip to content

Commit

Permalink
Keep the generated source map
Browse files Browse the repository at this point in the history
This removes the "Sourcemap is likely to be incorrect: a plugin (sveltekit-svg) was used to transform files..." warning seen when using this plugin outside of SvelteKit
  • Loading branch information
poppa committed Jan 29, 2023
1 parent b50c83a commit 5892591
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ function readSvg(options: Options = { type: 'component' }): Plugin {
generate: isBuild ? 'ssr' : 'dom',
})

delete js.map
data = js
}

Expand Down

0 comments on commit 5892591

Please sign in to comment.