[v5] lowercase filenames breaks imports
Created by: nlemoine
Hi,
I'm using latest version of bootstrap (master). Until now, I built my js bundle (with rollup) on my local laptop (Mac OS, unsensitive case filesystem).
The file looks like:
import 'bootstrap/js/dist/carousel';
import 'bootstrap/js/dist/collapse';
import 'bootstrap/js/dist/modal';
Works like a charm. Until I setup a CI to do the build job for me.
Could not resolve './dom/eventHandler.js' from node_modules/bootstrap/js/dist/carousel.js
I guess this error is caused by require('./dom/eventHandler.js')
whereas the filename is eventhandler.js
.
Maybe filenames should adopt another standard to be more consistent (lower with dashes)?