Skip to content

feat: Only compile bundled TS files #46

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

Closed
wants to merge 1 commit into from

Conversation

tfoxy
Copy link
Member

@tfoxy tfoxy commented Aug 4, 2020

This change is done in order to not compile files that will be not part of the bundle (e.g. spec files).

@tfoxy tfoxy self-assigned this Aug 4, 2020
use: [{ loader: 'ts-loader' }],
use: [{
loader: 'ts-loader',
options: { onlyCompileBundledFiles: true },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did the same thing in another PR which is pending right now. It is not merged yet because I don't have time to test it. Did you test if it works correctly in real project?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Yup, I tested building a library and using it in the app.

@tfoxy
Copy link
Member Author

tfoxy commented Aug 4, 2020

Duplicated of #41

@tfoxy tfoxy closed this Aug 4, 2020
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

Successfully merging this pull request may close these issues.

2 participants