fix(dev): vite base and qrl segment fixes by wmertens · Pull Request #6629 · QwikDev/qwik (original) (raw)
- fixes nx monorepo path lookup in dev mode
- fix vite prefix for css etc
- fix qrl segment path encoding for windows in dev mode
- only pass parent filename since path is always the same
- simplify resolveId path handling
- change starter to only add service worker in production
- add base url to manifest
without this, the react-dom server is loaded with require statements in dev mode
This is a temporary fix, the real fix is to remove the full build during buildStart, and then only rely on .qwik in the filename. This avoids overbuilding and allows other vite plugins to transform the code.
This way the generated imports by vite and the generated qrl segments are in the same path in devtools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})