
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@graphox/swc-plugin-plugin
Advanced tools
Pre-built SWC plugin for Graphox codesplitting. This package bundles the WASM binary for easy use with rsbuild, Turbopack, or native SWC.
Building the WASM plugin from source requires:
rustup install stablerustup target add wasm32-wasip1cargo install wasm-packcorepack enable && corepack install -g pnpm@latestFor users of the pre-built package, only Node.js 18+ is required.
pnpm add @graphox/swc-plugin
// rsbuild.config.ts
import { defineConfig } from '@rsbuild/core';
import { createSWCPlugin } from '@graphox/swc-plugin';
import path from 'path';
export default defineConfig({
source: {
alias: {
'__generated__': path.resolve(__dirname, './__generated__'),
},
},
tools: {
swc: {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
experimental: {
plugins: [
createSWCPlugin({
manifestPath: './__generated__/manifest.json',
outputDir: './__generated__'
})
],
},
},
},
},
});
// next.config.js
import { createSWCPlugin } from '@graphox/swc-plugin';
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
turbo: {
rules: {
'*.{ts,tsx}': [
{
loader: 'next-swc-loader',
options: {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
experimental: {
plugins: [
createSWCPlugin({
manifestPath: './__generated__/manifest.json',
outputDir: './__generated__'
})
],
},
},
},
},
],
},
},
},
};
module.exports = nextConfig;
| Option | Type | Required | Description |
|---|---|---|---|
manifestPath | string | Yes* | Path to manifest.json generated by codegen |
manifestData | object[] | Yes* | Inline manifest data (alternative to manifestPath) |
outputDir | string | Yes | Directory containing generated files |
graphqlImportPaths | string[] | No | Explicit import paths to treat as GraphQL entrypoints |
emitExtensions | string | No | File extension for generated imports: "none" (default), "ts", "js", "dts" |
*Either manifestPath or manifestData is required.
Controls the file extension appended to generated import paths. Should match the emit_extensions setting in your graphox.yaml:
| Value | Result |
|---|---|
"none" (default) | import { X } from "./file.codegen" |
"ts" | import { X } from "./file.codegen.ts" |
"js" | import { X } from "./file.codegen.js" |
"dts" | import { X } from "./file.codegen.d.ts" |
When generate_ast_for_fragments: true is enabled in your config, fragment documents are also included in the manifest and will be properly rewritten by the plugin.
If you need to rebuild the WASM plugin:
# Install dependencies
pnpm install
# Build TypeScript only (requires pre-built WASM)
pnpm run build
# Build WASM only (requires Rust toolchain)
pnpm run build:wasm
# Build everything (TypeScript + WASM)
pnpm run build:all
# Run tests
pnpm test
FAQs
SWC plugin for GraphQL Rust codesplitting
The npm package @graphox/swc-plugin-plugin receives a total of 14 weekly downloads. As such, @graphox/swc-plugin-plugin popularity was classified as not popular.
We found that @graphox/swc-plugin-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.