aboutsummaryrefslogtreecommitdiff
path: root/node_modules/webpack/lib/node/NodeTargetPlugin.js
blob: 528a285705dc3c765c4cd85919a2edc7c4879ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
"use strict";

const ExternalsPlugin = require("../ExternalsPlugin");

class NodeTargetPlugin {
	apply(compiler) {
		new ExternalsPlugin("commonjs", Object.keys(process.binding("natives"))).apply(compiler);
	}
}

module.exports = NodeTargetPlugin;