Skip to content

entry-names=[dir] always adds an implicit / at the end #1661

@danielbodart

Description

@danielbodart

I have a folder structure like:

src/app1/main.ts
src/app2/main.ts

and I want the result to be:

dist/app1.js
dist/app2.js

I tried to do this with the following command:
esbuild src/**/main.ts --outdir=dist --entry-names=[dir] --bundle

But you end up with this instead:

dist/app1/.js
dist/app2/.js

This feels unintended as a lot of the examples in the docs say --entry-names=[dir]/[name] but this would produce a // if done literally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions