There are a few strange things about the vite builds that should be investigated and possibly addressed:
[ ] - The rollupOptions.input includes both the index.html file and the entry_point.html file. Given the changes in #246 it seems like we should only need to include index.html. However when we do that the build fails with the error:
error during build:
Error: EISDIR: illegal operation on a directory, open '/home/fd2dev/FarmData2/modules/farm_fd2/dist/farmdata2/tray_seeding/index.html'
[ ] - There are .js files in the dist for some of the components but not others (e.g. CropSelector/CropSelector.js). but it is not clear why this is the case. All of the code for the components that do not have their own .js file is lumped into the uiUtil.js file in the dist. The farmosUtil library also seems to be getting lumped into this file in the dist as well. It all seems to work okay, but it seems odd.
There are a few strange things about the vite builds that should be investigated and possibly addressed:
[ ] - The
rollupOptions.input
includes both theindex.html
file and theentry_point.html
file. Given the changes in #246 it seems like we should only need to includeindex.html
. However when we do that the build fails with the error:[ ] - There are
.js
files in thedist
for some of the components but not others (e.g.CropSelector/CropSelector.js
). but it is not clear why this is the case. All of the code for the components that do not have their own.js
file is lumped into theuiUtil.js
file in thedist
. ThefarmosUtil
library also seems to be getting lumped into this file in thedist
as well. It all seems to work okay, but it seems odd.