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
Don’t always add "defaultIgnorePatterns" #1543
Comments
@rluba Hi! This was not technically a breaking change, since it was introduced only when the new 'watch' option is used - although I can see why it appears to be. The simplest solution for you, is to remove // before
browserSync.init({
server: "./app",
watch: true
}}
// after
browserSync.init({
server: "./app",
files: [
"./app",
"node_modules/some/dir",
"bower_components"
]
}} or to just watch everything
|
browser-sync/lib/cli/transforms/addDefaultIgnorePatterns.ts Lines 13 to 15 in f72a6ad
|
Hi @shakyShane, that’s what I initially expected, but we didn’t provide the Our usage looks like this: const server = browserSync.create('App');
server.init(files, {
startPath: '/index.html',
server: {
baseDir: baseDirs,
middleware: proxy(config) // a partial HTTP proxy, doesn’t affect this issue
},
open: false,
ghostMode: false
}, callback); with baseDirs = [ 'build/.tmp', 'app' ];
files = [
'app/src/**/*.html',
<some files benath node_modules or bower_components>
'build/.tmp/**/*'
]; Touching any files in The exact same configuration works when downgrading to |
@rluba thanks for the detail In that case it does seem like a bug, I'll investigate asap! :) |
Now that 2.24.0 is out, I'll be getting to this next :) |
@rluba I've found the bug, I'll release a fix this evening :) |
Thank you for your support, I really appreciate it. |
@rluba I just published a release candidate - could you try it on your projects and let me know if it works :) I was able to reproduce in both unit & integration tests, so I'm confident - but since you raised the bug I'd appreciate the verification Please try browser-sync@2.24.3-rc1
or
|
fix: Don’t always add "defaultIgnorePatterns" - fixes #1543
Fixed in browser-sync@2.24.3 |
It works again. Thank you! ✌️ |
Issue details
browser-sync
introduced a breaking change inv2.22.0
: It added a list ofdefaultIgnorePatterns
that are not only default, but always ignored.We are often developing with symlinked packages (via
npm link
/bower link
). We intentionally watch certain files innode_modules
andbower_components
to ease working across package boundaries. This broke inv2.22.0
since these files are now always ignored. There’s no way to disable these "default" ignore patterns—they are unconditionally merged with any ignore patterns defined by the user.Please specify which version of Browsersync, node and npm you're running
Affected platforms
(But it will probably affect the others as well…)
Browsersync use-case
(But it will probably affect the others as well…)
The text was updated successfully, but these errors were encountered: