Webpack loader that strips the shebang (#!) line from script files, allowing them to be bundled as modules. Current version 0.0.1 is a minimal, unmaintained package with no releases since 2014. It only works with webpack 1.x and provides no configuration options. Not suitable for modern projects; alternatives include inline loader syntax or manual file transforms.
npm install shebang-loaderVerified import paths — ran on the pinned version, not inferred.
Webpack config to strip shebang from .js files and an example requiring a CLI script.
Use webpack 1 or manually strip shebang with a preprocessor. Consider using a custom loader or the 'imports-loader' with shebang removal.
Replace with a custom webpack loader that uses regex to remove shebang lines, or use an alternative package like 'strip-loader'.
If on Windows, ensure line endings are Unix-style (LF) or modify the loader to handle CRLF.
Run 'npm install shebang-loader --save-dev' and use correct loader name: 'shebang-loader' (not 'shebang').
Ensure files have a shebang line, or remove the loader rule for files without shebangs.
Use webpack 1 or avoid shebang-loader; it is not maintained for newer webpack versions.
No dependency data recorded yet.