Sample how openlayers can support ESRI shapefile format (files .shp, .shx, .dbf must be into zipped file).
git clone https://github.com/erikfva/ol-shapefile.git
cd ol-shapefile
yarn install
cd src
git clone https://github.com/erikfva/mapshaper.git
cd mapshaper
yarn install
yarn dev
yarn build