1 | /*
|
2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
3 | Author Tobias Koppers @sokra
|
4 | */
|
5 |
|
6 | ;
|
7 |
|
8 | const { applyWebpackOptionsDefaults } = require("./config/defaults");
|
9 | const { getNormalizedWebpackOptions } = require("./config/normalization");
|
10 |
|
11 | class WebpackOptionsDefaulter {
|
12 | process(options) {
|
13 | options = getNormalizedWebpackOptions(options);
|
14 | applyWebpackOptionsDefaults(options);
|
15 | return options;
|
16 | }
|
17 | }
|
18 |
|
19 | module.exports = WebpackOptionsDefaulter;
|