You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reopen #16241 issue, because only 1/2 is solved for me / for my user case..
The problem is gone but only when I'm running npm run build, and the build version is going good (Thanks @bluwy), but if I running the same code but usings npm run dev (renamed to start in my sample project, which attached below)
Suggested solution
In both cases, vite should skip adding the compiler wrapper (__vite__injectQuery) if this is indicated by a special comment:
Unfortunately we cannot simply skip injecting __vite__injectQuery as it'll break some apps (#14851 (comment)). I guess #9981 could solve this in an ideal way.
@sapphi-red why not? now it's bipolar: on build you got one result, and on running dev - another
You can jump into my sample repo and check why is it important, at least for my existing and prod case
Idk what is your 9981 case, but if it should work with my case - please, just show me, and reply with comment, like why is it should be "this crunch" and not the All-In-One-Box tool (as vite is, by mho)
Description
Reopen #16241 issue, because only 1/2 is solved for me / for my user case..
The problem is gone but only when I'm running
npm run build
, and the build version is going good (Thanks @bluwy), but if I running the same code but usingsnpm run dev
(renamed tostart
in my sample project, which attached below)Suggested solution
In both cases, vite should skip adding the compiler wrapper (
__vite__injectQuery
) if this is indicated by a special comment:/* @vite-ignore */
Alternative
undo #16556 (ha ha)
Additional context
Repo: https://github.com/b5414/sample // attention to
src\rendered\assets\background_modules.js:21
To see the issue, just open the console (
ctrl + shift + i
orf12
) of opened google dot com window by extension with S iconbuild
- you will see:test info: <Module>
start
- you will see:test err: bla bla bla __vite__injectQuery undefined
Validations
The text was updated successfully, but these errors were encountered: