🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@feedthrough/webpack

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feedthrough/webpack

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

@feedthrough/webpack

feedthrough.dev · npm · GitHub

Webpack 5 plugin for Feedthrough. Injects the bridge automatically in development mode — no changes to your app code needed. Has no effect on production builds.

Install

npm install --save-dev @feedthrough/webpack

Usage

// webpack.config.mjs
import { FeedthroughPlugin } from "@feedthrough/webpack";

export default {
  plugins: [
    new FeedthroughPlugin(),
  ],
};

FeedthroughPlugin adds the bridge as a global webpack entry. It returns immediately if compiler.options.mode is not "development", so production builds are clean.

Make sure your build script passes --mode production so the mode is set correctly:

{
  "scripts": {
    "dev": "webpack serve",
    "build": "webpack --mode production"
  }
}

Options

new FeedthroughPlugin({
  serverUrl: "ws://localhost:8765", // default
  reconnectDelay: 2000,             // ms, default
})

ESM resolution note

@feedthrough/core is compiled with moduleResolution: Bundler, which produces extension-less imports that webpack 5 rejects in strict ESM mode. Add this rule to your webpack config to allow them:

module: {
  rules: [{ test: /\.m?js$/, resolve: { fullySpecified: false } }],
},

Running alongside the MCP server

# Terminal 1 — app
webpack serve

# Terminal 2 — MCP server
node node_modules/@feedthrough/mcp/dist/index.js

FAQs

Package last updated on 07 Jun 2026

Did you know?

Socket

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.

Install

Related posts