
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
node-native-loader
Advanced tools
A webpack loader for node native modules (.node/C++ binaries).
A webpack loader for node native modules (.node/C++ binaries).
This loader moves all relevant files (generally, .node
files) to the output path, then uses
relative paths to load them, so that they can be loaded in a consistent location across different
builds of an app (development vs packaged, etc.).
It is similar to node-relative-loader, but has a number of problematic options removed, and works consistently on Windows (whereas the aforementioned module often generates non-working require statements).
// In your webpack config
// For an application that outputs files to ./app/dist, and starts from ./app/index:
const config = {
// ...
module: {
loaders: {
// ...
{
test: /\.node$/,
// `from` is where paths will be made relative to
loader: 'node-native?from=app',
},
}
}
}
If you're using webpack-dev-server
(or webpack-dev-middleware
), you probably also want to add
write-file-webpack-plugin to your
configuration for all .node
files, so that they still get written to the filesystem and can be
required consistently.
MIT
FAQs
A webpack loader for node native modules (.node/C++ binaries).
The npm package node-native-loader receives a total of 72 weekly downloads. As such, node-native-loader popularity was classified as not popular.
We found that node-native-loader demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.