Comments (9)
As part of the PR, I'd like to update the dispatcher to the newer ES6 version.
from flux.
I think #54 is going to update to the latest dispatcher code. I think we should use npm and not force anything ES6 just because we can.
I don't feel strongly about webpack (sure it has some upsides) so I'll let @fisherwebdev chime in.
from flux.
Specifically what do we gain by switching to Webpack? That is, how does switching to Webpack clarify the examples or make them easier to get up and running? If you can make the case that people will gain a better understanding of Flux, and be up and running faster and easier, then I think it makes sense to switch. If not, then I think this seems like a situation where you could fork the repo, and we could point interested Webpack enthusiasts to your fork.
from flux.
@petehunt turned me on to webpack. I cannot comment on the alternative, as I've mostly used WebPack. I really enjoy how WebPack updates the client side JavaScript code nearly instantly, and these updates include the rendering, and often the models. Sometimes I do refresh the browser, but more often, I don't. The configuration is also very easy for a newbie. In this repo, https://github.com/justin808/react-webpack-rails-tutorial, inside of the webpack directory, the webpack dev server handles the code there. I wrote this up here: http://www.railsonmaui.com/blog/2014/10/02/integrating-webpack-and-the-es6-transpiler-into-an-existing-rails-project/.
from flux.
@fisherwebdev Hot reload (whether via webpack, browsersync.io, or other library) makes exploratory development -- AKA, exactly what an interested React/Flux beginner will want to do -- significantly easier.
from flux.
@pikeas given the issues cited here (for example) http://mattdesl.svbtle.com/browserify-vs-webpack
Why would webpack be any easier than currently using browserify? It certainly seems less scalable.
Looking at the documentation for webpack the configuration is almost more complex than require.js-- which feels like a step back, but the killer issue is that the overloading of require calls with loader directives makes webpack modules unrunnable in node:
require('json!./foo.json')
That's hard to see as a win.
from flux.
@sterpe Your points are fair. Although I personally prefer webpack, I'm advocating for hot reloading in some capacity, regardless of implementation details.
Regarding require('json!./foo.json')
, loaders can be specified in the webpack config file, so that require
stays clean: http://webpack.github.io/docs/loaders.html#loaders-by-config
from flux.
Sure but there we get into that configuration complexity to do something that browserify does with none or very little. Just seems weird to me.
Really do we need to hot load these demos? Honestly how much time do people spend playing with them before they put them away and start building something real?
from flux.
I'd rather not have the Browserify vs. Webpack debate here. If you're inclined, there are plenty of other places on the web to have that debate, such as https://gist.github.com/substack/68f8d502be42d5cd4942.
I think a new Flux example might be worth developing -- perhaps that one could use Webpack, just to show another way of doing it. The subject of a new example has come up a couple of times, most recently in #134, so I think we could see a Webpack example soon.
from flux.
Related Issues (20)
- Cannot dispatch in the middle of a dispatch. HOT 1
- New Flux store instance created upon second component referencing store HOT 7
- Flux Utils + Hooks HOT 6
- TypeError: Class constructor App cannot be invoked without 'new' HOT 1
- Using version of fbjs that depends on unsupported core-js module HOT 2
- Please update the following components: FluxContainer(containerClass) React 16.10.2 HOT 5
- how do we differ from Architecture and pattern? HOT 1
- Is this code a good way to update react component from dispatch in OOP class object? HOT 2
- Flux container breaks class methods defined with class properties syntax HOT 1
- Container create context issues after Babel 7.9.x update. HOT 5
- CVE-2020-15168 found in [email protected] HOT 13
- CVE-2020-7733 vulnerability by linking to an older fbjs version HOT 2
- Is fbemitter project discontinued? Is flux? HOT 1
- Add React 17 support
- NPM reports flux vulnerabilities HOT 3
- CVE-2021-27292: ua-parser-js needs to upgrade to 0.7.24 HOT 4
- mock flux store - react test HOT 2
- Will there be a Chinese version? HOT 1
- Video goes off screen and does not fit neatly HOT 1
- Add react-18 as peer dependency. HOT 1
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 flux.