vite-plugin / vite-plugin-commonjs

A pure JavaScript implementation for CommonJs
MIT License
105 stars 16 forks source link

[plugin:vite-plugin-commonjs] invalid import "require(depName)" #56

Open NiharsGIT opened 1 month ago

NiharsGIT commented 1 month ago

image

image image

issue is encountered after we added dev options in vite pwa, if we remove issue disappears as pwa will be disabled for development mode, but this is much needed to debug service worker, cache related features. image

yejimeiming commented 2 weeks ago

Can you provide a minimal reproduction repo?