-
-
Notifications
You must be signed in to change notification settings - Fork 373
(fix) - HMR and Typescript #1395
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
Conversation
@@ -36,14 +36,6 @@ async function clientConfig(env) { | |||
polyfills: resolve(__dirname, './polyfills'), | |||
}; | |||
|
|||
if (!isProd) { | |||
entry.bundle = [ |
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.
Removed the unneeded devServers
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.
Does this automatically get added by the plugin / config option?
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.
This is part of the DevServer.hot
option
@@ -73,7 +73,6 @@ async function devBuild(env) { | |||
|
|||
let c = Object.assign({}, config.devServer, { | |||
stats: { colors: true }, | |||
hot: !env.refresh, |
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.
Enabled the hot-server which we use as a base
Co-authored-by: Jason Miller <[email protected]>
02f7aa1
to
cfa7526
Compare
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.
This is fantastic! Outstanding debugging skills🙌
@@ -25,7 +25,7 @@ const cleanFilename = (name) => | |||
); | |||
|
|||
async function clientConfig(env) { | |||
const { isProd, source, src, refresh, cwd /*, port? */ } = env; | |||
const { isProd, source, src, cwd /*, port? */ } = env; |
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.
We should probably remove any mentions of the --refresh
flag in the Readme too👍
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.
it still works, just removed from the clientConfig
and now exclusively present in the devConfig
Thank you for giving this issue your attention! |
On windows the exclude of the Babel.overrides doesn't work making transformations not apply correctly. We had multiple copies of the devServer present and some of them hot others not which make WDS confused.
I need to accurately test this PR a bit more, tested on Windows and it works now need to do it on a UNIX machine.