![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
JS script bundling/compiling tools have various ways to emit entry point
dependencies. Browserify has a simple browserify --list
option, which outputs
a list of paths to files that the entry point depends on. Makedeps accepts that
on stdin, and writes out a Make-compatible dependency file to stdout.
At some point this might end up supporting Webpack as well. (Which is why this exists to begin with, as the Browserify case could probably done using some sed magic)
makedeps <target-name>
$ browserify foo.js -o foo-bundled.js --list
/path/to/bar.js
/path/to/baz.js
$ browserify foo.js -o foo-bundled.js --list | makedeps foo-bundles.js
foo-bundled.js: /path/to/bar.js \
/path/to/baz.js
You'll probably want to send this output to a file, so that you can include it in your Makefile. An actual Makefile example is as follows:
ENTRIES = src/foo.js src/bar/baz.js
BROWSERIFY = node_modules/.bin/browserify
BFLAGS = -t [ babelify --presets [ es2015 react ] ]
all: $(addprefix build/dist/,$(ENTRIES))
# browserify can't generate deps and output files at the same time, so we have to
# do two separate bundles (one to actually bundle and one to get deps)
build/dist/%.js: src/%.js
@echo "bundle " $<
@mkdir -p $(dir $@) build/deps/$(dir $*)
@$(BROWSERIFY) $< -o $@ $(BFLAGS)
@$(BROWSERIFY) $< -o $@ $(BFLAGS) --list | node makedeps.js $@ > build/deps/$*.js.d
# include the generated deps so that changes to dependent files trigger rebuilds
-include $(addsuffix .d,$(addprefix build/deps/,$(ENTRIES)))
FAQs
Emits Make-compatible dependency files from browserify --list
The npm package makedeps receives a total of 3 weekly downloads. As such, makedeps popularity was classified as not popular.
We found that makedeps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.