Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Request a sample showing a project that targets Node and the Browser without an external bundler #156

@breck7

Description

@breck7

For new samples, please provide a detailed explanation of the intended sample

It is very hard to get imports and compiling working seamlessly if you are building an app with 2 targets: primarily for the browser but can also be run headless in node(for testing). The combinatorics of number of TSC config options and ways to do imports/references/requires/exports/etc is huge.

How about a somewhat complex sample browser app that can also be run headless for testing purposes.

list of technologies or tools used

It should include 2 core TypeScript file, one small file for the browser only, and then 1 test script. It should have 1 external npm dependency that is used only when run in Node, and 1 external browser dependency only used in the browser (jquery or something like that).

It should not use webpack or any other bundler like that. Just TSC.

and an explanation of why existing samples are not sufficient and a new sample is needed.

See explanation above.

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