biotope / biotope-build

Biotope Build Framework
https://build.biotope.sh
MIT License
24 stars 10 forks source link

Using vendor libraries that have identically named entrypoints not possible #413

Open luke-m opened 4 years ago

luke-m commented 4 years ago

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.