ag-grid is proud to partner with webpack

node-loader

Node Add-ons for webpack

Install

npm install --save-dev node-loader

Usage

Executes node add-ons in enhanced-require.

Use the loader either via your webpack config, CLI or inline.

##

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.node$/,
        use: 'node-loader'
      }
    ]
  }
}

In your application

import node from 'file.node';

CLI

webpack --module-bind 'node=node-loader'

In your application

import node from 'file.node';

Inline

In your application

import node from 'node-loader!./file.node';

Maintainer


Juho Vepsäläinen


Joshua Wiens


Kees Kluskens


Sean Larkin