Skip to content

Commit bc74372

Browse files
chicoxyzzyTheLarkInn
authored andcommitted
refactor(es6): Upgrade lib/webpack.web.js to es6 (webpack#3668)
refactor(es6): Upgrade lib/webpack.web.js to es6 (webpack#3668)
1 parent 9c2eae9 commit bc74372

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

lib/webpack.web.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
MIT License http://www.opensource.org/licenses/mit-license.php
33
Author Tobias Koppers @sokra
44
*/
5-
var Compiler = require("./Compiler");
6-
var WebEnvironmentPlugin = require("./web/WebEnvironmentPlugin");
7-
var WebpackOptionsApply = require("./WebpackOptionsApply");
8-
var WebpackOptionsDefaulter = require("./WebpackOptionsDefaulter");
5+
"use strict";
6+
7+
const Compiler = require("./Compiler");
8+
const WebEnvironmentPlugin = require("./web/WebEnvironmentPlugin");
9+
const WebpackOptionsApply = require("./WebpackOptionsApply");
10+
const WebpackOptionsDefaulter = require("./WebpackOptionsDefaulter");
911

1012
function webpack(options, callback) {
1113
new WebpackOptionsDefaulter().process(options);
1214

13-
var compiler = new Compiler();
15+
const compiler = new Compiler();
1416
compiler.options = options;
1517
compiler.options = new WebpackOptionsApply().process(options, compiler);
1618
new WebEnvironmentPlugin(options.inputFileSystem, options.outputFileSystem).apply(compiler);

0 commit comments

Comments
 (0)