
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@adamdickinson/react-cosmos-esbuild
Advanced tools
ESbuild-compatible React Cosmos.
npm install @adamdickinson/react-cosmos-esbuild
or
yarn add @adamdickinson/react-cosmos-esbuild
If it's a simple enough build process, you can totally get away with just running:
yarn cosmos-esbuild
Doing so runs cosmos, as well as esbuild with a default, cosmos-compatible config.
However, a lot of esbuild-driven projects have some rather complex
requirements, so this package accommodates that too. By specifying a
esbuildConfigPath in your cosmos config, you can inject your own esbuild
config in to adjust the esbuild config this package uses.
Sample cosmos.config.json:
{
"esbuildConfigPath": "./scripts/config.js"
}
Sample config.js:
module.exports = {
define: {
'process.env.RUNNING_COSMOS', 'true'
}
}
This config will then be used as the baseline config for the esbuild runner that is used to power cosmos as follows:
{
...config,
bundle: true,
entryPoints: [MAIN_TS_PATH],
outfile: MAIN_JS_PATH,
outdir: undefined
}
In other words, any custom config values for bundle, entryPoints, outfile
and outdir will be overridden in order for the package to work with cosmos.
Spin up a PR! Standards are pretty high, but feedback is a cornerstone of any good pull request so expect much love for any contributions.
FAQs
Support for esbuild with React Cosmos.
We found that @adamdickinson/react-cosmos-esbuild 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.