aboutsummaryrefslogtreecommitdiff
path: root/node_modules/webpack-chain/src/Chainable.js
blob: f5704ae4a0a7b9c1ecd97a5f2eeddb995a85b7db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports = class {
  constructor(parent) {
    this.parent = parent;
  }

  batch(handler) {
    handler(this);
    return this;
  }

  end() {
    return this.parent;
  }
};