Skip to content

feat: Only compile bundled TS files#46

Closed
tfoxy wants to merge 1 commit intomasterfrom
only-compile-bundled-ts-files
Closed

feat: Only compile bundled TS files#46
tfoxy wants to merge 1 commit intomasterfrom
only-compile-bundled-ts-files

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