You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been playing around with References in typescript which is quite a new concept and noticed that the plugin is executing a command on --watch that is not compatible with full project builds. This results in errors that .d.ts is not defined. To resolve this, we have to call the --build flag in the watch call in order to pass all the resources through the watch.
I prototyped a solution which was a bit hacky... Basically isEmit cannot be passed into the call if a --build is happening. Something like the following will work
Alternative would be to make args actually replace --noEmit. So that the default value is --noEmit, but you can customise the whole chain... Something like so...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been playing around with References in typescript which is quite a new concept and noticed that the plugin is executing a command on --watch that is not compatible with full project builds. This results in errors that .d.ts is not defined. To resolve this, we have to call the --build flag in the watch call in order to pass all the resources through the watch.
I prototyped a solution which was a bit hacky... Basically isEmit cannot be passed into the call if a --build is happening. Something like the following will work
Alternative would be to make args actually replace --noEmit. So that the default value is --noEmit, but you can customise the whole chain... Something like so...
This option, while simpler, would cause problems for anyone using args expecting --noEmit to be set.
Beta Was this translation helpful? Give feedback.
All reactions