File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const validateSchema = require("./validateSchema");
1313const WebpackOptionsValidationError = require ( "./WebpackOptionsValidationError" ) ;
1414const webpackOptionsSchema = require ( "../schemas/WebpackOptions.json" ) ;
1515const RemovedPluginError = require ( "./RemovedPluginError" ) ;
16+ const version = require ( "../package.json" ) . version ;
1617
1718const webpack = ( options , callback ) => {
1819 const webpackOptionsValidationErrors = validateSchema (
@@ -60,6 +61,7 @@ const webpack = (options, callback) => {
6061} ;
6162
6263exports = module . exports = webpack ;
64+ exports . version = version ;
6365
6466webpack . WebpackOptionsDefaulter = WebpackOptionsDefaulter ;
6567webpack . WebpackOptionsApply = WebpackOptionsApply ;
You can’t perform that action at this time.
0 commit comments