esbuild-plugin-html icon indicating copy to clipboard operation
esbuild-plugin-html copied to clipboard

Entry Point Detection Borken If Paths Aren't Relative

Open GuillaumeCLProdigy opened this issue 7 months ago • 1 comments

I have a a project where the paths passed in are explicitly made relative. This means that the paths passed in through the metafile are relative and look like this:

./src/network/gameServer/catalyst/index.ts
./src/network/multiplayer/server/index.ts
./src/network/analytics/segment/index.ts
./src/network/geolocation/internal/index.ts
./src/debug/enabled/index.ts
./static/framework/.init.js
./src/index.ts

But the paths passed in through the metafile looks like this:

src/network/gameServer/catalyst/index.ts
src/network/multiplayer/server/index.ts
src/network/analytics/segment/index.ts
src/network/geolocation/internal/index.ts
src/debug/enabled/index.ts
static/framework/.init.js
src/index.ts

Because the code here uses an includes rather than a path comparison, none of the entry points get included in the HTML file.

I would ask that either this is made clear in the docs, or that the comparison be fixed.

GuillaumeCLProdigy avatar Nov 16 '23 22:11 GuillaumeCLProdigy