File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1012function 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 ) ;
You can’t perform that action at this time.
0 commit comments