[![npm][npm]][npm-url] [![node][node]][node-url] [![deps][deps]][deps-url] [![tests][tests]][tests-url] [![chat][chat]][chat-url]
A Node.js add-ons loader module for enhanced-require. Executes add-ons in enhanced-require.
This module requires a minimum of Node v6.9.0 and Webpack v4.0.0.
To begin, you'll need to install node-loader:
$ npm install node-loader --save-dev
Then add the loader to your webpack config. For example:
import node from 'file.node';
// webpack.config.js
module.exports = {
  module: {
    rules: [
      {
        test: /\.node$/,
        use: 'node-loader'
      }
    ]
  }
}
 Or on the command-line:
$ webpack --module-bind 'node=node-loader'
In your application
import node from 'node-loader!./file.node';
And run webpack via your preferred method.
    © JS Foundation and other contributors
Licensed under the Creative Commons Attribution License 4.0.
    https://webpack.js.org/loaders/node-loader