Skip to content

Commit 0a08a54

Browse files
committed
chore: fix addExternals
1 parent fe567af commit 0a08a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class ScratchWebpackConfigBuilder {
264264
* @returns {this}
265265
*/
266266
addExternals(externals) {
267-
this._config = this._config.externals.concat(externals);
267+
this._config.externals = (this._config.externals ?? []).concat(externals);
268268
return this;
269269
}
270270

0 commit comments

Comments
 (0)