Skip to content

Commit

Permalink
fix: allow string to webpackConfig.include (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimulaco authored Feb 12, 2020
1 parent c71d848 commit 146ff20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ module.exports = function sentry (moduleOptions) {
options.serverConfig = deepMerge.all([options.config, options.serverConfig])
options.clientConfig = deepMerge.all([options.config, options.clientConfig])

if (typeof options.webpackConfig.include === 'string') {
options.webpackConfig.include = [options.webpackConfig.include]
}

const { buildDir } = this.options

if (!options.disableServerRelease) {
Expand Down

0 comments on commit 146ff20

Please sign in to comment.