vite-plugin / vite-plugin-dynamic-import

Enhance Vite builtin dynamic import
https://www.npmjs.com/package/vite-plugin-dynamic-import
MIT License
193 stars 11 forks source link

Hide warning? #34

Closed itayganor closed 2 years ago

itayganor commented 2 years ago

Added to my plugins config:

dynamicImport({viteIgnore: () => true}),

But I still see the following output in the console:

3:31:08 PM [vite] warning: invalid import "./assets/${file}". A file extension must be included in the static part of the import. For example: import(`./foo/${bar}.js`).
  Plugin: vite:dynamic-import-vars
  File: ...

Is there a way to hide this warning?

caoxiemeihao commented 2 years ago

The message from vite:dynamic-import-vars of Vite built in.