webpack
react-app-rewired
Our great sponsors
webpack | react-app-rewired | |
---|---|---|
296 | 10 | |
63,120 | 9,609 | |
0.2% | - | |
9.8 | 1.3 | |
1 day ago | 6 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
webpack
-
How to build and publish React TypeScript NPM packages with Vite
The main reason for writing this post is that although Vite is an excellent tool, it is still relatively new and sometimes lacks extensive documentation. When I initially had to set up a Vite npm package, it took me more time than I'd care to admit to get it working properly. Therefore, I've decided to create this post to help individuals who may be facing a similar situation and are looking for an alternative to Webpack.
- Webpack production issue that will break half of the internet
-
Why the negativity towards Webpack?
i was pleased to see webpack continuing to push out releases recently, i am just speculating but maybe there was a passing of the torch because all previous releases before march of this year were done by sokra and now done by thelarkinn (https://github.com/webpack/webpack/releases)
-
The Native Way To Configure Path Aliases in Frontend Projects
Webpack supports the imports field starting from v5.0. Path aliases work without any additional configuration. Here is the Webpack configuration I used to build a test project with TypeScript:
-
How to Effortlessly Improve a Legacy Codebase Using Robots
Run webpack compilation to generate a browser-compatible bundle and emit bundle size metrics
-
Exploring Vite.js: The Lightning-Fast Build Tool for Modern Web Apps
Even, there are several bundling tools available, including popular ones like Webpack and Snowpack.
-
Chat GPT answers seem very helpful... at first glance
The webpack pull request that introduced the cacheWebWorker experiment: https://github.com/webpack/webpack/pull/13262
-
ELI5: What makes different programming languages "better" than others? Or more powerful? Why have different languages developed over time? Are they all based on the same thing?
Issue I found recently working on a security suite build
-
JavaScript Module Bundlers and all that Jazz β¨
Webpack is a static module bundler for modern JavaScript applications. On processing your application - Webpack internally builds a dependency graph from one or more entry points and then combines every module your project needs into one or more bundles, which are static assets from which content is served.
-
Benchmarking the AWS SDK
The other option I want to highlight is packaging the project using something like Webpack or esbuild. JS Bundlers transpile all of your separate files and classes (along with all node_modules) into one single file, a practice originally developed to reduce package size for frontend applications. This helps improve the cold start time in Lambda, as unimported files can be pruned and the entire handler becomes one file.
react-app-rewired
-
Build a web editor with react-monaco-editor
Ejecting a React app is a bad idea because our application will lose all the React configurations and will not benefit from the CRA updates. Some solutions for ejecting our application include using packages like react-app-rewired or rewire. You can also use CRACO to eject your React application, but it needs you to install additional plugins.
-
Accepting Crypto Payments in a Classic Commerce App
Heads up: CRA5 bumped their webpack dependency to a version that no longer supports node polyfills in browsers. This breaks the builds of nearly all Ethereum-related projects today. A common workaround that avoids ejecting is to hook into the CRA build process. Weβre using react-app-rewired but you could simply stay at CRA4 until the community comes up with a better solution.
-
Using Webpack with ReactJS
CRA is good to get something running quick (and it uses webpack underneat!). In the past I've tweaked the webpack config using things like https://github.com/timarney/react-app-rewired when needed, but for all my "serious" projects I ended up ejecting and learning webpack! For my next project I'll try to skip CRA altogether!
-
Simplest Way to Install Babel Plugins in Create React App
// Overrides create-react-app webpack configs without ejecting // https://github.com/timarney/react-app-rewired const { addBabelPlugins, override } = require("customize-cra"); module.exports = override( ...addBabelPlugins( "babel-plugin-myPlugin" /* Add plug-in names here (separate each value by a comma) */ ) );
-
Running React Native everywhere: The Web
If Create React App supported Yarn workspaces out-of-the-box, what we've done so far would have been enough to run the app... unfortunately, it doesn't. Luckily, we can use CRACO (or other tools such as customize-cra or react-app-rewired) to customize the Webpack configuration used by Create React App to resolve packages imported from other workspaces.
-
Enhancing Chrome Extension developer experience with CRA (create-react-app)
Enter react-app-rewired. What this package does is it allows you to hook into the Webpack config process so you can change settings, add loaders or plugins, and so on. It's like having all the pros of ejecting (mainly, access to the webpack.config.js) without actually ejecting.
-
Fullstack GraphQL starter kit Mid-2021 update
Switch to craco from react-app-rewired for better CRA v4 support (breaking change!)
What are some alternatives?
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
esbuild - An extremely fast bundler for the web
vite - Next generation frontend tooling. It's fast!
Rollup - Next-generation ES module bundler
parcel - The zero configuration build tool for the web. π¦π
gulp - A toolkit to automate & enhance your workflow
Snowpack - ESM-powered frontend build tool. Instant, lightweight, unbundled development. βοΈ [Moved to: https://github.com/FredKSchott/snowpack]
lerna - :dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
Microbundle - π¦ Zero-configuration bundler for tiny modules.
FuseBox - A blazing fast js bundler/loader with a comprehensive API :fire:
importmap-rails - Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling.