Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
esbuild-plugin-babel-cached
Advanced tools
First, check if esbuild supports the transform you need (it's faster).
If not, you can add the Babel plugin you need with this plugin.
npm install esbuild-plugin-babel -D
esbuild.config.js
import esbuild from 'esbuild';
import babel from 'esbuild-plugin-babel';
esbuild
.build({
entryPoints: ['index.js'],
bundle: true,
outfile: 'main.js',
plugins: [babel()],
// target: ['es5'] // if you target es5 with babel, add this option
})
.catch(() => process.exit(1));
package.json
{
"type": "module",
"scripts": {
"start": "node esbuild.config.js"
}
}
esbuild.config.js
babel({
filter: /.*/,
namespace: '',
config: {} // babel config here or in babel.config.json
});
{
"sourceMaps": "inline",
"presets": [...],
"plugins": [...]
}
esbuild-serve → Serve with live reload for esbuild.
esbuild-plugin-pipe → Pipe esbuild plugins output.
esbuild-plugin-svg → Svg files import plugin for esbuild.
esbuild-plugin-postcss-literal → PostCSS tagged template literals plugin for esbuild.
FAQs
Babel plugin for esbuild.
We found that esbuild-plugin-babel-cached 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.