Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added version to webpack's export property
  • Loading branch information
nveenjain committed Feb 26, 2018
1 parent 213226e commit 05174ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/webpack.js
Expand Up @@ -13,7 +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(
webpackOptionsSchema,
Expand Down Expand Up @@ -60,7 +60,7 @@ const webpack = (options, callback) => {
};

exports = module.exports = webpack;

exports.version = version;
webpack.WebpackOptionsDefaulter = WebpackOptionsDefaulter;
webpack.WebpackOptionsApply = WebpackOptionsApply;
webpack.Compiler = Compiler;
Expand Down

0 comments on commit 05174ae

Please sign in to comment.