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
Hi, I have a problems with gulp, watchify and browserify.
Versions:
NodeJS 0.12.1
gulp 3.8.11
watchify 3.1.0
browserify 9.0.6
Windows 10 64bit
Currently I have setup gulp to transpile ES6 files from a src folder into a target folder with the same directory structure. I've setup watchify to watch after target/client/js/client.js which is the client side browserify entry point.
If a dependency changes or the entry point file itself, the bundler is never executed (watchify doesnt get the update event triggered). If I manually trigger a call to bundle() then only the last state of the saved file is bundled into the final bundle.js file instead of the current one, as if the last version is cached. However, the files in the target folder (which got transpiled by babel) have the right state, it's only the bundle.js file, which has the one version older file compiled in.
Workflow:
client.js is the main entry point
client.js has a dependency Router.js
Router.js has a dependency NotFoundView.js
NotFoundView.js has dependency NotFound.js
Neither changing one of this files will trigger watchify to emit the 'update' event
I'm experiencing the exact same issue in a react project (assuming it's something to do w/ reactify/babel transforms)
Some other notes:
On the written to notification the timer seems to represent the time since the last update instead of how long it took to actually build the new bundle.
@derekr @XemsDoom It was a temporary issue in browserify@9.0.6, browserify/browserify#1195 fixed it. So just reinstall watchify so that it pulls in browserify@9.0.7 and you're good to go.
Hi, I have a problems with gulp, watchify and browserify.
Versions:
Currently I have setup gulp to transpile ES6 files from a
src
folder into atarget
folder with the same directory structure. I've setup watchify to watch aftertarget/client/js/client.js
which is the client side browserify entry point.If a dependency changes or the entry point file itself, the bundler is never executed (watchify doesnt get the update event triggered). If I manually trigger a call to bundle() then only the last state of the saved file is bundled into the final bundle.js file instead of the current one, as if the last version is cached. However, the files in the
target
folder (which got transpiled by babel) have the right state, it's only the bundle.js file, which has the one version older file compiled in.Workflow:
The code snippet for watchify is copied from https://github.com/gulpjs/gulp/blob/master/docs/recipes/fast-browserify-builds-with-watchify.md
Relevant gulpfile code:
The text was updated successfully, but these errors were encountered: