File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/brick-container/serve Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,13 @@ module.exports = (env, getRawIndexHtml) => {
120120
121121 const unionRegex =
122122 / ^ \/ n e x t \/ s a - s t a t i c \/ .* \/ b o o t s t r a p - u n i o n \. [ ^ . ] + \. j s o n $ / ;
123+ const isBootstrapMini =
124+ / ^ \/ n e x t \/ s a - s t a t i c \/ .* \/ b o o t s t r a p - m i n i \. [ ^ . ] + \. j s o n $ / . test ( req . path ) ;
123125 if (
124126 regex . test ( req . path ) ||
125127 regexLegacy . test ( req . path ) ||
126- unionRegex . test ( req . path )
128+ unionRegex . test ( req . path ) ||
129+ isBootstrapMini
127130 ) {
128131 reqIsBootstrap = true ;
129132 isStandalone = true ;
@@ -238,7 +241,7 @@ module.exports = (env, getRawIndexHtml) => {
238241 . map ( ( id ) => getSingleTemplatePackage ( env , id ) )
239242 . filter ( Boolean )
240243 . concat (
241- data [ templatePackages ] . filter (
244+ ( data [ templatePackages ] || [ ] ) . filter (
242245 ( item ) =>
243246 ! localTemplates . includes ( item . filePath . split ( "/" ) [ 1 ] )
244247 )
You can’t perform that action at this time.
0 commit comments