Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for split targets of mains for definitions #6

Open
davidje13 opened this issue Sep 16, 2020 · 0 comments
Open

Add support for split targets of mains for definitions #6

davidje13 opened this issue Sep 16, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@davidje13
Copy link
Owner

davidje13 commented Sep 16, 2020

Currently multiple mains entries are supported, but they are always bundled into a single TypeScript "program" and compiled into the output directory.

Configurations such as the following do not work as expected, because the folder structure changes during compilation:

    mains: {
      index: 'index',
      page1: 'pages/page1',
    },

Need to find out if TypeScript has any support for this type of functionality (simply creating multiple programs is not ideal since it will result in duplication of common dependencies, rather than sharing dependencies by changing relative imports)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant