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

Same modules loader - Usage of Typescript #2

Open
QuentinV opened this issue Jun 20, 2018 · 0 comments
Open

Same modules loader - Usage of Typescript #2

QuentinV opened this issue Jun 20, 2018 · 0 comments

Comments

@QuentinV
Copy link
Collaborator

QuentinV commented Jun 20, 2018

Sources in backend and frontend would be happier with the same module loader

Problem:

  • Usage of different module loader in backend and frontend result in duplication of js sources

This becomes an easy problem if the only code we provide is in TypeScript since developers will be able to generate the js sources using the module loader they desire.

Solutions:

  • Keep two differents module loader but generate differents js sources => Typescript set up with two tsconfig and different target dir

  • Generate only one js source and use the same module loader: http://stuk.github.io/require1k/ (CommonJs for browser)

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

No branches or pull requests

1 participant