atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.78k stars 517 forks source link

Building with vite does not remove "This is a development-only message." message #1131

Open tnrich opened 12 months ago

tnrich commented 12 months ago

Bug description

I would assume that running yarn vite build for a project that is importing and using tippy would remove the This is a development-only message. from the built code. Unfortunately it doesn't seem like this is the case.

You can see the built code here: https://raw.githubusercontent.com/tnrich/vite_tippy/master/dist/vite-project.umd.cjs

which contains the message in question:

image

Reproduction

See this repo for a minimal reproduction: https://github.com/tnrich/vite_tippy

I'm not sure if this is vite's fault or tippy's fault or my fault, but any feedback would be appreciated. Thanks!