Skip to content

Commit

Permalink
Merge pull request #6575 from nveenjain/addVersion
Browse files Browse the repository at this point in the history
Added version to webpack's export property
  • Loading branch information
sokra committed Feb 26, 2018
2 parents 9f9c3d1 + d50fa68 commit 8e592bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/webpack.js
Expand Up @@ -13,6 +13,7 @@ const validateSchema = require("./validateSchema");
const WebpackOptionsValidationError = require("./WebpackOptionsValidationError");
const webpackOptionsSchema = require("../schemas/WebpackOptions.json");
const RemovedPluginError = require("./RemovedPluginError");
const version = require("../package.json").version;

const webpack = (options, callback) => {
const webpackOptionsValidationErrors = validateSchema(
Expand Down Expand Up @@ -60,6 +61,7 @@ const webpack = (options, callback) => {
};

exports = module.exports = webpack;
exports.version = version;

webpack.WebpackOptionsDefaulter = WebpackOptionsDefaulter;
webpack.WebpackOptionsApply = WebpackOptionsApply;
Expand Down

0 comments on commit 8e592bf

Please sign in to comment.