From 58925913dd9a7fa4ba56e95ca947c5fd0196524d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pontus=20=C3=96stlund?= Date: Sun, 29 Jan 2023 20:26:41 +0100 Subject: [PATCH] Keep the generated source map 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 --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f8bb4fc..eefb6eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -135,7 +135,6 @@ function readSvg(options: Options = { type: 'component' }): Plugin { generate: isBuild ? 'ssr' : 'dom', }) - delete js.map data = js }