qwik
qwik copied to clipboard
srcDir option from QwikVitePluginOptions is ignored (qwikVite configuration)
Qwik Version
0.0.41
Operating System (or Browser)
Node
Node Version (if applicable)
No response
Which component is affected?
Qwik Rollup / Vite plugin
Expected Behaviour
I may be missing something, but I think srcDir option passed to qwikVite plugin is not working.
If I set it like this:
qwikVite({
srcDir: './src/components',
}),
And then I move ./src/root.tsx to ./src/components/Root.tsx, I get this error:
[vite-plugin-qwik] Qwik input "......./qwik/blog/src/root.tsx" not found.
So I was thinking that maybe this root.tsx was hardcoded. And yes it is, (here):
// packages/qwik/src/optimizer/src/plugins/plugin.ts#L175
opts.input = [path.resolve(srcDir, 'root.tsx')];
So then I modified root.tsx and used Root.tsx instead. Now the error is:
[vite-plugin-qwik] Qwik input "......./qwik/blog/src/Root.tsx" not found
So this confirms that the line number 175 is indeed in charge of this, but also confirms that srcDir it's not being used.
Actual Behaviour
.
Additional Information
No response