biotope-build
biotope-build copied to clipboard
Using vendor libraries that have identically named entrypoints not possible
Scenario: A developer installs 2 dependencies in his biotope project, both having an entrypoint file with the name index.js
. He registers them both in projectConfig.js
. During the serve
process, biotope tries to copy both files into .tmp/resources/js/vendor
but because they have the same name, one overrides the other. Thus, one of the dependencies is not available during the serve
process.
Suggestion: 1) Add a prefix and rename the files: dependency-a-index.js
, dependency-b-index.js
. 2) Add subfolders for the /vendor
folder. vendor/dependency-a/index.js
, vendor/dependency-b/index.js
.