File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const validateSchema = require("./validateSchema");
1313const WebpackOptionsValidationError = require ( "./WebpackOptionsValidationError" ) ;
1414const webpackOptionsSchema = require ( "../schemas/WebpackOptions.json" ) ;
1515const RemovedPluginError = require ( "./RemovedPluginError" ) ;
16-
16+ const version = require ( "../package.json" ) . version ;
1717const webpack = ( options , callback ) => {
1818 const webpackOptionsValidationErrors = validateSchema (
1919 webpackOptionsSchema ,
@@ -60,7 +60,7 @@ const webpack = (options, callback) => {
6060} ;
6161
6262exports = module . exports = webpack ;
63-
63+ exports . version = version ;
6464webpack . WebpackOptionsDefaulter = WebpackOptionsDefaulter ;
6565webpack . WebpackOptionsApply = WebpackOptionsApply ;
6666webpack . Compiler = Compiler ;
You can’t perform that action at this time.
0 commit comments