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
When you try to overwrite the entrypoints in vite.config.ts file in lib mode, the optimizer just replace your specified entrypoint for the default, disrespecting the one you specified. I take a look to the optimizer.js file and the error occurs in here line 1870:
edit vite config file and add a custom lib.entry object or array ~ you can do this in vite, is in the docs ~ (only if you pass a custom string as entry point this is gonna be the entry, otherwise always is gonna be replaced by 'src/index.ts'
Fix this is very easy, you only need to check when the lib mode is activate if the inputOpts.input parameter in the normalizeOptions function is type Object or Array and make the proper handling for each case.
The text was updated successfully, but these errors were encountered:
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
When you try to overwrite the entrypoints in vite.config.ts file in lib mode, the optimizer just replace your specified entrypoint for the default, disrespecting the one you specified. I take a look to the optimizer.js file and the error occurs in here
line 1870
:Reproduction
https://github.com/diecodev/qwik-date/blob/main/vite.config.ts
Steps to reproduce
System Info
Additional Information
Fix this is very easy, you only need to check when the lib mode is activate if the
inputOpts.input
parameter in thenormalizeOptions
function is type Object or Array and make the proper handling for each case.The text was updated successfully, but these errors were encountered: