Vanilla JS/TS bundler using a socket connection to trigger bundling on page refresh. Version 1.1.0. The package acts as a server that listens on a TCP socket; when a filename is sent, it bundles the file and its imports into a single output file. Supports basic import/export operations (import * as, named imports, side-effect imports) and optional TypeScript compilation and minification. Unlike full-featured bundlers like webpack or rollup, it does not support npm package imports and is intended for simple vanilla projects. Release cadence is low; maintenance is unclear.
npm install tcp-bundlerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to programmatically start the tcp-bundler server and trigger bundling by sending a filename via TCP.
Use rollup or webpack if you need to bundle npm dependencies.
Refactor to export and import explicitly, or use import * as alias.
Ensure you have a client (e.g., Python, curl) that connects and sends the filename after starting the server.
Run 'npm install Sanshain/tcp-bundler' in your project directory.
Kill the existing process or choose a different port.
No dependency data recorded yet.