Sponsor webpack and get apparel from the official shop! All proceeds go to our open collective!

ag-grid is proud to partner with webpack


[![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.

Getting Started

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.


MIT MIT" class="icon-link" href="#mit">