
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@farmfe/js-plugin-babel
Advanced tools
farm plugin which support use babel
npm i @farmfe/js-plugin-babel -D
or yarn/pnpm
pnpm i @farmfe/js-plugin-babel -D
// farm.config.ts
import { babel } from "@farmfe/js-plugin-babel";
import react from "@farmfe/plugin-react";
defineConfig({
plugins: [
// transform by babel, default transform `js`, `jsx`, `ts`, `tsx` files
babel(),
// transform react
react(),
],
});
filters
{ moduleTypes: ModuleType[], resolvedPaths: string[] }
{
moduleTypes: ["js", "jsx", "ts", "tsx"],
resolvedPaths: []
}
Determines which files to transform
For example, files with the tsx
extension
{
resolvedPaths: [".tsx$"];
}
Or use module types to distinguish
{
moduleTypes: ["tsx", "jsx"];
}
The type comes from the return value of the load
hook and can be customized (farm
has some default types js
, jsx
, ts
, tsx
, css
, html
, asset
, runtime
that can be used directly)
transformOptions
Babel transform configuration
priority
number
99
The priority of the farm plugin execution, the higher the priority, the earlier it executes.
name
string
js-plugin:babel
The name of the farm plugin
FAQs
farm plugin which support use babel
We found that @farmfe/js-plugin-babel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.