Skip to content

Commit 2c83787

Browse files
committed
fix: Fixed crash when no options are given
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent 26073a5 commit 2c83787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const debug = createDebug(process.env.REPLACE_PKG_NAME)
7171
* @param {WebpackConfigJaidOptions} [options] Given options
7272
* @returns {object} Webpack configuration object
7373
*/
74-
const configure = options => {
74+
const configure = (options = {}) => {
7575
let pkg
7676
try {
7777
pkg = readPackageSync({

0 commit comments

Comments
 (0)