mirror of https://github.com/webpack/webpack.git
19 lines
282 B
JavaScript
19 lines
282 B
JavaScript
|
module.exports = function PluginEnvironment() {
|
||
|
var events = [];
|
||
|
|
||
|
this.getEnvironmentStub = function() {
|
||
|
return {
|
||
|
plugin: function(name, handler) {
|
||
|
events.push({
|
||
|
name,
|
||
|
handler
|
||
|
});
|
||
|
}
|
||
|
};
|
||
|
};
|
||
|
|
||
|
this.getEventBindings = function() {
|
||
|
return events;
|
||
|
};
|
||
|
};
|