-
Notifications
You must be signed in to change notification settings - Fork 292
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 transpileOnly support for TS projects if needed #497
Conversation
This allows us to build faster while we are developing. (As we are not much interest about the type accuracy) With some tests, we can gain upto 2X time reduction when building. I assume the benefit will be more than this for massive projects.
Amaze! |
@@ -177,6 +178,7 @@ module.exports = ( | |||
{ | |||
loader: eval('__dirname + "/loaders/ts-loader.js"'), | |||
options: { | |||
transpileOnly, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, we just need a test for this new behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@styfle sure thing. Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! 🎉
It looks like Circle CI is broken for macOS so we can probably ignore that for now. Ironically, GH Actions has the opposite problem where macOS passes and Linux fails 🤷♂ (see #494)
This allows us to build faster while we are developing.
(As we are not much interest about the type accuracy)
With some tests, we can gain upto 2X time reduction when building.
I assume the benefit will be more than this for massive projects.