File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -166,21 +166,24 @@ describe('mergeConfig', () => {
166166 } )
167167
168168 test ( 'handles ssr.noExternal' , ( ) => {
169- const baseConfig = {
169+ const baseConfig : UserConfig = {
170170 ssr : {
171171 noExternal : true ,
172+ external : true ,
172173 } ,
173174 }
174175
175- const newConfig = {
176+ const newConfig : UserConfig = {
176177 ssr : {
177178 noExternal : [ 'foo' ] ,
179+ external : [ 'bar' ] ,
178180 } ,
179181 }
180182
181- const mergedConfig = {
183+ const mergedConfig : UserConfig = {
182184 ssr : {
183185 noExternal : true ,
186+ external : true ,
184187 } ,
185188 }
186189
Original file line number Diff line number Diff line change @@ -1260,7 +1260,7 @@ function mergeConfigRecursively(
12601260 merged [ key ] = [ ] . concat ( existing , value )
12611261 continue
12621262 } else if (
1263- ( ( key === 'noExternal' &&
1263+ ( ( ( key === 'noExternal' || key === 'external' ) &&
12641264 ( rootPath === 'ssr' || rootPath === 'resolve' ) ) ||
12651265 ( key === 'allowedHosts' && rootPath === 'server' ) ) &&
12661266 ( existing === true || value === true )
You can’t perform that action at this time.
0 commit comments