Comments (7)
+1 to keep browserify
from opossum.
Reopening, as I do believe webpack is the way to go after having read and heard more.
from opossum.
links:
http://blog.namangoel.com/browserify-vs-webpack-js-drama
https://www.toptal.com/front-end/webpack-browserify-gulp-which-is-better
http://perkframework.com/v1/blog/webpack-vs-browserify-the-ultimate-showdown.html
https://webpack.github.io/docs/comparison.html
https://laracasts.com/discuss/channels/elixir/browserify-vs-webpack-which-is-better
https://www.slant.co/versus/3454/11602/~browserify_vs_webpack
https://mattdesl.svbtle.com/browserify-vs-webpack
https://soledadpenades.com/2015/02/20/webpack-vs-browserify/
https://engineering.velocityapp.com/webpack-vs-browersify-vs-systemjs-for-spas-95b349a41fa0
from opossum.
Note: Focusing on the opossum's context only.
webpack
- "never tries to actually be compatible with node.js
- "It is built, from the ground up, to help you manage static assets for the front-end"
- "brings more features and puts them in core"
- "will always require some configuration to work for anything but the most basic case"
- Install size (including dependencies):
[hf@t440 fooing]$ cat package.json
{
"name": "fooing",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"webpack": "^3.0.0"
}
}
[hf@t440 fooing]$ npm install
> [email protected] install /home/hf/dev/fooing/node_modules/fsevents
> node install
> [email protected] postinstall /home/hf/dev/fooing/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
added 342 packages in 10.573s
[hf@t440 fooing]$ du -s -h node_modules/
39M node_modules/
browserify
- "was born to make your Node code in the browser."
- "expects to be used only in a Node.js project"
- "is a smaller more ‘modular’ tool"
- "is much more likely to work with minimal configuration but will force you into a small set of conventions"
- Install size (including dependencies):
[hf@t440 fooing]$ cat package.json
{
"name": "fooing",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"browserify": "^14.4.0"
}
}
[hf@t440 fooing]$ npm install
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
added 131 packages in 2.199s
[hf@t440 fooing]$ du -s -h node_modules/
15M node_modules/
random:
If however, you’re predominantly dependent on the NPM ecosystem and you want a tool with a small and very well designed API and takes minimal configuration, you should go for Browserify. It doesn’t have all the features of Webpack, but it does have most, and it’s very easy to get started with.
from opossum.
Very simple changes so far (https://github.com/bucharest-gold/opossum/compare/53-webpack). For some reason, webpack is barfing on the test suite, so I'm not sure what we should do about that. It also barfs when having it output a compressed file. This, I think, is because it's using UglifyJS which cannot deal with certain ES6 syntax. Maybe this is related.
from opossum.
@lance is really necessary to have both exploded opossum.js
and compressed opossum.min.js
?
using escompress
:
-rw-rw-r--. 1 hf hf 92687 Feb 21 16:58 opossum-min.js
plus extra build steps on package.json and Makefile
using babel-minify-webpack-plugin
(20K smaller but only min version on dist folder):
-rw-rw-r--. 1 hf hf 72342 Feb 21 16:25 opossum.js
plus a require() and a plugin on webpack.config
from opossum.
@helio-frota I can live with that.
from opossum.
Related Issues (20)
- Feature request: resetTimeout and half-open state without a timer. HOT 1
- Reset stats in CircuitBreaker instance HOT 4
- Breaker State Initialization not working as documented HOT 9
- Support Node.js 20 HOT 4
- Is there a reason you are mixing rest parameters and Array.prototype.slice calls in the same functions? HOT 1
- Automated publish fails using Node 16 HOT 2
- Engines does not include Node 19 HOT 2
- Abort controller is controlling at the breaker level, not for each run HOT 3
- Question - best way to implement in a serverless environment with concurrent executions HOT 1
- Feature request: add an option to disable stats snapshots HOT 3
- Lack of Count-Based Rolling Window HOT 3
- different thresholds for different error types HOT 3
- Half open state allowing all requests HOT 1
- Setting some options to `0` doesn't work (it still uses defaults) HOT 2
- Max stack depth exceeded when benchmarking HOT 9
- How can I get single CB for whole HTTP Client with Opossum? HOT 5
- Create the opossum circuit breaker in node js as a Singleton instance HOT 3
- Internal method can be overwritten HOT 4
- Suggestion: Change `CircuitBreaker` type declaration HOT 5
- AbortController break fetch after first timeout because aborted signal can't be re-used HOT 8
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 opossum.