Comments (2)
Hi, I have the same problem, it took me hours to find out what was wrong, and it turned out to be the same problem you have, if I don't use hmr
, everything works as expected. I see this has been flagged over a year ago, did you find a workaround it?
from browserify-hmr.
a workaround this would be to use browserify global
, so instead of exporting functions this way
// watchify -p browserify-hmr ... --standalone myapp
export function initActions() {}
export function initForms() {}
use global
this way
// watchify -p browserify-hmr ...
var myapp = global.myapp || {};
myapp.initActions = function() {};
myapp.initForms = function() {};
global.myapp = myapp;
make sure that functions and variables in myapp
don't get redefine in different files.
I hope in the future I can have sometime to fix this behavior in browserify-hmr
. Meanwhile I love browserify-hmr
:)
from browserify-hmr.
Related Issues (20)
- Problem with engine-io HOT 5
- Capturing browserify errors HOT 1
- Not working with browserSync HOT 2
- The problem of using numeric indexes in browserify HOT 1
- Doesn't handle $$ in filenames correctly HOT 2
- Embeddable server
- The Example doesn't work. HOT 2
- how can i define a one accept method for all enabled modules? HOT 1
- Error in browser when using the plugin method in Gulp+Browserify+Browsersync HOT 5
- Doesn't work with factor-bundle HOT 1
- Broken with the latest version of browserify
- Can't get it to work from remote server HOT 2
- Access browserify-hmr across docker container. HOT 1
- [PUG] how to use HMR template engine express
- A vulnerability found in browserify-hmr HOT 1
- npm install - vulnerability warning (0.3.7) HOT 1
- [Feature-request] Dispatch custom DOM events when HMR updates modules
- 0.3.7 -> 0.40 broke HOT 3
- Error messages from react-hot-loader
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browserify-hmr.