Skip to content

Silence missing sourcemap warning - #3

Open
tstriker wants to merge 1 commit into
dansvel:mainfrom
tstriker:main
Open

Silence missing sourcemap warning#3
tstriker wants to merge 1 commit into
dansvel:mainfrom
tstriker:main

Conversation

@tstriker

@tstriker tstriker commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

When sourcemaps have been enabled, Vite will spit out the following warning:

[plugin vite-plugin-markdown] Sourcemap is likely to be incorrect: a plugin (vite-plugin-markdown) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

Considering that the markdown conversion will not create JS exceptions, it's safe to explicitly tell vite that this plugin does not produce sourcemaps (nothing to see here).

This fixes the warning in the terminal

When sourcemaps have been enabled, vite will spit out the following warning:
> [plugin vite-plugin-markdown] Sourcemap is likely to be incorrect: a plugin (vite-plugin-markdown) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

Considering that the markdown conversion will not create JS exceptions, it's safe to explicitly tell vite that this plugin does not produce sourcemaps (nothing to see here).

This fixes the warning in the terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant