-
Notifications
You must be signed in to change notification settings - Fork 22
webpack --watch ignores changes in local dependencies after receiving syntax error there #8
Comments
|
Can you paste your entire webpack config? |
https://github.com/garkin/bs_loader_webpack_watch_bug/blob/master/webpack.config.js const path = require('path');
module.exports = {
entry: {
core: "./src/index.re"
},
resolve: {
extensions: ['.re', '.ml', '.js']
},
output: {
path: path.resolve(__dirname, 'out'),
filename: '[name].js'
},
module: {
rules: [
// https://github.com/rrdelaney/bs-loader
{ test: /\.(re|ml)$/, use: { loader: 'bs-loader', options: { module: 'es6' } } }
]
}
} |
Try adding "errorType: warning" to the loader options |
After adding:
Watching is working as intended, but there are no error output in the console at all. |
Does running "bsb-w" work for you? |
Yes, |
Hmm. This is definitely weird. I think it might be an issue using this with Windows. I can't look too much into it right now, but I'll check it out later. |
I can reproduce it on CentOS. |
Thanks so much for trying again on another OS! That makes it easier for me to test 😄 |
This is 100% not a Windows issue, thanks so much for proving an example repo where the issue can be seen! I'm working on this now |
Try out version |
Thank you, it's now fixed. |
Hey! Thanks for submitting this issue 😄Reason-Scripts will automatically run "npm link bs-platform" upon install. |
https://github.com/garkin/bs_loader_webpack_watch_bug
Steps to reproduce
git clone https://github.com/garkin/bs_loader_webpack_watch_bug
npm install
npm start
to start watching using webpacksome syntax error
line in thesrc/fib.re
to break program and get an errorsome syntax error
line in thesrc/fib.re
to restore program correctnessExpected behavior:
After removing error in
src/fib.re
- changes are recompiled and we get console output about succesfull recompilation.Actual behavior:
(5.) and further
src/fib.re
changes are not recompiled and we do not get updates in the console.But changes in the entry
src/index.re
do trigger correct recompilation.Environment:
The text was updated successfully, but these errors were encountered: