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
+1 This bug leads to preserveModuleRoot not working. That startsWith is definitely the smoking gun. Until this pr get merged, my temp fix (see Tanimodori/generator-vite-electron-builder@ae8351a) is adding plugin to fix:
Rollup Version
2.70.1
Operating System (or Browser)
Windows
Node Version (if applicable)
14.16.1
Link To Reproduction
not available
Expected Behaviour
Seems like on Windows, preserveModulesRoot: 'src' will only work on entry files (files defined in "input"). While on OSX it will work on all files.
I would expect it to be consistent between different environments.
Found this question but there is no working answer:
https://stackoverflow.com/questions/64570174/rollup-preservemodulesroot-not-working-as-expected
Actual Behaviour
I have a build output defined like:
When building on Windows, the output in dist is like:
esm/components will only include d.ts files and esm/src/components will actually include .js files
When building on OSX, the output in dist is like:
notice there is no "src" folder and all files are placed inside esm/components.
The text was updated successfully, but these errors were encountered: