UNPKG

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