mirror of
https://github.com/wu736139669/Monkey-Test.git
synced 2026-10-07 19:39:52 +00:00
13 lines
383 B
JavaScript
13 lines
383 B
JavaScript
/*
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
Author Tobias Koppers @sokra
|
|
*/
|
|
var ExternalsPlugin = require("../ExternalsPlugin");
|
|
|
|
function NodeTargetPlugin() {}
|
|
|
|
module.exports = NodeTargetPlugin;
|
|
NodeTargetPlugin.prototype.apply = function(compiler) {
|
|
new ExternalsPlugin("commonjs", Object.keys(process.binding("natives"))).apply(compiler);
|
|
};
|