Skip to content

Unclear which base is best for Web based typescript packages #264

Open
@ryanbas21

Description

@ryanbas21

Hi,

I spent a long time yesterday trying to understand what tsconfig settings one should use for creating a typescript package intended for use on the web. I believe, based on the documentation, Node16 is still the best option since it mostly will work with bundlers.

It would be a nice addition to this repo to have a little more clarity for those creating packages specifically for the web. This could be simply adding text above which config fits this need the best.

Also - Node16 changes how imports need to resolve with extensions which i know is not the most common practice in modern web development, although it seems to be the written standard ( may be wrong on that).

So i guess my issue is, can we either add text to the proper config and note this is best for web based packages as well - or create a base that highlights a config that a web based package can use and publish to npm, to create a modern typescript package intended to be consumed by others.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions